-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outdated versioneer.py broken for Python 3.12 #70
Comments
Hi! I cloned your fork and tried to build locally library from source via
that was raised by:
is it expected behaviour or I missed something? |
Python 3.12 removed the long deprecated configparser.SafeConfigParser class which old versions of versioneer depended on.
Expected Behavior
pip install spylon-kernel
correctly installs the package.Current Behavior
pip install spylon-kernel
fails with this output:Steps to Reproduce
pip install spylon-kernel
, using Python versions 3.12 and higher.Detailed Description
SafeConfigParser had been deprecated since Python 3.2., and renamed to simply ConfigParser. In Python 3.12 it has finally been removed.
The versioneer.py file in this repository has been generated with versioneer version 0.17, which generated code that uses SafeConfigParser.
New versions of versioneer use ConfigParser instead, so generating a new versioneer.py with a more recent version fixes the issue.
See: https://docs.python.org/3/whatsnew/3.2.html#configparser
and: https://docs.python.org/3/whatsnew/3.12.html#removed
Possible Solution
Update the code generated by versioneer to a more recent version.
The text was updated successfully, but these errors were encountered: