Skip to content

Update which python versions are supported #160

Description

@ways

What maintenance does this project need?

  • Setup.py says 3.9-3.14
  • Some github actions build for 3.9-3.12 and some up to 3.13
  • Tox tests with these versions: py38, py37, py36, py35, pypy3

Tested tox for python 3.8:

> uv python install 3.8
> uv tool run --python 3.8 tox -e py38
...
py38: commands[0]> pytest -v --flakes --cache-clear --basetemp=/home/larsfp/src/eccodes-python/.tox/py38/tmp
/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pep8.py:110: FutureWarning: Possible nested set at position 1
EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
Traceback (most recent call last):
File "/home/larsfp/src/eccodes-python/.tox/py38/bin/pytest", line 8, in <module>
sys.exit(main())
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py", line 60, in main
config = _prepareconfig(args, plugins)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py", line 194, in _prepareconfig
return pluginmanager.hook.pytest_cmdline_parse(
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/hooks.py", line 289, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/manager.py", line 68, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/manager.py", line 59, in <lambda>
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/callers.py", line 203, in _multicall
gen.send(outcome)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse
config = outcome.get_result()
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py", line 654, in pytest_cmdline_parse
self.parse(args)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py", line 871, in parse
self._preparse(args, addopts=addopts)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py", line 816, in _preparse
self.pluginmanager.load_setuptools_entrypoints("pytest11")
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/manager.py", line 282, in load_setuptools_entrypoints
self.register(plugin, name=ep.name)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py", line 310, in register
ret = super(PytestPluginManager, self).register(plugin, name)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/manager.py", line 102, in register
hook._maybe_apply_history(hookimpl)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/hooks.py", line 336, in _maybe_apply_history
res = self._hookexec(self, [method], kwargs)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/manager.py", line 68, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/manager.py", line 59, in <lambda>
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
return outcome.get_result()
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/setuptools/_vendor/typeguard/_pytest_plugin.py", line 53, in pytest_addoption
add_ini_option("string")
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/setuptools/_vendor/typeguard/_pytest_plugin.py", line 22, in add_ini_option
parser.addini(
File "/home/larsfp/src/eccodes-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/argparsing.py", line 130, in addini
assert type in (None, "pathlist", "args", "linelist", "bool")
AssertionError
py38: exit 1 (0.21 seconds) /home/larsfp/src/eccodes-python> pytest -v --flakes --cache-clear --basetemp=/home/larsfp/src/eccodes-python/.tox/py38/tmp pid=2286013
py38: FAIL code 1 (1.83=setup[1.62]+cmd[0.21] seconds)
evaluation failed :( (1.88 seconds)

So which versions are actually supposed to be supported, and why are all the tox tests for very old pythons?

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions