I'm trying to package 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>
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-amqp-5.1.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-amqp-5.1.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1, configfile: setup.cfg, testpaths: t/unit/, t/integration/
collected 367 items
t/unit/test_abstract_channel.py ................. [ 4%]
t/unit/test_basic_message.py . [ 4%]
t/unit/test_channel.py ............................................................... [ 22%]
t/unit/test_connection.py ................................................................... [ 40%]
t/unit/test_exceptions.py .......................... [ 47%]
t/unit/test_method_framing.py ............ [ 50%]
t/unit/test_platform.py ........ [ 52%]
t/unit/test_sasl.py ........... [ 55%]
t/unit/test_serialization.py .............................. [ 64%]
t/unit/test_transport.py .................................................................. [ 82%]
t/unit/test_utils.py ......... [ 84%]
t/integration/test_integration.py .................................. [ 93%]
t/integration/test_rmq.py sssssssssssssssssssssss [100%]
============================================================================= warnings summary =============================================================================
t/integration/test_rmq.py:53
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1/t/integration/test_rmq.py:53: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - 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.flaky(reruns=5, reruns_delay=2)
t/integration/test_rmq.py:61
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1/t/integration/test_rmq.py:61: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - 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.flaky(reruns=5, reruns_delay=2)
t/integration/test_rmq.py:78
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1/t/integration/test_rmq.py:78: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - 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.flaky(reruns=5, reruns_delay=2)
t/integration/test_rmq.py:90
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1/t/integration/test_rmq.py:90: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - 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.flaky(reruns=5, reruns_delay=2)
t/integration/test_rmq.py:128
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1/t/integration/test_rmq.py:128: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - 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.flaky(reruns=5, reruns_delay=2)
t/integration/test_rmq.py:200
/home/tkloczko/rpmbuild/BUILD/py-amqp-5.1.1/t/integration/test_rmq.py:200: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - 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.flaky(reruns=5, reruns_delay=2)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [23] conftest.py:15: test requires env in ['rabbitmq']
=============================================================== 344 passed, 23 skipped, 6 warnings in 1.56s ================================================================
I'm trying to package 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 modulesHere is pytest output:
list of modules installed in build env