Optimize requirements (#35)
parent
917ccd1f56
commit
15c67891c6
|
|
@ -36,7 +36,7 @@ You want to contribute some code? Great! Here are a few steps to get you started
|
||||||
$ virtualenv venv
|
$ virtualenv venv
|
||||||
$ source venv/bin/activate
|
$ source venv/bin/activate
|
||||||
(venv) $ pip install -e .[validation]
|
(venv) $ pip install -e .[validation]
|
||||||
(venv) $ pip install -rrequirements/dev.txt -rrequirements/test.txt "Django>=1.11.7"
|
(venv) $ pip install -rrequirements/dev.txt "Django>=1.11.7"
|
||||||
|
|
||||||
#. **Make your changes and check them against the test project**
|
#. **Make your changes and check them against the test project**
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
# requirements for CI test suite
|
# requirements for the CI test runner
|
||||||
-r dev.txt
|
|
||||||
tox-travis>=0.10
|
tox-travis>=0.10
|
||||||
codecov>=2.0.9
|
codecov>=2.0.9
|
||||||
|
|
||||||
|
-r tox.txt
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
# requirements for local development
|
# requirements for local development to be installed via pip install -r requirements/dev.txt
|
||||||
tox>=2.9.1
|
-r tox.txt
|
||||||
tox-battery>=0.5
|
-r test.txt
|
||||||
detox>=0.11
|
|
||||||
|
|
||||||
-r lint.txt
|
-r lint.txt
|
||||||
-r setup.txt
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
Sphinx==1.6.5
|
# used by the 'docs' tox env for building the documentation
|
||||||
sphinx_rtd_theme==0.2.4
|
Sphinx>=1.6.5
|
||||||
Pillow==4.3.0
|
sphinx_rtd_theme>=0.2.4
|
||||||
readme_renderer==17.2
|
Pillow>=4.3.0
|
||||||
|
readme_renderer>=17.2
|
||||||
|
|
||||||
Django==2.0
|
Django>=2.0,<2.1
|
||||||
djangorestframework_camel_case>=0.2.0
|
djangorestframework_camel_case>=0.2.0
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# used by the 'lint' tox env for linting via flake8
|
||||||
isort>=4.2
|
isort>=4.2
|
||||||
flake8>=3.5.0
|
flake8>=3.5.0
|
||||||
flake8-isort>=2.3
|
flake8-isort>=2.3
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# requirements for building the distributable package
|
# needed to build the package setup_requires in setup.py
|
||||||
|
|
||||||
# do not unpin this (see setup.py)
|
# do not unpin this (see setup.py)
|
||||||
setuptools_scm==1.15.6
|
setuptools_scm==1.15.6
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# pytest runner + plugins
|
# requirements for running the tests via pytest
|
||||||
pytest>=2.9
|
pytest>=2.9
|
||||||
pytest-pythonpath>=0.7.1
|
pytest-pythonpath>=0.7.1
|
||||||
pytest-cov>=2.5.1
|
pytest-cov>=2.5.1
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
# requirements for building and running tox
|
||||||
|
tox>=2.9.1
|
||||||
|
tox-battery>=0.5
|
||||||
|
detox>=0.11
|
||||||
|
|
||||||
|
-r setup.txt
|
||||||
2
setup.py
2
setup.py
|
|
@ -9,7 +9,7 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
def read_req(req_file):
|
def read_req(req_file):
|
||||||
with open(os.path.join('requirements', req_file)) as req:
|
with open(os.path.join('requirements', req_file)) as req:
|
||||||
return [line for line in req.readlines() if line and not line.isspace()]
|
return [line.strip() for line in req.readlines() if line.strip() and not line.strip().startswith('#')]
|
||||||
|
|
||||||
|
|
||||||
with io.open('README.rst', encoding='utf-8') as readme:
|
with io.open('README.rst', encoding='utf-8') as readme:
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -25,7 +25,6 @@ deps =
|
||||||
drfmaster: https://github.com/django/django/archive/master.tar.gz
|
drfmaster: https://github.com/django/django/archive/master.tar.gz
|
||||||
|
|
||||||
# other dependencies
|
# other dependencies
|
||||||
-rrequirements/base.txt
|
|
||||||
-rrequirements/validation.txt
|
-rrequirements/validation.txt
|
||||||
-rrequirements/test.txt
|
-rrequirements/test.txt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue