File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@v4
1414 - uses : actions/setup-python@v5
1515 with :
16- python-version : " 3.9 "
16+ python-version : " 3.12 "
1717 - name : Test
1818 run : |
1919 pip install -r requirements.txt
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ authors = [
1212]
1313description = " OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem"
1414readme = " README.md"
15- requires-python = " >=3.8 "
15+ requires-python = " >=3.9, <3.13 "
1616classifiers = [
1717 " Programming Language :: Python :: 3" ,
1818 " License :: OSI Approved :: MIT License" ,
Original file line number Diff line number Diff line change 88import flask
99from jsonschema import validate
1010from jsonschema .exceptions import ValidationError
11- import pkg_resources
11+ import importlib . metadata as metadata
1212
1313# Local application imports
1414
@@ -70,10 +70,7 @@ def versions(list_packages: list):
7070 list_with_versions = []
7171 for package in list_packages :
7272 list_with_versions .append (
73- {
74- "package" : package ,
75- "version" : pkg_resources .get_distribution (package ).version ,
76- }
73+ {"package" : package , "version" : metadata .distribution (package ).version }
7774 )
7875 return list_with_versions
7976
You can’t perform that action at this time.
0 commit comments