Skip to content

Commit

Permalink
net/py-trio: Use pep517 macro instead of dummy setup.py
Browse files Browse the repository at this point in the history
Notified by:	vishwin
  • Loading branch information
ehaupt committed Dec 17, 2023
1 parent d90db2b commit b3f1221
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions 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}
Expand All @@ -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} \
Expand All @@ -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

Expand Down
9 changes: 9 additions & 0 deletions 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]
6 changes: 0 additions & 6 deletions net/py-trio/files/patch-setup.py

This file was deleted.

0 comments on commit b3f1221

Please sign in to comment.