<commit_before>import re

from setuptools import setup


with open('requirements.txt', 'r') as fp:
    install_requires = [re.split(r'[<>=]', line)[0]
                        for line in fp if line.strip()]


with open('ironic_discoverd/__init__.py', 'rb') as fp:
    exec(fp.read())


setup(
    name = "ironic-discoverd",
    version = __version__,
    description = open('README.rst', 'r').readline().strip(),
    author = "<NAME>",
    author_email = "<EMAIL>",
    url = "https://pypi.python.org/pypi/ironic-discoverd",
    packages = ['ironic_discoverd', 'ironic_discoverd.plugins',
                'ironic_discoverd.test', 'ironic_discoverd.common'],
    install_requires = install_requires,
    entry_points = {
        'console_scripts': [
            "ironic-discoverd = ironic_discoverd.main:main"
        ],
        'ironic_discoverd.hooks': [
            "scheduler = ironic_discoverd.plugins.standard:SchedulerHook",
            "validate_interfaces = ironic_discoverd.plugins.standard:ValidateInterfacesHook",
            "ramdisk_error = ironic_discoverd.plugins.standard:RamdiskErrorHook",<commit_msg>setup.py to work without requirements.txt<commit_after>import re

from setuptools import setup


try:
    # Distributions have to delete *requirements.txt
    with open('requirements.txt', 'r') as fp:
        install_requires = [re.split(r'[<>=]', line)[0]
                            for line in fp if line.strip()]
except EnvironmentError:
    print("No requirements.txt, not handling dependencies")
    install_requires = []


with open('ironic_discoverd/__init__.py', 'rb') as fp:
    exec(fp.read())


setup(
    name = "ironic-discoverd",
    version = __version__,
    description = open('README.rst', 'r').readline().strip(),
    author = "<NAME>",
    author_email = "<EMAIL>",
    url = "https://pypi.python.org/pypi/ironic-discoverd",
    packages = ['ironic_discoverd', 'ironic_discoverd.plugins',
                'ironic_discoverd.test', 'ironic_discoverd.common'],
    install_requires = install_requires,
    entry_points = {
        'console_scripts': [
            "ironic-discoverd = ironic_discoverd.main:main"
        ],
        'ironic_discoverd.hooks': [
            "scheduler = ironic_discoverd.plugins.standard:SchedulerHook",
            "validate_interfaces = ironic_discoverd.plugins.standard:ValidateInterfacesHook",
            "ramdisk_error = ironic_discoverd.plugins.standard:RamdiskErrorHook",
{'fraction_non_alphanumeric': 0.1325153374233129, 'fraction_numerical': 0.0008179959100204499, 'mean_word_length': 3.1883561643835616, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4162747', 'n_tokens_mistral': 786, 'n_tokens_neox': 761, 'n_words': 133}