Skip to content

Test on Python 3.15 and replace deprecated codecs.open - #553

Merged
josegonzalez merged 2 commits into
josegonzalez:masterfrom
Iamrodos:python-3.15
Nov 19, 2026
Merged

josegonzalez merged 2 commits into
josegonzalez:masterfrom
Iamrodos:python-3.15

Conversation

@Iamrodos

Copy link
Copy Markdown
Contributor

Python 3.15 was released on 2026-10-09 and already works. This PR adds it to CI and the classifiers, and replaces codecs.open(), which is deprecated since 3.14.

This PR makes the following changes:

  • setup.py adds the 3.15 classifier, and the CI test and lint matrices add 3.15.
  • codecs.open() becomes open() with newline="", so line endings stay as they were.

Compatibility

No change to backups.

Testing

  • pytest passes on 3.11, 3.14 and 3.15, with no deprecation warnings.
  • Real runs on 3.15 work as expected.
  • Not tested on Windows.

Related to #551, which I couldn't reproduce: 0.68.0 already installs and runs on 3.15.

codecs.open() is deprecated since Python 3.14 and warns on every call.
Use the built-in open() with newline="" instead, which like codecs.open()
does not translate line endings, so the files written are unchanged on
every platform.
Python 3.15 was released on 2026-10-09 and already works. Add it to the
package classifiers and the CI test and lint matrices.
@josegonzalez
josegonzalez merged commit 481d3f7 into josegonzalez:master Nov 19, 2026
10 checks passed
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.

2 participants