diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 63486a8d..aa5606ed 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.12" - name: Test run: | pip install -r requirements.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 9304707d..be4d1527 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ # CHANGELOG +## v5.7.4-rc.2 (2025-05-21) + +### Bug Fixes + +- **Copyright**: Update year + ([`af8afcf`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/af8afcfafb9a7ed6f98add3263feead6ea8a25b1)) + + +## v5.7.4-rc.1 (2025-05-21) + +### Bug Fixes + +- **python 3.12**: Compatibility + ([`0b43168`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/0b43168d1ce5776c2767172df02e922898c908bb)) + + ## v5.7.3 (2025-05-20) diff --git a/README.md b/README.md index 9035ee3b..35dff036 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,4 @@ Detailed changes for each release are documented in the [release notes](https:// [MIT](https://opensource.org/licenses/MIT) -Copyright (c) 2019 - 2024, Geode-solutions +Copyright (c) 2019 - 2025, Geode-solutions diff --git a/pyproject.toml b/pyproject.toml index 609ad0a2..730193dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,14 +5,14 @@ build-backend = "setuptools.build_meta" [project] name = "OpenGeodeWeb-Back" -version = "5.7.3" +version = "5.7.4-rc.2" dynamic = ["dependencies"] authors = [ { name="Geode-solutions", email="team-web@geode-solutions.com" }, ] description = "OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9, <3.13" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", diff --git a/src/opengeodeweb_back/utils_functions.py b/src/opengeodeweb_back/utils_functions.py index 41cedcb8..183d40de 100644 --- a/src/opengeodeweb_back/utils_functions.py +++ b/src/opengeodeweb_back/utils_functions.py @@ -8,7 +8,7 @@ import flask from jsonschema import validate from jsonschema.exceptions import ValidationError -import pkg_resources +import importlib.metadata as metadata # Local application imports @@ -70,10 +70,7 @@ def versions(list_packages: list): list_with_versions = [] for package in list_packages: list_with_versions.append( - { - "package": package, - "version": pkg_resources.get_distribution(package).version, - } + {"package": package, "version": metadata.distribution(package).version} ) return list_with_versions