deprecated
deprecated copied to clipboard
Add support for Python 3.12
Tests use pkg_resources, which is part of setuptools and not included by default in Python 3.12+.
ImportError while importing test module '/private/tmp/deprecated/tests/test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test.py:2: in <module>
import pkg_resources
E ModuleNotFoundError: No module named 'pkg_resources'
The failing Python 3.7 job is unrelated.
Python 3.7 is EOL, I recommend dropping support for it. (As it happens, Python 3.8 is also EOL today.)
Updated!