Skip to content

Update versioneer.py to 0.21 #27

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

Closed
wants to merge 1 commit into from

Conversation

eclipseo
Copy link

@eclipseo eclipseo commented Dec 18, 2021

This is needed for Python 3.11:

Traceback (most recent call last):
  File "/builddir/build/BUILD/constantly-15.1.0/setup.py", line 41, in <module>
    version=versioneer.get_version(),
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/constantly-15.1.0/versioneer.py", line 1405, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/constantly-15.1.0/versioneer.py", line 1339, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/constantly-15.1.0/versioneer.py", line 399, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Removed from the configparser module: the SafeConfigParser class, the filename
property of the ParsingError class, the readfp() method of the ConfigParser
class, deprecated since Python 3.2. (Contributed by Hugo van Kemenade in
bpo-45173.)
https://docs.python.org/3.11/whatsnew/3.11.html

WARNING: latest versioneer is only compatible with Python 3.x

@bkuhls
Copy link

bkuhls commented Aug 7, 2023

ping, please apply this commit and consider a new release, thanks!

@graingert
Copy link
Member

Thanks for the PR, this was resolved in #35

@graingert graingert closed this Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants