From 83148c568c09179ed93ef9fccd1574549c69749f Mon Sep 17 00:00:00 2001 From: David Tucker Date: Sun, 17 Nov 2019 14:05:39 -0800 Subject: [PATCH 1/2] Remove basepython for default tox environments --- tox.ini | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index 68165ea2..a89fc656 100644 --- a/tox.ini +++ b/tox.ini @@ -16,12 +16,6 @@ envlist = py{27,35,36,37,38} [testenv] -basepython = - py27: python2.7 - py35: python3.5 - py36: python3.6 - py37: python3.7 - py38: python3.8 deps = check-manifest # If your project uses README.rst, uncomment the following: @@ -36,6 +30,7 @@ commands = python setup.py check -m -s flake8 . py.test tests + [flake8] exclude = .tox,*.egg,build,data select = E,W,F From 3e7dc62cf240dc4f4fea8974e18169b042606843 Mon Sep 17 00:00:00 2001 From: David Tucker Date: Mon, 14 Oct 2019 11:13:19 -0700 Subject: [PATCH 2/2] Implement PEP 518 and opt into PEP 517 builds --- MANIFEST.in | 2 ++ pyproject.toml | 5 +++++ tox.ini | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 pyproject.toml diff --git a/MANIFEST.in b/MANIFEST.in index c066bbd4..ca3d4484 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,5 @@ +include pyproject.toml + # Include the README include *.md diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..6ddb34b8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +# These are the assumed default build requirements from pip: +# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support +requires = ["setuptools>=40.8.0", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/tox.ini b/tox.ini index a89fc656..9bfe638c 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,17 @@ [tox] envlist = py{27,35,36,37,38} +# Define the minimal tox version required to run; +# if the host tox is less than this the tool with create an environment and +# provision it with a tox that satisfies it under provision_tox_env. +# At least this version is needed for PEP 517/518 support. +minversion = 3.3.0 + +# Activate isolated build environment. tox will use a virtual environment +# to build a source distribution from the source tree. For build tools and +# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518. +isolated_build = true + [testenv] deps = check-manifest