You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While packaging hatch for openSUSE/Tumbleweed, I got this:
[ 19s] + PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/python-hatch-test-1.13.0-45.1.i386/usr/lib/python3.10/site-packages
[ 19s] + PYTHONDONTWRITEBYTECODE=1
[ 19s] + pytest-3.10 --ignore=_build.python310 --ignore=_build.python312 --ignore=_build.python313 --ignore=_build.python311 -v -v -k 'not ((test_install and test_already_installed_update_prompt) or (test_install and test_already_installed_update_flag) or (test_install and test_all) or (test_resolve and test_resolution_error) or test_custom_source or test_pypy_custom or test_uv_env or test_pyenv or test_no_open or test_open)'
[ 20s] ============================= test session starts ==============================
[ 20s] platform linux -- Python 3.10.16, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.10
[ 20s] cachedir: .pytest_cache
[ 20s] rootdir: /home/abuild/rpmbuild/BUILD/hatch-hatch-v1.13.0
[ 20s] configfile: pyproject.toml
[ 20s] plugins: anyio-4.6.2.post1, pyfakefs-5.6.0, mock-3.14.0, xdist-3.6.1
[ 24s] collecting ... collected 2057 items / 2 errors / 20 deselected / 2037 selected
[ 24s]
[ 24s] ==================================== ERRORS ====================================
[ 24s] ____________ ERROR collecting tests/backend/licenses/test_parse.py _____________
[ 24s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/hatch-hatch-v1.13.0/tests/backend/licenses/test_parse.py'.
[ 24s] Hint: make sure your test modules/packages have valid Python names.
[ 24s] Traceback:
[ 24s] /usr/lib/python3.10/site-packages/_pytest/python.py:493: in importtestmodule
[ 24s] mod = import_path(
[ 24s] /usr/lib/python3.10/site-packages/_pytest/pathlib.py:582: in import_path
[ 24s] importlib.import_module(module_name)
[ 24s] /usr/lib/python3.10/importlib/__init__.py:126: in import_module
[ 24s] return _bootstrap._gcd_import(name[level:], package, level)
[ 24s] <frozen importlib._bootstrap>:1050: in _gcd_import
[ 24s] ???
[ 24s] <frozen importlib._bootstrap>:1027: in _find_and_load
[ 24s] ???
[ 24s] <frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
[ 24s] ???
[ 24s] <frozen importlib._bootstrap>:688: in _load_unlocked
[ 24s] ???
[ 24s] /usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:184: in exec_module
[ 24s] exec(co, module.__dict__)
[ 24s] tests/backend/licenses/test_parse.py:5: in <module>
[ 24s] from hatchling.licenses.parse import normalize_license_expression
[ 24s] E ModuleNotFoundError: No module named 'hatchling.licenses.parse'
[ 24s] __________ ERROR collecting tests/backend/licenses/test_supported.py ___________
[ 24s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/hatch-hatch-v1.13.0/tests/backend/licenses/test_supported.py'.
[ 24s] Hint: make sure your test modules/packages have valid Python names.
[ 24s] Traceback:
[ 24s] /usr/lib/python3.10/site-packages/_pytest/python.py:493: in importtestmodule
[ 24s] mod = import_path(
[ 24s] /usr/lib/python3.10/site-packages/_pytest/pathlib.py:582: in import_path
[ 24s] importlib.import_module(module_name)
[ 24s] /usr/lib/python3.10/importlib/__init__.py:126: in import_module
[ 24s] return _bootstrap._gcd_import(name[level:], package, level)
[ 24s] <frozen importlib._bootstrap>:1050: in _gcd_import
[ 24s] ???
[ 24s] <frozen importlib._bootstrap>:1027: in _find_and_load
[ 24s] ???
[ 24s] <frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
[ 24s] ???
[ 24s] <frozen importlib._bootstrap>:688: in _load_unlocked
[ 24s] ???
[ 24s] /usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:184: in exec_module
[ 24s] exec(co, module.__dict__)
[ 24s] tests/backend/licenses/test_supported.py:1: in <module>
[ 24s] from hatchling.licenses.supported import EXCEPTIONS, LICENSES
[ 24s] E ImportError: cannot import name 'EXCEPTIONS' from 'hatchling.licenses.supported' (/usr/lib/python3.10/site-packages/hatchling/licenses/supported.py)
[ 24s] =========================== short test summary info ============================
[ 24s] ERROR tests/backend/licenses/test_parse.py
[ 24s] ERROR tests/backend/licenses/test_supported.py
[ 24s] !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
[ 24s] ======================= 20 deselected, 2 errors in 4.13s =======================
Complete build log with all details of packages used and steps taken to reproduce.
Using the latest released hatchling 1.26.3.
The text was updated successfully, but these errors were encountered:
mcepl
changed the title
Two errors while loading the test suite ()
Two errors while loading the test suite (tests/backend/licenses/test_parse.py and tests/backend/licenses/test_supported.py)
Dec 11, 2024
While packaging hatch for openSUSE/Tumbleweed, I got this:
Complete build log with all details of packages used and steps taken to reproduce.
Using the latest released hatchling 1.26.3.
The text was updated successfully, but these errors were encountered: