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> using 'installer` module
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")
Here is pytest output:
```console
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jsonschema-specifications-2023.11.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jsonschema
-specifications-2023.11.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.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jsonschema-specifications-2023.11.1
collected 0 items / 1 error
==================================== ERRORS ====================================
_ ERROR collecting jsonschema_specifications/tests/test_jsonschema_specifications.py _
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/jsonschema-specifications-2023.11.1/jsonschema_specifications/tests/test_jsonschema_specifications.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
jsonschema_specifications/tests/test_jsonschema_specifications.py:3: in
from jsonschema_specifications import REGISTRY
../../BUILDROOT/python-jsonschema-specifications-2023.11.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/jsonschema_specifications/__init__.py:4: in
from referencing.jsonschema import EMPTY_REGISTRY as _EMPTY_REGISTRY
E ImportError: cannot import name 'EMPTY_REGISTRY' from 'referencing.jsonschema' (/usr/lib/python3.8/site-packages/referencing/jsonschema.py)
=========================== short test summary info ============================
ERROR jsonschema_specifications/tests/test_jsonschema_specifications.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.12s ===============================
```
You've been given a 30 day ban from this organization (despite saying the next time you did this would be a permanent one) for repeated bug spam. Obviously this is your final warning, and the next one indeed will be a permanent ban.
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 modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env