python-jsonschema / jsonschema-specifications

Support files exposing JSON from the JSON Schema specifications to Python
https://jsonschema-specifications.readthedocs.io/
MIT License
10 stars 7 forks source link

2023.11.1: pytest is failing in `jsonschema_specifications/tests/test_jsonschema_specifications.py` unit #29

Closed kloczek closed 11 months ago

kloczek commented 11 months ago

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.

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 =============================== ```

Here is list of installed modules in build env

```console Package Version ----------------------------- ---------- alabaster 0.7.13 attrs 23.1.0 Babel 2.13.1 build 1.0.3 charset-normalizer 3.3.2 contourpy 1.0.7 cppclean 0.13 cycler 0.12.1 distro 1.8.0 dnf 4.18.1 docutils 0.20.1 editables 0.5 exceptiongroup 1.1.3 fonttools 4.44.3 gpg 1.23.0 hatch-vcs 0.4.0 hatchling 1.18.0 idna 3.4 imagesize 1.4.1 importlib-metadata 6.8.0 importlib-resources 6.1.1 iniconfig 2.0.0 installer 0.7.0 Jinja2 3.1.2 kiwisolver 1.4.5 libdnf 0.72.0 MarkupSafe 2.1.3 matplotlib 3.6.3 numpy 1.24.4 olefile 0.46 packaging 23.2 pathspec 0.11.2 Pillow 10.1.0 pluggy 1.3.0 pyenchant 3.2.2 Pygments 2.16.1 pyparsing 3.1.1 pyproject_hooks 1.0.0 pytest 7.4.3 python-dateutil 2.8.2 pytz 2023.3 referencing 0.30.2 requests 2.31.0 rpds-py 0.12.0 setuptools 68.2.2 setuptools-scm 8.0.4 six 1.16.0 snowballstemmer 2.2.0 Sphinx 7.1.2 sphinx-copybutton 0.5.2 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.5 sphinxcontrib-htmlhelp 2.0.4 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.9 sphinxcontrib-spelling 8.0.0 sphinxext-opengraph 0.8.2 tomli 2.0.1 trove-classifiers 2023.11.14 typing_extensions 4.8.0 urllib3 1.26.18 wheel 0.41.3 zipp 3.17.0 ```
Julian commented 11 months ago

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.