Upgrade Python Project to Version 3.10 #18
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 Python version from 3.9 to 3.10 across the entire codebase
Description
This PR migrates the project from Python 3.9 to Python 3.10 across all services, packages, and infrastructure components. The changes ensure consistent Python version usage throughout the codebase while maintaining compatibility and enabling access to Python 3.10 features.
Key Changes
setup.py
files to reflect Python 3.10 compatibilitypython_requires
from~=3.9
to>=3.9,<3.11
Programming Language :: Python :: 3.10
Motivation
Impact
>=3.9,<3.11
requirementFiles Modified
Complete list of modified files (46 total)
GitHub Actions Workflows
.github/workflows/ci-release.yml
.github/workflows/ci-staging.yml
.github/workflows/ci-testing-deploy.yml
Packages
packages/dask-task-models-library/setup.py
packages/models-library/setup.py
packages/postgres-database/setup.py
packages/service-integration/setup.py
packages/service-library/setup.py
packages/settings-library/setup.py
Services
services/agent/Dockerfile
&setup.py
services/api-server/Dockerfile
&setup.py
services/autoscaling/Dockerfile
&setup.py
services/catalog/Dockerfile
&setup.py
services/dask-sidecar/Dockerfile
&setup.py
services/datcore-adapter/Dockerfile
&setup.py
services/director-v2/Dockerfile
&setup.py
services/dynamic-sidecar/Dockerfile
&setup.py
services/invitations/Dockerfile
&setup.py
services/osparc-gateway-server/Dockerfile
&setup.py
services/storage/Dockerfile
&setup.py
services/web/Dockerfile
&setup.py
Scripts & Tools
requirements/tools/Dockerfile
scripts/docker/docker-compose-config.bash
scripts/erd/Dockerfile
scripts/filestash/create_config.py
scripts/maintenance/migrate_project/Dockerfile
scripts/mypy/Dockerfile
scripts/pydeps-docker/Dockerfile
Additional Files
packages/postgres-database/scripts/erd/Dockerfile
packages/service-library/src/servicelib/long_running_tasks/_task.py
services/director/src/simcore_service_director/config.py
services/director/src/simcore_service_director/producer.py
services/migration/Dockerfile
Testing
All existing tests should continue to pass with Python 3.10. The migration maintains backward compatibility while enabling forward-looking development practices.
Related Links
Link to run
Requested by: [email protected]