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

feat!: add Python 3.13 support and drop Python 3.9 support #522

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

maxrake
Copy link
Contributor

@maxrake maxrake commented Jan 3, 2025

This change accounts for the release of Python 3.13, which happened
07 OCT 2024. Anyone tracking this repository and this change should
update their use of pyenv locally, to include py3.13.x.

Changes made to add Python 3.13 support include:

  • Update the Docker base image version
  • Update the CONTRIBUTING documentation
  • Update the testing environments in tox, workflows, and unit tests
  • Update pyproject.toml and generate an updated poetry.lock lockfile
    • The existing poetry-core specified minimum requirement still works

Changes made to remove Python 3.9 support include:

  • Update pyproject.toml and regenerate poetry.lock
    • Upgrade target version for QA tools
  • Use the --fix option of ruff to automatically update code
    • Use the pipe (|) operator for type annotations everywhere possible
  • Use collections.abc.Callable instead of typing.Callable
  • Make use of parenthesized context managers
  • Make use of match statement when parsing analysis results
  • Update tests
    • Remove Python 3.9 from tox config
    • Update the test workflow
    • Update the test for supported Python versions
  • Update documentation and remove references to Python 3.9

Closes: #488
Closes: #357

BREAKING CHANGE: Support for Python 3.9 was removed.

Checklist

  • Does this PR have an associated issue (i.e., closes #<issueNum> in description above)?
  • Have you ensured that you have met the expected acceptance criteria?
  • Have you created sufficient tests?
  • Have you updated all affected documentation?

This change accounts for the release of Python 3.13, which happened
07 OCT 2024. Anyone tracking this repository and this change should
update their use of pyenv locally, to include py3.13.x

A number of changes were made:

* Update the Docker base image version
* Update the CONTRIBUTING documentation
* Update the testing environments in `tox`, workflows, and unit tests
* Update `pyproject.toml` and generate an updated `poetry.lock` lockfile
  * The existing `poetry-core` specified minimum requirement still works

Closes: #488
Changes made include:

* Update `pyproject.toml` and regenerate `poetry.lock`
  * Upgrade target version for QA tools
* Use the `--fix` option of `ruff` to automatically update code
  * Use the pipe (`|`) operator for type annotations everywhere possible
* Use `collections.abc.Callable` instead of `typing.Callable`
* Make use of parenthesized context managers
* Make use of match statement when parsing analysis results
* Update tests
  * Remove Python 3.9 from `tox` config
  * Update the test workflow
  * Update the test for supported Python versions
* Update documentation and remove references to Python 3.9

BREAKING CHANGE: Support for Python 3.9 was removed.
@maxrake maxrake self-assigned this Jan 3, 2025
@maxrake maxrake requested a review from a team as a code owner January 3, 2025 02:14
@maxrake maxrake requested a review from mathew-horner January 3, 2025 02:14
Copy link

github-actions bot commented Jan 3, 2025

Phylum OSS Supply Chain Risk Analysis - SUCCESS

The Phylum risk analysis is complete and has passed the active policy.

View this project in the Phylum UI

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.

Add Python 3.13 support Drop Python 3.9 support
1 participant