From 129ab7c24b4e56bbd194284d75b73c507f55ef0c Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sat, 17 Apr 2021 18:22:12 -0700 Subject: [PATCH 1/2] Add PEP 517 / PEP 518 metadata This moves the build-time dependency on incremental to a declarative file. See [1] for background. [1]: https://twistedmatrix.com/trac/ticket/9457 --- pyproject.toml | 8 ++++++++ tox.ini | 1 + 2 files changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1173adff..f97064fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,11 @@ +[build-system] +requires = [ + "setuptools >= 35.0.2", + "wheel >= 0.29.0", + "incremental >= 21.3.0", +] +build-backend = "setuptools.build_meta" + [tool.towncrier] package = "treq" package_dir = "src" diff --git a/tox.ini b/tox.ini index 530d8be0..f1bd38af 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = {pypy3,py36,py37,py38,py39}-twisted_latest, {pypy3,py36,py37,py38,py39}-twisted_trunk, towncrier, twine, check-manifest, flake8, docs +isolated_build = true [testenv] extras = dev From 138da366f838aaec425333e320544ac2524dbcb9 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sat, 17 Apr 2021 19:04:27 -0700 Subject: [PATCH 2/2] Add change fragment --- changelog.d/329.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/329.feature.rst diff --git a/changelog.d/329.feature.rst b/changelog.d/329.feature.rst new file mode 100644 index 00000000..0d1ec333 --- /dev/null +++ b/changelog.d/329.feature.rst @@ -0,0 +1 @@ +PEP 517/518 ``build-system`` metadata is now provided in ``pyproject.toml``.