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

Python 3.12 support #780

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Python 3.12 support #780

merged 4 commits into from
Apr 25, 2024

Conversation

juhoinkinen
Copy link
Member

@juhoinkinen juhoinkinen commented Mar 21, 2024

Annif on Python 3.12 already works when the optional dependencies stwfsapy and tensorflow-cpu are not installed or even declared as dependecies.

Closes #779.
At the moment does not fully close #779 because stwfsapy and NN ensemble will not work on Python 3.12.

Copy link

sonarcloud bot commented Mar 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.65%. Comparing base (44b4734) to head (3d79b67).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #780   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files          89       89           
  Lines        6405     6405           
=======================================
  Hits         6383     6383           
  Misses         22       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@juhoinkinen juhoinkinen changed the base branch from main to release-1.0.2 March 25, 2024 14:36
@juhoinkinen juhoinkinen changed the base branch from release-1.0.2 to main March 25, 2024 14:36
@juhoinkinen
Copy link
Member Author

While Poetry cannot install TensorFlow 2.16 because of its wrong package metadata, pip can, see branch python3.12-support-tf-via-pip. TF 2.16 also upgrades to Keras 3, which required a few changes.

So it could be an option to install TF with pip instead of Poetry; this would allow upgrading to TF 2.16 and thus use of NN ensemble on Python 3.12.

@juhoinkinen juhoinkinen added this to the 1.1 milestone Apr 19, 2024
@juhoinkinen juhoinkinen marked this pull request as ready for review April 19, 2024 11:24
@juhoinkinen juhoinkinen merged commit 88b9f8e into main Apr 25, 2024
17 checks passed
@juhoinkinen juhoinkinen deleted the python3.12-support branch April 25, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python 3.12 support
1 participant