diff --git a/devel/py-setuptools-dso/Makefile b/devel/py-setuptools-dso/Makefile index 054da756b323..4508d3ff2191 100644 --- a/devel/py-setuptools-dso/Makefile +++ b/devel/py-setuptools-dso/Makefile @@ -1,26 +1,28 @@ PORTNAME= setuptools-dso DISTVERSION= 2.12.3 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Setuptools extension to build non-python shared libraries WWW= https://github.com/mdavidsaver/setuptools_dso LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PY_SETUPTOOLS} USES= python USE_PYTHON= pep517 autoplist pytest +TEST_ARGS= -p no:relaxed + NO_ARCH= yes -# tests as of 2.12.3: 7 passed, 1 warning in 0.70s +# tests as of 2.12.3: 7 passed, 1 warning in 1.11s .include diff --git a/devel/py-setuptools-dso/files/patch-src_setuptools__dso_test_test__probe.py b/devel/py-setuptools-dso/files/patch-src_setuptools__dso_test_test__probe.py index 32028363cc26..a7270eed6472 100644 --- a/devel/py-setuptools-dso/files/patch-src_setuptools__dso_test_test__probe.py +++ b/devel/py-setuptools-dso/files/patch-src_setuptools__dso_test_test__probe.py @@ -1,11 +1,15 @@ ---- src/setuptools_dso/test/test_probe.py.orig 2024-08-16 07:22:13 UTC +-- Add FreeBSD to the list of recognized operating systems in test_probe.py +-- FreeBSD support was added to probe.py but the test still expected only +-- the original OS list. This patch adds FreeBSD to the assertion. + +--- src/setuptools_dso/test/test_probe.py.orig 2026-02-11 01:15:48 UTC +++ src/setuptools_dso/test/test_probe.py -@@ -70,7 +70,7 @@ is a test +@@ -79,7 +79,7 @@ is a test self.assertIn(info.compiler, ('clang', 'gcc', 'msvc')) self.assertGreater(info.compiler_version, (0,)) - self.assertIn(info.target_os, ("cygwin", "linux", "osx", "windows")) -+ #self.assertIn(info.target_os, ("cygwin", "linux", "osx", "windows")) ++ self.assertIn(info.target_os, ("cygwin", "freebsd", "linux", "osx", "windows")) self.assertIn(info.target_arch, ("aarch64", "arm32", "amd64", "i386")) self.assertIn(info.address_width, (32, 64)) self.assertIn(info.endian, ("little", "big"))