-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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] pytest-dev/pytest#5881 [2] pytest-dev/pytest#6177 PR: 226077 Reported by: yuri [1] Approved by: portmgr (blanket: ports compliance) net/py-suds-jurko: Bump PORTREVISION missed in ports r522860 PR: 226077 Approved by: ports-secteam (blanket(s): ports compliance, port bugfixes)
- Loading branch information
Showing
4 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# [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] |
23 changes: 23 additions & 0 deletions
23
net/py-suds-jurko/files/patch-tests_indirect__parametrize.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# pytest_namespace() was removed in 4.x | ||
# See: https://docs.pytest.org/en/latest/deprecations.html#pytest-namespacehttps://docs.pytest.org/en/latest/deprecations.html#pytest-namespace | ||
# TODO: Upstream | ||
|
||
--- tests/indirect_parametrize.py.orig 2014-01-21 19:06:03 UTC | ||
+++ tests/indirect_parametrize.py | ||
@@ -112,6 +112,7 @@ def pytest_configure(config): | ||
"argument list and keyword argument dictionary) based on the received " | ||
"input data. For more detailed information see the " | ||
"indirect_parametrize pytest plugin implementation module.") | ||
+ pytest.indirect_parametrize = indirect_parametrize | ||
|
||
|
||
def pytest_generate_tests(metafunc): | ||
@@ -123,8 +124,3 @@ def pytest_generate_tests(metafunc): | ||
return | ||
args, kwargs = mark.args[0](*mark.args[1:], **mark.kwargs) | ||
metafunc.parametrize(*args, **kwargs) | ||
- | ||
- | ||
-def pytest_namespace(): | ||
- """pytest hook publishing references in the toplevel pytest namespace.""" | ||
- return {'indirect_parametrize': indirect_parametrize} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Lightweight SOAP client written in Python (jurko's fork). | ||
Based on the original 'suds' project by Jeff Ortel (jortel at redhat | ||
dot com) hosted at 'http://fedorahosted.org/suds'. | ||
|
||
WWW: https://pypi.org/project/suds-jurko/ | ||
'Suds' is a lightweight SOAP-based web service client for Python | ||
|
||
WWW: https://bitbucket.org/jurko/suds |