git: b3f1221aa9b8 - main - net/py-trio: Use pep517 macro instead of dummy setup.py
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Dec 2023 21:19:30 UTC
The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=b3f1221aa9b8eb4ce326098f2d51069440cb8d61 commit b3f1221aa9b8eb4ce326098f2d51069440cb8d61 Author: Emanuel Haupt <ehaupt@FreeBSD.org> AuthorDate: 2023-12-17 21:18:36 +0000 Commit: Emanuel Haupt <ehaupt@FreeBSD.org> CommitDate: 2023-12-17 21:19:27 +0000 net/py-trio: Use pep517 macro instead of dummy setup.py Notified by: vishwin --- net/py-trio/Makefile | 7 +++++-- net/py-trio/files/patch-pyproject.toml | 9 +++++++++ net/py-trio/files/patch-setup.py | 6 ------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/net/py-trio/Makefile b/net/py-trio/Makefile index a0c77715719f..8e83e745ef9b 100644 --- a/net/py-trio/Makefile +++ b/net/py-trio/Makefile @@ -1,5 +1,6 @@ PORTNAME= trio -PORTVERSION= 0.23.2 +DISTVERSION= 0.23.2 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,6 +14,8 @@ LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.APACHE2 LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.MIT +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}async_generator>0:devel/py-async_generator@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}attrs>=19.2.0:devel/py-attrs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cffi>=1.14:devel/py-cffi@${PY_FLAVOR} \ @@ -29,7 +32,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astor>=0:devel/py-astor@${PY_FLAVOR} \ # 3.6+ but contextvars comes with 3.7 USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist pep517 NO_ARCH= yes diff --git a/net/py-trio/files/patch-pyproject.toml b/net/py-trio/files/patch-pyproject.toml new file mode 100644 index 000000000000..6d2e67d9e4cc --- /dev/null +++ b/net/py-trio/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2023-12-14 02:37:27 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools >= 64"] ++requires = ["setuptools >= 63"] + build-backend = "setuptools.build_meta" + + [project] diff --git a/net/py-trio/files/patch-setup.py b/net/py-trio/files/patch-setup.py deleted file mode 100644 index 130806a8f6f1..000000000000 --- a/net/py-trio/files/patch-setup.py +++ /dev/null @@ -1,6 +0,0 @@ ---- setup.py.orig 2022-11-12 09:41:13 UTC -+++ setup.py -@@ -0,0 +1,3 @@ -+import setuptools -+if __name__ == "__main__": -+ setuptools.setup(use_scm_version=False)