Skip to content

kraken2 builder: Fix Python compatibility#7880

Closed
jakobnissen wants to merge 1 commit intogalaxyproject:mainfrom
jakobnissen:db_python39
Closed

kraken2 builder: Fix Python compatibility#7880
jakobnissen wants to merge 1 commit intogalaxyproject:mainfrom
jakobnissen:db_python39

Conversation

@jakobnissen
Copy link
Copy Markdown

@jakobnissen jakobnissen commented Apr 13, 2026

This fixes the data manager so it runs on Python 3.10 and below.

Commit 797b5fc changed data_managers/data_manager_build_kraken2_database/ data_manager/kraken2_build_database.xml#59 from the deprecated datetime.utcnow() to datetime.now(datetime.UTC). However, datetime.UTC was introduced in Python 3.11, making this tool break on systems with earlier Python versions.

This fix should behave identically and support back to Python 3.2, long before Galaxy's minimum Python version of 3.9

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

This is a compatibility fix for an existing tool.

Commit 797b5fc changed data_managers/data_manager_build_kraken2_database/
data_manager/kraken2_build_database.xml#59 from the deprecated
datetime.utcnow() to datetime.now(datetime.UTC). However, datetime.UTC was
introduced in Python 3.11, making this tool break on systems with earlier
Python versions.

This fix should behave identically and support back to Python 3.2, long before
Galaxy's minimum Python version of 3.9
@jakobnissen
Copy link
Copy Markdown
Author

Superseded by #7883

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.

1 participant