Skip to content
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

Drop Python 3.9 support #357

Open
2 tasks done
maxrake opened this issue Nov 28, 2023 · 0 comments · May be fixed by #522
Open
2 tasks done

Drop Python 3.9 support #357

maxrake opened this issue Nov 28, 2023 · 0 comments · May be fixed by #522
Assignees
Labels
low priority This should be addressed as time permits task Task/chore unrelated to a bug or feature request

Comments

@maxrake
Copy link
Contributor

maxrake commented Nov 28, 2023

Description

This is a placeholder issue to reference in source control. It is meant to capture all the changes that are needed when Python 3.9 support is no longer required.

Additional Details

  • This issue could be completed to coincide with supporting Python 3.13, to stick with the "latest plus three previous releases" paradigm
  • Consider using pyupgrade to automatically upgrade to 3.10+ syntax
    • Update the target-version key for the [tool.ruff] config in pyproject.toml
    • Use pyupgrade or ruff check --fix directly to make the changes to the files
  • Update the python_version key value in the [tool.refurb] config in pyproject.toml
  • Ensure any packages that are only required for Python 3.9 are removed
  • Update idioms used for Python 3.9 support only
    • Look for TODO: comments with this issue referenced
    • Type annotations can use the pipe operator for unions (or X | None instead of Optional[X])
    • Parenthesized context managers
    • Structural pattern matching
    • Look for more in "What's New in Python 3.10"
  • Update the testing environments
    • in tox, GitHub workflows, etc.
    • Update the test_python_version test in tests/unit/test_package_metadata.py
  • This might also be a good time to switch from black to ruff for formatting, if that change is desired

Acceptance Criteria

  • Python 3.9 support is removed
  • Documentation is updated
@maxrake maxrake added low priority This should be addressed as time permits task Task/chore unrelated to a bug or feature request labels Nov 28, 2023
@maxrake maxrake mentioned this issue Oct 15, 2024
3 tasks
@maxrake maxrake self-assigned this Dec 27, 2024
@maxrake maxrake linked a pull request Jan 3, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority This should be addressed as time permits task Task/chore unrelated to a bug or feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant