modin-project / modin

Modin: Scale your Pandas workflows by changing a single line of code
http://modin.readthedocs.io
Apache License 2.0
9.59k stars 647 forks source link

`versioneer.py` is broken in python 3.12 #7309

Closed anmyachev closed 2 weeks ago

anmyachev commented 2 weeks ago

Found while trying to build conda packages:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/home/conda/feedstock_root/build_artifacts/modin-packages_xxx/work/setup.py", line 45, in <module>
      version=versioneer.get_version(),
              ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/conda/feedstock_root/build_artifacts/modin-packages_xxx/work/versioneer.py", line 1482, in get_version
      return get_versions()["version"]
             ^^^^^^^^^^^^^^
    File "/home/conda/feedstock_root/build_artifacts/modin-packages_xxx/work/versioneer.py", line 1414, in get_versions
      cfg = get_config_from_root(root)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/conda/feedstock_root/build_artifacts/modin-packages_xxx/work/versioneer.py", line 344, in get_config_from_root
      parser = configparser.SafeConfigParser()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

The version we are using is very old, we need to try updating to a new one.