GrahamDumpleton / wrapt

A Python module for decorators, wrappers and monkey patching.
BSD 2-Clause "Simplified" License
2.04k stars 230 forks source link

GitHub Actions: 3.10-dev --> 3.11-dev #194

Closed cclauss closed 2 years ago

cclauss commented 2 years ago

"3.10" # Without quotes YAML treats this as 3.1 as discussed in https://dev.to/hugovk/the-python-3-1-problem-85g

GrahamDumpleton commented 2 years ago

Python 3.11 breaks on tests so not practical to add it to testing at this point. Python 3.11 is possibly too unstable at this point.

Traceback (most recent call last):
8
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/py/_vendored_packages/apipkg/__init__.py", line 145, in __makeattr
9
    modpath, attrname = self.__map__[name]
10
                        ~~~~~~~~~~~~^^^^^^
11
KeyError: '__spec__'
12

13
During handling of the above exception, another exception occurred:
14

15
Traceback (most recent call last):
16
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/runpy.py", line 187, in _run_module_as_main
17
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
18
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/runpy.py", line 146, in _get_module_details
20
    return _get_module_details(pkg_main_name, error)
21
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/runpy.py", line 110, in _get_module_details
23
    __import__(pkg_name)
24
    ^^^^^^^^^^^^^^^^^^^^
25
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/tox/__init__.py", line 32, in <module>
26
    from .session import cmdline  # isort:skip
27
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/tox/session/__init__.py", line 20, in <module>
29
    from tox import reporter
30
    ^^^^^^^^^^^^^^^^^^^^^^^^
31
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/tox/reporter.py", line 127, in <module>
32
    _INSTANCE = Reporter()
33
                ^^^^^^^^^^
34
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/tox/reporter.py", line 32, in __init__
35
    self._reset(**kwargs)
36
    ^^^^^^^^^^^^^^^^^^^^^
37
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/tox/reporter.py", line 38, in _reset
38
    self.tw = py.io.TerminalWriter()
39
              ^^^^^^^^^^^^^^^^^^^^^^
40
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/py/_vendored_packages/apipkg/__init__.py", line 152, in __makeattr
41
    result = importobj(modpath, attrname)
42
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/py/_vendored_packages/apipkg/__init__.py", line 72, in importobj
44
    module = __import__(modpath, None, None, ['__doc__'])
45
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
  File "<frozen importlib._bootstrap>", line 1044, in _find_and_load
47
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
48
  File "/opt/hostedtoolcache/Python/3.11.0-alpha.1/x64/lib/python3.11/site-packages/py/_vendored_packages/apipkg/__init__.py", line 150, in __makeattr
49
    raise AttributeError(name)
50
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
51
AttributeError: __spec__