about [UPDATING] [MOVED] [vuxml]summaryrefslograw-logtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Crandol <patrick@crandol.com>2026-11-30 03:59:03 +0000
committerYusuf Yaman <nxjoseph@FreeBSD.org>2026-11-30 15:02:26 +0000
commit1e080c97e709c6150ae01dd041980f8aea4d0058 (patch) (diff)
treee5ec8df0b9089d0da08da2434fc59f242a29a953
downloadports-1e080c97e709c6150ae01dd041980f8aea4d0058.tar.gz
 
previous commitbd7789bbd8121dcbf2d43027fcede3ec14e0301b (devel/ruby-build: Update to 20261130)
devel/py-pyformance: Drop the pkg_resources namespace declaration
- pyformance/__init__.py declares a pkg_resources namespace, but setup.py declares no namespace packages and nothing else installs into pyformance/, so the line does nothing. Patch it out and drop the py-setuptools run dependency it needed. - Add py-mock to TEST_DEPENDS: three test modules import mock, so they failed to import under USE_PYTHON=unittest. PR: 299863 Reported by: vishwin (via e-mail) MFH: 2026Q4 (cherry picked from commit c22a007aaf31eb8d30f1f1205759dc5e1aff6c45)
-rw-r--r--devel/py-pyformance/Makefile[diff] [file]6
-rw-r--r--devel/py-pyformance/files/patch-pyformance___init__.py[diff] [file]16
2 files changed, 19 insertions, 3 deletions
diff --git a/devel/py-pyformance/Makefile b/devel/py-pyformance/Makefile
index 2b6d6530c9ff..923fc44ca2b0 100644
--- a/devel/py-pyformance/Makefile
+++ b/devel/py-pyformance/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pyformance
PORTVERSION= 0.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517 unittest
diff --git a/devel/py-pyformance/files/patch-pyformance___init__.py b/devel/py-pyformance/files/patch-pyformance___init__.py
new file mode 100644
index 000000000000..c76e0137a673
--- /dev/null
+++ b/devel/py-pyformance/files/patch-pyformance___init__.py
@@ -0,0 +1,16 @@
+Description: Drop the pkg_resources namespace declaration. setup.py
+ declares no namespace packages and nothing else installs into
+ pyformance/, so the line only pulled in setuptools at run time.
+Issue ID: none
+Changeset: none
+TODO: Upstream is dead (no commits since 2018-12); keep locally.
+
+--- pyformance/__init__.py.orig 2017-10-08 11:44:59 UTC
++++ pyformance/__init__.py
+@@ -1,6 +1,4 @@
+-__import__('pkg_resources').declare_namespace(__name__)
+-
+ from .registry import MetricsRegistry, global_registry, set_global_registry
+ from .registry import timer, counter, meter, histogram, gauge
+ from .registry import dump_metrics, clear, count_calls, meter_calls, hist_calls, time_calls
+ from .meters.timer import call_too_long
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.