Upgrade Python Project to Version 3.10 #12
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🐍 Migrate platform from Python 3.9 to Python 3.10
Description
This PR executes a comprehensive migration of the entire platform from Python 3.9 to Python 3.10.13, ensuring compatibility and taking advantage of improved performance and new language features.
Changes
python_requires
in allsetup.py
files from~=3.9
to>=3.10,<3.12
python:3.10.13-slim-buster
distutils.util.strtobool
with custom implementation to maintain Python 3.12+ compatibilityMotivation
distutils
dependenciesFiles Changed
📁 View affected components (50 files)
CI/CD & Infrastructure
.github/workflows/
- Updated Python version in all GitHub Actions workflowsrequirements/tools/
- Updated Python version in build toolsscripts/
- Updated Python version in maintenance and utility scriptsServices (All updated to Python 3.10.13)
services/agent/
services/api-server/
services/autoscaling/
services/catalog/
services/dask-sidecar/
services/datcore-adapter/
services/director/
(includes custom strtobool implementation)services/director-v2/
services/dynamic-sidecar/
services/invitations/
services/migration/
services/osparc-gateway-server/
services/storage/
services/web/
Packages
packages/dask-task-models-library/
packages/models-library/
packages/service-integration/
packages/service-library/
(includes custom strtobool implementation)Test Plan
Links
This migration maintains backward compatibility while positioning the platform for future Python version upgrades.
Link to run
Requested by: [email protected]