From d6568ee7e1f85025725597d1cdcb62b3d0a1ded1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 9 Jan 2023 20:09:25 +0100 Subject: [PATCH 1/2] Switch to correct PEP517 build-system pyproject.toml: Since poetry is used, switch to the build-system setup as documented upstream (https://python-poetry.org/docs/pyproject#poetry-and-pep-517). --- pyproject.toml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6554128a..1ab76178 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,17 +44,5 @@ tox = "^tox 3.11" [build-system] -requires = [ - "poetry>=0.12", - # See https://github.com/pypa/setuptools/issues/2353#issuecomment-683781498 - # for the rest of these requirements, - # -ETJ 31 December 2020 - "setuptools>=30.3.0,<50", - "wheel", - "pytest-runner", - "setuptools_scm>=3.3.1", - -] - -build-backend = "poetry.masonry.api" - +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" From 025ca1c1bd9848bf12bff72b80b8d05d8e24968d Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 9 Jan 2023 20:25:43 +0100 Subject: [PATCH 2/2] Add setuptools to dependencies pyproject.toml: Pkg_resources is used in solid/solidpython.py, hence this project depends on setuptools until the use of pkg_resources is replaced with something else. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 1ab76178..8b31bb73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ euclid3 = "^0.1.0" pypng = "^0.0.19" PrettyTable = "=0.7.2" ply = "^3.11" +setuptools = ">=65.6.3" [tool.poetry.dev-dependencies] tox = "^tox 3.11"