-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Whilst updating workshop material, I tried installing from the main branch of the github repo and it fails under python 3.12 with the following trace.
#8 5.849 Processing /home/jovyan/CodeEntropy
#8 5.850 Preparing metadata (setup.py): started
#8 5.984 Preparing metadata (setup.py): finished with status 'error'
#8 5.989 error: subprocess-exited-with-error
#8 5.989
#8 5.989 × python setup.py egg_info did not run successfully.
#8 5.989 │ exit code: 1
#8 5.989 ╰─> [18 lines of output]
#8 5.989 /home/jovyan/CodeEntropy/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
#8 5.989 LONG_VERSION_PY['git'] = '''
#8 5.989 Traceback (most recent call last):
#8 5.989 File "", line 2, in
#8 5.989 File "", line 34, in
#8 5.989 File "/home/jovyan/CodeEntropy/setup.py", line 30, in
#8 5.989 version=versioneer.get_version(),
#8 5.989 ^^^^^^^^^^^^^^^^^^^^^^^^
#8 5.989 File "/home/jovyan/CodeEntropy/versioneer.py", line 1480, in get_version
#8 5.989 return get_versions()["version"]
#8 5.989 ^^^^^^^^^^^^^^
#8 5.989 File "/home/jovyan/CodeEntropy/versioneer.py", line 1412, in get_versions
#8 5.989 cfg = get_config_from_root(root)
#8 5.989 ^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 5.989 File "/home/jovyan/CodeEntropy/versioneer.py", line 342, in get_config_from_root
#8 5.989 parser = configparser.SafeConfigParser()
#8 5.989 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 5.989 AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
#8 5.989 [end of output]
#8 5.989
#8 5.989 note: This error originates from a subprocess, and is likely not a problem with pip.
#8 6.003 error: metadata-generation-failed
#8 6.003
#8 6.003 × Encountered error while generating package metadata.
#8 6.003 ╰─> See above for output.
#8 6.003
#8 6.003 note: This is an issue with the package mentioned above, not pip.
#8 6.003 hint: See above for details.
Not sure if the new version is already using a pyproject.toml or not but the switch needs to be made to work with modern pip versions. Also it is likely the build system for pypi needs an overhaul since various deprecations have been removed in python 3.12 versions of build deps.