git: a78c436778cf - main - devel/py-pypemicro: Fix stage-qa
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 20:53:48 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a78c436778cf3c004792d2d68a74e290bde2ed19
commit a78c436778cf3c004792d2d68a74e290bde2ed19
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-06-26 20:47:35 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-06-26 20:47:35 +0000
devel/py-pypemicro: 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
---
devel/py-pypemicro/Makefile | 1 +
devel/py-pypemicro/files/patch-setup.py | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/devel/py-pypemicro/Makefile b/devel/py-pypemicro/Makefile
index 2fb26a061b0a..8cc1e34f7c3a 100644
--- a/devel/py-pypemicro/Makefile
+++ b/devel/py-pypemicro/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pypemicro
PORTVERSION= 0.1.11
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-pypemicro/files/patch-setup.py b/devel/py-pypemicro/files/patch-setup.py
new file mode 100644
index 000000000000..a10321f40137
--- /dev/null
+++ b/devel/py-pypemicro/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2023-02-23 12:56:33 UTC
++++ setup.py
+@@ -16,7 +16,7 @@ setup_args = dict(
+ python_requires=">=3.7",
+ setup_requires=["setuptools>=40.0"],
+ license="BSD-3-Clause",
+- packages=find_packages(),
++ packages=find_packages(exclude = ["tests", "tests.*"]),
+ author="Petr Gargulak",
+ author_email="petr.gargulak@nxp.com",
+ keywords=["PEMicro", "PyPEMicro"],