setuptools_scm_git_archive
setuptools_scm_git_archive copied to clipboard
1.4: pytest fails with latest `setuptools-scm`
setuptools-scm 8.0.4 and pytest fails with
+ /usr/bin/pytest -ra -m 'not network' tests.py
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/setuptools_scm_git_archive-1.4
collected 0 items / 1 error
==================================== ERRORS ====================================
__________________________ ERROR collecting tests.py ___________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/setuptools_scm_git_archive-1.4/tests.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)
tests.py:2: in <module>
from setuptools_scm import format_version
E ImportError: cannot import name 'format_version' from 'setuptools_scm' (/usr/lib/python3.8/site-packages/setuptools_scm/__init__.py)
=========================== short test summary info ============================
ERROR tests.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.17s ===============================