On Tue, 03 Aug 2021 11:15:13 +0200
Michał Górny wrote:
> Hi, everyone.
>
> Just a quick note: I've pushed Python 3.10.0rc1 today. It has many last
> minute changes that can break packages that were ported to previous
> 3.10.0 betas before.
>
> For practical reasons, we're going to support only >=3.10.0_rc1 going
> forward. If your package fails with >=3.10.0_rc1, feel free to apply
> fixes without caring for backwards compatibility with betas. If you see
> failures with 3.10.0_beta4, please try upgrading to _rc1 first.
>
> Notably, the newest releases of dev-python/django and dev-python/sphinx
> that I've pushed today were updated for _rc1 and will have failures with
> _beta4.
Should we drop PYTHON_COMPAT=python3_10 for known to break package versions?
For example latest stable dev-python/sphinx-4.0.3 did not like today's ~arch
python:
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.10/sphinx-build", line 33, in
sys.exit(load_entry_point('Sphinx==4.0.3', 'console_scripts',
'sphinx-build')())
File "/usr/lib/python-exec/python3.10/sphinx-build", line 25, in
importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 25, in
from sphinx.application import Sphinx
File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 31, in
from sphinx.config import Config
File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 21, in
from sphinx.util import logging
File "/usr/lib/python3.10/site-packages/sphinx/util/__init__.py", line 41, in
from sphinx.util.typing import PathMatcher
File "/usr/lib/python3.10/site-packages/sphinx/util/typing.py", line 37, in
from types import Union as types_Union
ImportError: cannot import name 'Union' from 'types'
(/usr/lib/python3.10/types.py)
--
Sergei