Skip to content

Commit 865fecd

Browse files
committed
Add pyproject.toml
This commit adds a pyproject.toml file specifiny the basic requirements to use setuptools as the build backend. It uses isolated builds, as necessary to make tox use the configuration in pyproject.toml when building the package to use for testing. Otherwise it would just run setup.py, which might miss the configuration in pyproject.toml.
1 parent c09cbbc commit 865fecd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools >=42", "wheel"]
3+
build-backend = "setuptools.build_meta"

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tox]
22
envlist = py35,py36,py37,py38,py39,py310
33
recreate = True
4+
isolated_build = True
45

56
[tox:hudson]
67
downloadcache = {toxworkdir}/_download

0 commit comments

Comments
 (0)