Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix requirements files chaos. #232

Merged
merged 1 commit into from
Jul 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ env:
- TEST_TYPE=functional

install:
- pip install -r requirements.txt -r test-requirements.txt
- pip install -r requirements/use.txt
- pip install -r requirements/test.txt

script:
- make $TEST_TYPE
4 changes: 1 addition & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include requirements.txt
include test-requirements.txt
include dev-requirements.txt
recursive-include requirements *.txt
recursive-include tests *.py
include tests/functional/fixtures/playback-*.json
include COPYING
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ mkvirtualenv --distribute --no-site-packages HTTPretty
#### install the dependencies

```console
pip install -r requirements.txt
pip install -r requirements/dev.txt
```

#### next steps:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ install the dependencies

.. code:: console

pip install -r requirements.txt
pip install -r requirements/dev.txt

next steps:
^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mkvirtualenv --distribute --no-site-packages HTTPretty
## installing the dependencies

```console
pip install -r requirements.txt
pip install -r requirements/dev.txt
```

## next steps
Expand Down
4 changes: 2 additions & 2 deletions dev-requirements.txt → requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-r requirements.txt
-r use.txt
coverage
tox
markment
steadymark
nose
rednose
mock
sure
sure
File renamed without changes.
File renamed without changes.
42 changes: 21 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# #!/usr/bin/env python
#!/usr/bin/env python
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this commented out intentionally or just broken shebang?

# -*- coding: utf-8 -*-

# <HTTPretty - HTTP client mock for Python>
Expand Down Expand Up @@ -48,7 +48,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()`
Expand All @@ -57,7 +57,7 @@ def parse_requirements(path):
try:
requirements = map(str.strip, 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 = []
Expand All @@ -79,24 +79,24 @@ def parse_requirements(path):


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='[email protected]',
url='https://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='[email protected]',
url='https://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"],
)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
envlist = py26, py27, py34

[testenv]
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
deps = -r{toxinidir}/requirements/use.txt
-r{toxinidir}/requirements/test.txt
commands = nosetests -s tests/unit

[testenv:functional]
Expand Down