Skip to content

Upgrade to Python 3.13 - #474

Merged
jordanpadams merged 1 commit into
mainfrom
python3.13
Aug 28, 2025
Merged

Upgrade to Python 3.13#474
jordanpadams merged 1 commit into
mainfrom
python3.13

Conversation

@nutjob4life

Copy link
Copy Markdown
Member

🗒️ Summary

Upgrades for Python 3.13; specifically:

  • Branch CICD and CodeQL workflows now use Python 3.13
  • Harmonized secrets detection between pre-commit and GitHub Actions workflow
  • Disabled "black" due to its conflict with reorder-python-imports
  • Updated README.md and the "Bulk Record Update" notebook to reflect the new Python version
  • Modernized Sphinx docs settings for new Sphinx version and updated "Installation" section
  • Removed license from Trove classifiers
  • Updated dependencies for Python 3.13
  • smptd was removed in Python 3.12, so substituted with aiosmtpd and adjusted message parsing to account for the change
  • Replaced numerous—and I mean numerouspkg_resources with importlib
  • Updated tox.ini for Python 3.13

⚙️ Test Data and/or Report

Commands:

$ pds-doi-cmd --help
…
Usage for each subcommand is available by providing the --help argument to the subcommand:
    pds-doi-cmd reserve --help
$ pds-doi-api
…
WARNING connexion.options:openapi_console_ui_available The swagger_ui directory could not be found.
…
INFO pds_doi_service.api.__main__:main Waitress logging configured at level DEBUG
INFO waitress:log_info Serving on http://0.0.0.0:8080
^C
$ pds-doi-init --help
…
Note: When DOI records are imported to the local transaction database, the DOI service creates an associated output
label for each record under the transaction_history directory. The format of this output label is driven by the
SERVICE.provider field of the INI. Please ensure the field is set appropriately before using this script, as a
mismatch could cause parsing errors when using the DOI service after this script.

Tox:

docs: OK ✔ in 2.16 seconds
lint: commands[0]> python -m pre_commit run --color=always --all
[WARNING] hook id `tests` uses deprecated stage names (push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check that executables have shebangs.....................................Passed
Check for merge conflicts................................................Passed
Debug Statements (Python)................................................Passed
Check Yaml...............................................................Passed
Reorder python imports...................................................Passed
flake8...................................................................Passed
Detect secrets...........................................................Passed
  py313: OK (11.91=setup[2.50]+cmd[9.40] seconds)
  docs: OK (2.16=setup[1.77]+cmd[0.39] seconds)
  lint: OK (2.84=setup[0.00]+cmd[2.83] seconds)
  congratulations :) (16.97 seconds)

♻️ Related Issues

@nutjob4life
nutjob4life requested a review from a team as a code owner August 28, 2025 19:04
@sonarqubecloud

Copy link
Copy Markdown

@jordanpadams
jordanpadams merged commit f28b0f7 into main Aug 28, 2025
3 checks passed
@jordanpadams
jordanpadams deleted the python3.13 branch August 28, 2025 19:44
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