Closed matthewfeickert closed 3 months ago
PRs like https://github.com/recast-hep/recast-atlas/pull/139 also need to get fixed in all of the yadage
ecosystem too before a Python 3.12 compliant recast-atlas
can be made.
=============================== warnings summary ===============================
../../../../../opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/yadageschemas/__init__.py:2
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/yadageschemas/__init__.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
../../../../../opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/pkg_resources/__init__.py:2825
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/pkg_resources/__init__.py:2825: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/reana_client/api/client.py:10
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/reana_client/api/client.py:10: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
import cgi
../../../../../opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/yadage/handlers/expression_handlers.py:60
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/yadage/handlers/expression_handlers.py:60: DeprecationWarning: invalid escape sequence '\ '
"found multiple matches to query: %s within result: %s\n \ matches %s",
tests/test_cli.py::test_run_hello_world
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/glob2/fnmatch.py:141: DeprecationWarning: invalid escape sequence '\Z'
return '(?ms)' + res + '\Z'
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Resolved by PR #141
Reported the cgi
DeprecationWarning
in https://github.com/reanahub/reana-client/issues/717.
pkg_resources
is deprecated and removed in Python 3.12:setuptools
docs: Package Discovery and Resource Access using pkg_resourcesCurrently (ebc66fd54778e13409a0966004e6d4266f79f8d0) used in src/recastatlas/config.py, src/recastatlas/subcommands/catalogue.py, and src/recastatlas/subcommands/auth.py, and so needs to be removed.
At the moment
recast-atlas
is only testing and supporting up to Python 3.11:https://github.com/recast-hep/recast-atlas/blob/ebc66fd54778e13409a0966004e6d4266f79f8d0/.github/workflows/ci.yml#L22
https://github.com/recast-hep/recast-atlas/blob/ebc66fd54778e13409a0966004e6d4266f79f8d0/setup.cfg#L16-L22