psss / did

What did you do last week, month, year?
https://did.readthedocs.io/
GNU General Public License v2.0
247 stars 105 forks source link

Fedora 39 failure due to Python 3.12 changes #316

Closed sandrobonazzola closed 1 year ago

sandrobonazzola commented 1 year ago

On Fedora 39 unit tests are failing on:

Traceback (most recent call last):
  File "/usr/bin/did", line 42, in <module>
    did.cli.main()
  File "/usr/lib/python3.12/site-packages/did/cli.py", line 199, in main
    custom_plugins = did.base.Config().plugins
                     ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/did/base.py", line 102, in __init__
    self.parser.readfp(codecs.open(path, "r", "utf8"))
    ^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

as the already deprecated readfp has been dropped in Python 3.12.

sandrobonazzola commented 1 year ago

Fixed by #313