Upgrade Python Project to Version 3.10 #22
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
Description
This PR migrates the entire project from Python 3.9 to Python 3.10, updating all CI workflows, package configurations, and code compatibility issues.
Changes Made
python_requires
in all setup.py files from~=3.9
to>=3.9,<3.12
for broader compatibilitydistutils.util.strtobool
with custom implementationtraceback.format_exception
calls to use newerexc
parameterasyncio.ensure_future
calls to remove deprecatedloop
parameterpackaging.version.Version
usage replacingdistutils.version.StrictVersion
loop
parameter from asyncpg pool creationMotivation
Impact
References
Files Modified
View all modified files (30 files)
.github/workflows/ci-release.yml
.github/workflows/ci-staging.yml
.github/workflows/ci-testing-deploy.yml
mypy.ini
packages/dask-task-models-library/setup.py
packages/models-library/setup.py
packages/pytest-simcore/setup.py
packages/service-integration/setup.py
packages/service-library/setup.py
packages/service-library/src/servicelib/long_running_tasks/_task.py
packages/service-library/tests/aiohttp/test_incidents_monitoring.py
packages/simcore-sdk/setup.py
scripts/filestash/create_config.py
scripts/maintenance/migrate_project/Dockerfile
services/agent/setup.py
services/api-server/setup.py
services/autoscaling/setup.py
services/catalog/setup.py
services/dask-sidecar/setup.py
services/datcore-adapter/setup.py
services/director-v2/setup.py
services/director/src/simcore_service_director/config.py
services/director/src/simcore_service_director/producer.py
services/dynamic-sidecar/setup.py
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/outputs/_manager.py
services/invitations/setup.py
services/osparc-gateway-server/setup.py
services/storage/setup.py
services/web/server/setup.py
services/web/server/src/simcore_service_webserver/login/plugin.py
services/web/server/tests/unit/with_dbs/02/test_projects_handlers__open_close.py
Link to run
Requested by: [email protected]