diff options
| author | Gabriel Falcão <gabriel@nacaolivre.org> | 2015-07-29 10:52:00 -0400 |
|---|---|---|
| committer | Gabriel Falcão <gabriel@nacaolivre.org> | 2015-07-29 10:52:00 -0400 |
| commit | 75f3ed390ca4018ea1dfbf1a45d128c871a98cfe (patch) | |
| tree | cbb56435749b9f26a61ee5e6708d55c9cf755f54 /setup.py | |
| parent | 17f94561983c1126484f6010500aa48f6aa6cce4 (diff) | |
| parent | e7595fe14c5a36a090f702b08cfac60232cedc0d (diff) | |
| download | httpretty-75f3ed390ca4018ea1dfbf1a45d128c871a98cfe.tar.gz | |
Merge pull request #232 from syndbg/master
Fix requirements files chaos.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -1,4 +1,4 @@ -# #!/usr/bin/env python +#!/usr/bin/env python # -*- coding: utf-8 -*- # <HTTPretty - HTTP client mock for Python> @@ -50,7 +50,7 @@ def read_version(): def parse_requirements(path): - """Rudimentary parser for the `requirements.txt` file + """Rudimentary parser for the `requirements/use.txt` file We just want to separate regular packages from links to pass them to the `install_requires` and `dependency_links` params of the `setup()` @@ -59,7 +59,7 @@ def parse_requirements(path): try: requirements = [req.strip() for req in local_file(path).splitlines()] except IOError: - raise RuntimeError("Couldn't find the `requirements.txt' file :(") + raise RuntimeError("Couldn't find the `requirements/use.txt' file :(") links = [] pkgs = [] @@ -82,24 +82,24 @@ local_file = lambda *f: \ install_requires, dependency_links = \ - parse_requirements('requirements.txt') + parse_requirements('requirements/use.txt') setup(name='httpretty', - version=read_version(), - description='HTTP client mock for Python', - long_description=local_file('README.rst'), - author='Gabriel Falcao', - author_email='gabriel@nacaolivre.org', - url='http://github.com/gabrielfalcao/httpretty', - zip_safe=False, - packages=find_packages(exclude=['*tests*']), - tests_require=parse_requirements('test-requirements.txt'), - install_requires=install_requires, - dependency_links=dependency_links, - license='MIT', - test_suite='nose.collector', - classifiers=["Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Topic :: Software Development :: Testing"], -) + version=read_version(), + description='HTTP client mock for Python', + long_description=local_file('README.rst'), + author='Gabriel Falcao', + author_email='gabriel@nacaolivre.org', + url='http://github.com/gabrielfalcao/httpretty', + zip_safe=False, + packages=find_packages(exclude=['*tests*']), + tests_require=parse_requirements('requirements/test.txt'), + install_requires=install_requires, + dependency_links=dependency_links, + license='MIT', + test_suite='nose.collector', + classifiers=["Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Topic :: Software Development :: Testing"], + ) |
