Skip to content

Commit 3e7dc62

Browse files
committed
Implement PEP 518 and opt into PEP 517 builds
1 parent 83148c5 commit 3e7dc62

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include pyproject.toml
2+
13
# Include the README
24
include *.md
35

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
# These are the assumed default build requirements from pip:
3+
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
4+
requires = ["setuptools>=40.8.0", "wheel"]
5+
build-backend = "setuptools.build_meta"

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
[tox]
1616
envlist = py{27,35,36,37,38}
1717

18+
# Define the minimal tox version required to run;
19+
# if the host tox is less than this the tool with create an environment and
20+
# provision it with a tox that satisfies it under provision_tox_env.
21+
# At least this version is needed for PEP 517/518 support.
22+
minversion = 3.3.0
23+
24+
# Activate isolated build environment. tox will use a virtual environment
25+
# to build a source distribution from the source tree. For build tools and
26+
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
27+
isolated_build = true
28+
1829
[testenv]
1930
deps =
2031
check-manifest

0 commit comments

Comments
 (0)