parent
789f118532
commit
1fc454fcfa
|
|
@ -1,5 +1,6 @@
|
||||||
include README.rst
|
include README.rst
|
||||||
include LICENSE.rst
|
include LICENSE.rst
|
||||||
|
include pyproject.toml
|
||||||
recursive-include requirements *
|
recursive-include requirements *
|
||||||
recursive-include src/drf_yasg/static *
|
recursive-include src/drf_yasg/static *
|
||||||
recursive-include src/drf_yasg/templates *
|
recursive-include src/drf_yasg/templates *
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools", "wheel", "setuptools-scm"]
|
requires = ["setuptools", "wheel", "setuptools-scm"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
# requirements for building and running tox
|
# requirements for building and running tox
|
||||||
tox>=3.1.2
|
tox>=3.3.0
|
||||||
|
|
|
||||||
15
tox.ini
15
tox.ini
|
|
@ -1,11 +1,18 @@
|
||||||
[tox]
|
[tox]
|
||||||
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
|
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
|
||||||
|
minversion = 3.3.0
|
||||||
|
isolated_build = true
|
||||||
|
isolated_build_env=.package
|
||||||
envlist =
|
envlist =
|
||||||
py{27,34,35,36}-django111-drf{37,38,39},
|
py{27,34,35,36}-django111-drf{37,38,39},
|
||||||
py{34,35,36,37}-django20-drf{37,38,39},
|
py{34,35,36,37}-django20-drf{37,38,39},
|
||||||
py{35,36,37}-django21-drf{37,38,39},
|
py{35,36,37}-django21-drf{37,38,39},
|
||||||
djmaster, lint, docs
|
djmaster, lint, docs
|
||||||
|
|
||||||
|
[testenv:.package]
|
||||||
|
# no additional dependencies besides PEP 517
|
||||||
|
deps =
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
django111: Django>=1.11,<2.0
|
django111: Django>=1.11,<2.0
|
||||||
|
|
@ -21,8 +28,8 @@ deps =
|
||||||
djmaster: https://github.com/django/django/archive/master.tar.gz
|
djmaster: https://github.com/django/django/archive/master.tar.gz
|
||||||
|
|
||||||
# other dependencies
|
# other dependencies
|
||||||
-rrequirements/validation.txt
|
-r requirements/validation.txt
|
||||||
-rrequirements/test.txt
|
-r requirements/test.txt
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
pytest -n 2 --cov --cov-config .coveragerc --cov-append --cov-report="" {posargs}
|
pytest -n 2 --cov --cov-config .coveragerc --cov-append --cov-report="" {posargs}
|
||||||
|
|
@ -30,13 +37,13 @@ commands =
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
skip_install = true
|
skip_install = true
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/lint.txt
|
-r requirements/lint.txt
|
||||||
commands =
|
commands =
|
||||||
flake8 src/drf_yasg testproj tests setup.py
|
flake8 src/drf_yasg testproj tests setup.py
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/docs.txt
|
-r requirements/docs.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py check --restructuredtext --metadata --strict
|
python setup.py check --restructuredtext --metadata --strict
|
||||||
sphinx-build -WnEa -b html docs docs/_build/html
|
sphinx-build -WnEa -b html docs docs/_build/html
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue