Optimize requirements (#35)

openapi3
Cristi Vîjdea 2018-01-03 23:11:27 +01:00 committed by GitHub
parent 917ccd1f56
commit 15c67891c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 23 additions and 18 deletions

View File

@ -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**

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,6 @@
# requirements for building and running tox
tox>=2.9.1
tox-battery>=0.5
detox>=0.11
-r setup.txt

View File

@ -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:

View File

@ -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