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.
+ 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 ================================================================
Package Version
----------------------------- -----------------
alabaster 0.7.12
attrs 21.4.0
Babel 2.9.1
backcall 0.2.0
build 0.7.0
charset-normalizer 2.0.12
codespell 2.1.0
cycler 0.11.0
decorator 5.1.1
distro 1.7.0
docutils 0.17.1
entrypoints 0.4
extras 1.0.0
fastjsonschema 2.15.3
fixtures 3.0.0
fonttools 4.32.0
gpg 1.17.1-unknown
html5lib 1.1
idna 3.3
imagesize 1.3.0
importlib-metadata 4.11.3
importlib-resources 5.7.0
iniconfig 1.1.1
jedi 0.18.1
Jinja2 3.1.1
jsonschema 4.4.0
jupyter-client 7.2.2
jupyter-core 4.9.2
kiwisolver 1.3.2
libcomps 0.1.18
MarkupSafe 2.1.1
matplotlib 3.5.1
matplotlib-inline 0.1.3
mock 4.0.3
nbformat 5.3.0
nest-asyncio 1.5.5
numpy 1.22.3
olefile 0.46
packaging 21.3
parso 0.8.3
pbr 5.8.1
pep517 0.12.0
pexpect 4.8.0
pickleshare 0.7.5
Pillow 9.1.0
pip 22.0.4
pluggy 1.0.0
ply 3.11
prompt-toolkit 3.0.29
ptyprocess 0.7.0
py 1.11.0
pycparser 2.21
Pygments 2.11.2
PyGObject 3.42.0
pyparsing 3.0.8
pyrsistent 0.18.1
pytest 7.1.1
python-dateutil 2.8.2
pytz 2022.1
pyzmq 22.3.0
requests 2.27.1
rpm 4.17.0
setuptools 62.0.0
six 1.16.0
snowballstemmer 2.2.0
soupsieve 2.3.2.post1
Sphinx 4.5.0.dev20220404
sphinx-celery 2.0.0
sphinxcontrib-applehelp 1.0.2.dev20220410
sphinxcontrib-devhelp 1.0.2.dev20220410
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1.dev20220410
sphinxcontrib-qthelp 1.0.3.dev20220410
sphinxcontrib-serializinghtml 1.1.5
testtools 2.5.0
tomli 2.0.1
tornado 6.1
traitlets 5.1.1
urllib3 1.26.9
vine 5.0.0
wcwidth 0.2.5
webencodings 0.5.1
wheel 0.37.1
zipp 3.8.0
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-isolationbuildwith--no-isolationI'm using during all processes only locally installed modulesHere is pytest output:
list of modules installed in build env