I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix>
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
I'm no sure what could be wron in my build env. If may I ask for some hints 🤔
pytest shows as well some PytestUnknownMarkWarning warnings
Here is pytest output:
```console
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1, configfile: pyproject.toml, testpaths: tests
plugins: anyio-3.6.2, httpx-0.21.0, requests-mock-1.10.0
collected 466 items / 3 errors
========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________ ERROR collecting tests/test_wsse_signature.py _______________________________________________________________________
tests/test_wsse_signature.py:9: in
from zeep import ns, wsse
../../BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/zeep/wsse/__init__.py:2: in
from .signature import BinarySignature, MemorySignature, Signature
../../BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/zeep/wsse/signature.py:20: in
import xmlsec
E xmlsec.Error: (1, 'cannot load crypto library for xmlsec.')
_______________________________________________________________________ ERROR collecting tests/test_wsse_username.py ________________________________________________________________________
tests/test_wsse_username.py:10: in
from zeep.wsse import UsernameToken
../../BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/zeep/wsse/__init__.py:2: in
from .signature import BinarySignature, MemorySignature, Signature
../../BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/zeep/wsse/signature.py:20: in
import xmlsec
E xmlsec.Error: (1, 'cannot load crypto library for xmlsec.')
_________________________________________________________________________ ERROR collecting tests/test_wsse_utils.py _________________________________________________________________________
tests/test_wsse_utils.py:3: in
from zeep.wsse import utils
../../BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/zeep/wsse/__init__.py:2: in
from .signature import BinarySignature, MemorySignature, Signature
../../BUILDROOT/python-zeep-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/zeep/wsse/signature.py:20: in
import xmlsec
E xmlsec.Error: (1, 'cannot load crypto library for xmlsec.')
===================================================================================== warnings summary ======================================================================================
tests/conftest.py:19
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/conftest.py:19: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
@pytest.yield_fixture()
tests/test_async_client.py:7
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_async_client.py:7: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.asyncio
tests/test_async_transport.py:28
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_async_transport.py:28: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.asyncio
tests/test_async_transport.py:41
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_async_transport.py:41: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.asyncio
tests/test_async_transport.py:58
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_async_transport.py:58: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.asyncio
tests/test_async_transport.py:65
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_async_transport.py:65: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.asyncio
tests/test_wsdl.py:162
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_wsdl.py:162: DeprecationWarning: invalid escape sequence \-
"""
tests/test_xsd_union.py:50
/home/tkloczko/rpmbuild/BUILD/python-zeep-4.2.1/tests/test_xsd_union.py:50: DeprecationWarning: invalid escape sequence \d
"""
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
ERROR tests/test_wsse_signature.py - xmlsec.Error: (1, 'cannot load crypto library for xmlsec.')
ERROR tests/test_wsse_username.py - xmlsec.Error: (1, 'cannot load crypto library for xmlsec.')
ERROR tests/test_wsse_utils.py - xmlsec.Error: (1, 'cannot load crypto library for xmlsec.')
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 8 warnings, 3 errors in 1.01s ===============================================================================
```
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modules-m "not network"
)I'm no sure what could be wron in my build env. If may I ask for some hints 🤔 pytest shows as well some
PytestUnknownMarkWarning
warningsHere is pytest output:
Here is list of installed modules in build env