Enable isolated_build for tox

This enables tox support for PEP517 and PEP518.
master
Cristi Vîjdea 2018-12-19 21:03:52 +02:00
parent 789f118532
commit 1fc454fcfa
4 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,6 @@
include README.rst
include LICENSE.rst
include pyproject.toml
recursive-include requirements *
recursive-include src/drf_yasg/static *
recursive-include src/drf_yasg/templates *

View File

@ -1,2 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta"

View File

@ -1,2 +1,2 @@
# requirements for building and running tox
tox>=3.1.2
tox>=3.3.0

View File

@ -1,11 +1,18 @@
[tox]
# 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 =
py{27,34,35,36}-django111-drf{37,38,39},
py{34,35,36,37}-django20-drf{37,38,39},
py{35,36,37}-django21-drf{37,38,39},
djmaster, lint, docs
[testenv:.package]
# no additional dependencies besides PEP 517
deps =
[testenv]
deps =
django111: Django>=1.11,<2.0