git: 1ec80ff00833 - main - devel/py-opencensus-context: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Apr 2024 20:20:07 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1ec80ff00833a81136810dd9a712532d69edd5d5
commit 1ec80ff00833a81136810dd9a712532d69edd5d5
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-08 20:14:49 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-08 20:17:16 +0000
devel/py-opencensus-context: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
---
devel/py-opencensus-context/Makefile | 10 +++++-----
devel/py-opencensus-context/files/patch-setup.py | 11 +++++++++++
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/devel/py-opencensus-context/Makefile b/devel/py-opencensus-context/Makefile
index 9a956d6b0d3a..6487894e27dd 100644
--- a/devel/py-opencensus-context/Makefile
+++ b/devel/py-opencensus-context/Makefile
@@ -1,5 +1,6 @@
PORTNAME= opencensus-context
PORTVERSION= 0.1.3
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,14 +11,13 @@ WWW= https://github.com/census-instrumentation/opencensus-python/tree/master/co
LICENSE= APACHE20
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
USES= dos2unix python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
-post-patch:
- @${RM} ${WRKSRC}/opencensus/__init__.py
-
.include <bsd.port.mk>
diff --git a/devel/py-opencensus-context/files/patch-setup.py b/devel/py-opencensus-context/files/patch-setup.py
new file mode 100644
index 000000000000..086beb4e42a7
--- /dev/null
+++ b/devel/py-opencensus-context/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2022-08-03 21:31:16 UTC
++++ setup.py
+@@ -54,7 +54,7 @@ setup(
+ ],
+ extras_require={},
+ license='Apache-2.0',
+- packages=find_packages(exclude=('examples', 'tests',)),
++ packages=['opencensus.common.runtime_context'],
+ namespace_packages=[],
+ url='https://github.com/census-instrumentation/opencensus-python/tree/master/context/opencensus-context', # noqa: E501
+ zip_safe=False,