Skip to content

Declare Python 3.10 support deprecated.#5183

Merged
peterjc merged 1 commit intobiopython:masterfrom
peterjc:dep_py310
Mar 31, 2026
Merged

Declare Python 3.10 support deprecated.#5183
peterjc merged 1 commit intobiopython:masterfrom
peterjc:dep_py310

Conversation

@peterjc
Copy link
Copy Markdown
Member

@peterjc peterjc commented Mar 30, 2026

No obvious way to add a warning with pyproject.toml like we used to do with setup.py? CC @xelandernt

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run pre-commit
    locally, and understand that continuous integration checks will be used to
    confirm the Biopython unit tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

No obvious way to add a warning with pyproject.toml like
we used to do with setup.py?
@peterjc peterjc requested a review from mdehoon March 30, 2026 17:59
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.38%. Comparing base (e0d5ef8) to head (4e4f5c6).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5183      +/-   ##
==========================================
+ Coverage   85.51%   86.38%   +0.87%     
==========================================
  Files         282      282              
  Lines       59489    59489              
==========================================
+ Hits        50871    51389     +518     
+ Misses       8618     8100     -518     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xelandernt
Copy link
Copy Markdown
Contributor

@peterjc I don't think there is a way to raise a DeprecationWarning on install with pyproject.toml.

You could but it into __init__.py but that will raise the warning every time the package is imported.

However, I would argue since python 3.10 reaches EOL this year, users should expect deprecation. Furthermore, if users continue to use python 3.10 and have no upper bound on their biopython version, they will simply get the latest version that did support python 3.10. Their application can never break until they upgrade their python version, and when they do that they should test everything anyway.

@peterjc
Copy link
Copy Markdown
Member Author

peterjc commented Mar 30, 2026

Thanks, I agree while it would be a nice to have a warning for our users, it is hardly going to be a surprise given this is driven by the Python 3.10 EOL.

@peterjc peterjc merged commit d59ab34 into biopython:master Mar 31, 2026
34 checks passed
@peterjc peterjc deleted the dep_py310 branch March 31, 2026 20:42
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.

3 participants