mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
net/py-suds-jurko: Fix build with py-setuptools 58.0.0+
- Bump PORTREVISION for package change ===> Configuring for py38-suds-jurko-0.6_1 error in suds-jurko setup command: use_2to3 is invalid. *** Error code 1 Stop. make: stopped in /usr/ports/net/py-suds-jurko Reference: https://github.com/pypa/setuptools/blob/main/CHANGES.rst
This commit is contained in:
parent
6eaf83b3ea
commit
e2f07d2ed3
3 changed files with 1974 additions and 23 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= suds-jurko
|
||||
PORTVERSION= 0.6
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -20,27 +20,6 @@ USE_PYTHON= autoplist concurrent distutils
|
|||
|
||||
NO_ARCH= yes
|
||||
|
||||
post-patch:
|
||||
# Move the tests into the main package so
|
||||
# they are processed by 2to3 so we can test Python 3
|
||||
@${MV} ${WRKSRC}/tests ${WRKSRC}/suds/tests
|
||||
# Compensate for the package/module name change
|
||||
@${REINPLACE_CMD} -e 's|import tests|import suds.tests|g' \
|
||||
${WRKSRC}/suds/tests/test_argument_parser.py \
|
||||
${WRKSRC}/suds/tests/test_date_time.py \
|
||||
${WRKSRC}/suds/tests/test_input_parameters.py \
|
||||
${WRKSRC}/suds/tests/test_reply_handling.py \
|
||||
${WRKSRC}/suds/tests/test_request_construction.py \
|
||||
${WRKSRC}/suds/tests/test_suds.py \
|
||||
${WRKSRC}/suds/tests/test_timezone.py
|
||||
@${REINPLACE_CMD} -e 's|tests.|suds.tests.|g' \
|
||||
${WRKSRC}/suds/tests/conftest.py \
|
||||
${WRKSRC}/suds/tests/test_reply_handling.py \
|
||||
${WRKSRC}/suds/tests/test_suds.py \
|
||||
${WRKSRC}/suds/tests/test_request_construction.py \
|
||||
${WRKSRC}/suds/tests/test_input_parameters.py \
|
||||
${WRKSRC}/suds/tests/test_argument_parser.py
|
||||
|
||||
# lambda: foo needed due to wanting to exclude parametrized tests
|
||||
# https://github.com/pytest-dev/pytest/issues/5881
|
||||
# https://github.com/pytest-dev/pytest/issues/6177
|
||||
|
@ -59,6 +38,6 @@ do-test:
|
|||
and not (lambda: locals)()()['test_choice_containing_an_empty_sequence[test_args_required0]'] \
|
||||
and not (lambda: locals)()()['test_choice_explicitly_marked_as_optional[choice0]'] \
|
||||
and not test_sending_unicode_data" \
|
||||
build/lib/suds/tests
|
||||
build/lib/tests
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
1952
net/py-suds-jurko/files/patch-2to3
Normal file
1952
net/py-suds-jurko/files/patch-2to3
Normal file
File diff suppressed because it is too large
Load diff
20
net/py-suds-jurko/files/patch-setup.py
Normal file
20
net/py-suds-jurko/files/patch-setup.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- setup.py.orig 2021-09-20 17:08:56 UTC
|
||||
+++ setup.py
|
||||
@@ -91,17 +91,6 @@ if sys.version_info >= (2, 5):
|
||||
# distutils.setup() 'obsoletes' parameter not introduced until Python 2.5.
|
||||
extra_setup_params["obsoletes"] = ["suds"]
|
||||
|
||||
-if sys.version_info >= (3, 0):
|
||||
- extra_setup_params["use_2to3"] = True
|
||||
-
|
||||
- # Teach Python's urllib lib2to3 fixer that the old urllib2.__version__
|
||||
- # data member is now stored in the urllib.request module.
|
||||
- import lib2to3.fixes.fix_urllib
|
||||
- for x in lib2to3.fixes.fix_urllib.MAPPING["urllib2"]:
|
||||
- if x[0] == "urllib.request":
|
||||
- x[1].append("__version__")
|
||||
- break;
|
||||
-
|
||||
# Wrap long_description at 72 characters since PKG-INFO package distribution
|
||||
# metadata file stores this text with an 8 space indentation.
|
||||
long_description = """
|
Loading…
Add table
Reference in a new issue