Closed tonybaloney closed 1 year ago
The Python images for pipelines are out of date and the documentation links are broken :-/
Have you considering switching CI to Github Actions yet?
/azp list
/azp run
/azp where
Azure DevOps pipeline doesn't have Python 3.11 available right now:
which is tracked by
So we have to wait until Azure DevOps pipeline has Python 3.11 available.
/azp run
CI fails:
Traceback (most recent call last):
File "/mnt/vss/_work/1/s/.tox/py311/bin/pylint", line 8, in <module>
sys.exit(run_pylint())
^^^^^^^^^^^^
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/pylint/__init__.py", line 21, in run_pylint
from pylint.lint import Run as PylintRun
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/pylint/lint/__init__.py", line 76, in <module>
from pylint.lint.parallel import check_parallel
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/pylint/lint/parallel.py", line 8, in <module>
from pylint import reporters
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/pylint/reporters/__init__.py", line 26, in <module>
from pylint import utils
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/pylint/utils/__init__.py", line 46, in <module>
from pylint.utils.ast_walker import ASTWalker
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/pylint/utils/ast_walker.py", line 7, in <module>
from astroid import nodes
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/astroid/__init__.py", line 51, in <module>
from astroid.nodes import node_classes, scoped_nodes
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/astroid/nodes/__init__.py", line 27, in <module>
from astroid.nodes.node_classes import ( # pylint: disable=redefined-builtin (Ellipsis)
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/astroid/nodes/node_classes.py", line 47, in <module>
from astroid import decorators, mixins, util
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/astroid/decorators.py", line 27, in <module>
import wrapt
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/wrapt/__init__.py", line 10, in <module>
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "/mnt/vss/_work/1/s/.tox/py311/lib/python3.11/site-packages/wrapt/decorators.py", line 34, in <module>
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/inspect.py)
ERROR: InvocationError for command /mnt/vss/_work/1/s/.tox/py311/bin/pylint knack --rcfile=.pylintrc -r n -d I0013 (exited with code 1)
This could be related to https://github.com/Azure/azure-cli/pull/24111
Only adding Python 3.11 tests is far from enough. Libraries declared in requirements.txt
also need to be upgraded in order to support Python 3.11.
We will continue the work in https://github.com/microsoft/knack/pull/275.
This PR adds Python 3.11 to the test matrix.
3.11 hits release candidate in a few weeks