Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
]
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.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand Down
7 changes: 2 additions & 5 deletions src/opengeodeweb_back/utils_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down