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

Add python 3.12 support #537

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Add python 3.12 support #537

merged 1 commit into from
Jul 25, 2024

Conversation

rbailey-godaddy
Copy link
Contributor

@rbailey-godaddy rbailey-godaddy commented Jul 25, 2024

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

Backward Compatibility

Is this change backward compatible with the most recently released version? Does it introduce changes which might change the user experience in any way? Does it alter the API in any way?

  • Yes (backward compatible)
  • No (breaking changes)

Issue Linking

What's new?

  • Add support for python 3.12;
  • This necessitated some library updates, so update basically everything to the extent that python versions 3.8-3.12 remain supported;
  • Add python 3.12 to GitHub workflows;
  • Adjust shutil.rmtree() calls; in python 3.12, the onerror argument becomes changes type and becomes deprecated -- luckily, we don't use it, so it's easy to paper over;
  • Minor formatting changes to placate the latest version of black;
  • Add some test annotations to test_util.py because pylint now is smart enough to think some code is unreachable (although it is because of the testing context);
  • "Fix" one test in test_scan_local_repo.py that fails only with python 3.12 because click's CliRunner directory context appears to come up with a bizarrely wrong path name that propagates into error messages - relax the test to ignore the reported pathname.

This should be enough to silence all of the outstanding dependabot PRs.

* Add support for python 3.12;
* This necessitated some library updates, so update basically everything
  to the extent that python versions 3.8-3.12 remain supported;
* Add python 3.12 to GitHub workflows;
* Adjust `shutil.rmtree()` calls; in python 3.12, the `onerror` argument
  becomes changes type and becomes deprecated -- luckily, we don't use
  it, so it's easy to paper over;
* Minor formatting changes to placate the latest version of black;
* Add some test annotations to `test_util.py` because pylint now is
  smart enough to think some code is unreachable (although it is because
  of the testing context);
* "Fix" one test in `test_scan_local_repo.py` that fails only with
  python 3.12 because click's CliRunner directory context appears to
  come up with a bizarrely wrong path name that propagates into error
  messages - relax the test to ignore the reported pathname.

This should be enough to silence all of the outstanding dependabot PRs.
@sushantmimani sushantmimani merged commit c4743da into main Jul 25, 2024
24 checks passed
@sushantmimani sushantmimani deleted the bugfix/version-bumps branch July 25, 2024 17:03
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.

4 participants