Open jsjiang opened 6 days ago
Procedure:
update pyproject.toml
3.8
to 3.11
update_pyproject.sh
script to upgrade packages to the latest version and update and resolve dependencies. This script runs the poetry update
command as the last step to catch up dependency updates that might have missed by the poetry add ${package}@latest
command.Verify poetry update
poetry check
All set!
Pacakge updates:
(ezid-py311) CDL-jjiang-9m:ezid jjiang$ git diff pyproject.toml
diff --git a/pyproject.toml b/pyproject.toml
index 9a2c07dc..38900397 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -37,19 +37,18 @@ packages = [
[tool.poetry.dependencies]
-python = "^3.8"
-#python = "^3.11"
+python = "^3.11"
django = "^4.2.15"
aiomysql = "^0.2.0"
mysqlclient = "^2.2.4"
-boto3 = "^1.34.158"
+boto3 = "^1.35.29"
mysql = "^0.0.3"
myloginpath = "^0.0.4"
jinja2 = "^3.1.4"
pygments = "^2.18.0"
fasteners = "^0.19"
feedparser = "^6.0.11"
-filelock = "^3.15.4"
+filelock = "^3.16.1"
freezegun = "^1.5.1"
hjson = "^3.1.0"
lxml = "^5.3.0"
@@ -59,10 +58,10 @@ toml = "^0.10.2"
simplegist = "^1.0.1"
xmltodict = "^0.13.0"
pymysql = "^1.1.1"
-configparser = "^7.0.0"
+configparser = "^7.1.0"
ecs-logging = "^2.2.0"
celery = "^5.4.0"
-sqlalchemy = "^2.0.32"
+sqlalchemy = "^2.0.35"
django-matomo-api-tracking = {git = "https://github.com/CDLUC3/django-matomo-api-tracking", rev = "0.1.4"}
opensearch-dsl = "^2.1.0"
Tests:
./prepare_test_db.sh
pytest --ds=settings.tests tests/
* UI tests against local test server: passed
* github action tests: passed
* deployed `test-package-update` tag on ezid-dev
* `verify_ezid_after_patching.py -e dev`: passed (including download file from S3)
* UI tests: passed
v3.2.24
with Python package and dependency updates + fixes to two UI problems (https://github.com/CDLUC3/ezid/pull/739) on ezid-stg
Upgrade Python packages after Python 311 upgrade