1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net/py-suds-jurko/files/patch-setup.cfg
Kubilay Kocak fddc324e02 net/py-suds-jurko: Fix tests installed into shared location [1]
This package installs its 'tests' module into a non-package-specific
location in the root site-packages directory. Python packages should/usually
address this by excluding tests from installation using
setup.py: find_packages(exclude[ "<package-glob>" ]).

Unfortunately the above 'simple' change cannot be used because it doesn't
allow the package to be tested on Python 3.x, as the tests package is not
processed by 2to3, and the tests need to be run on the processed (by 2to3)
sources. This may be the original reason upstream didn't remove them from
the build, not grokking the ramifications.

Accordingly, this change moves the tests into the main package namespace
and runs the tests on the processed sources in the resulting build/*
directory. Remove CONFLICTS_INSTALL (to py-suds) accordingly.

While I'm here:

Patch the tests to support pytest > 4 and hack around the
inability to reference parametrized tests (test[foo]) in pytests -k
expressions. [1][2]

Level up ports compliance: LICENSE_FILE, USE{S} ordering, match COMMENT
to setup.py:description, match pkg-descr WWW URL to setup.py:homepage

QA: All tests pass on Python 2.7-3.8

[1] https://github.com/pytest-dev/pytest/issues/5881
[2] https://github.com/pytest-dev/pytest/issues/6177

PR:		226077
Reported by:	yuri [1]
Approved by:	portmgr (blanket: ports compliance)
MFH:		2020Q1 (blanket: ports compliance, port bugfixes)
2020-01-13 07:02:35 +00:00

15 lines
278 B
INI

# [pytest] section in setup.cfg files is no longer supported
# TODO: Upstream
--- setup.cfg.orig 2020-01-13 04:27:33 UTC
+++ setup.cfg
@@ -4,7 +4,7 @@ optimize = 1
[sdist]
formats = bztar,zip
-[pytest]
+[tool:pytest]
norecursedirs = .git .hg .svn build dist
[egg_info]