git: e6d9de4b63bb - main - misc/py-smdebug-rulesconfig: Fix stage-qa
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 20:54:04 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e6d9de4b63bbe31c846cf3553548eba42334a5e5
commit e6d9de4b63bbe31c846cf3553548eba42334a5e5
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-06-26 20:47:48 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-06-26 20:47:48 +0000
misc/py-smdebug-rulesconfig: Fix stage-qa
- Bump PORTREVISION for package change
====> Running Q/A tests (stage-qa)
Error: Python package installs top-level 'tests/' directory in site-packages
Error: Location: lib/python3.11/site-packages/tests
Error: This causes file conflicts with other packages. Exclude it via pyproject.toml:
Error: [tool.setuptools.packages.find]
Error: exclude = ["tests", "tests.*"]
Error: See: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
*** Error code 1
Approved by: portmgr (blanket)
With hat: python
---
misc/py-smdebug-rulesconfig/Makefile | 1 +
misc/py-smdebug-rulesconfig/files/patch-setup.py | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/misc/py-smdebug-rulesconfig/Makefile b/misc/py-smdebug-rulesconfig/Makefile
index 7453602b9b5b..d1c5d17dece6 100644
--- a/misc/py-smdebug-rulesconfig/Makefile
+++ b/misc/py-smdebug-rulesconfig/Makefile
@@ -1,5 +1,6 @@
PORTNAME= smdebug-rulesconfig
DISTVERSION= 1.0.1
+PORTREVISION= 1
CATEGORIES= misc python # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/misc/py-smdebug-rulesconfig/files/patch-setup.py b/misc/py-smdebug-rulesconfig/files/patch-setup.py
new file mode 100644
index 000000000000..c2b27cba0799
--- /dev/null
+++ b/misc/py-smdebug-rulesconfig/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2020-12-08 17:43:31 UTC
++++ setup.py
+@@ -22,7 +22,7 @@ def build_rule_config_package(version):
+ description="SMDebug RulesConfig",
+ long_description=long_description,
+ url="https://github.com/awslabs/sagemaker-debugger-rulesconfig",
+- packages=setuptools.find_packages(),
++ packages=setuptools.find_packages(exclude = ["tests", "tests.*"]),
+ package_data={"smdebug_rulesconfig": ["debugger_rules/rule_config_jsons/*.json"]},
+ classifiers=[
+ "Programming Language :: Python :: 3",