python-ase fails to build with Python 3.13.0a2. ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_add_columns ______________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture(scope='module') def database(tmp_path_factory): > with tmp_path_factory.mktemp('dbtest') as dbtest: E TypeError: 'PosixPath' object does not support the context manager protocol /builddir/build/BUILD/ase-3.22.1/ase/test/db/test_db_web.py:10: TypeError ________________________ ERROR at setup of test_favicon ________________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture(scope='module') def database(tmp_path_factory): > with tmp_path_factory.mktemp('dbtest') as dbtest: E TypeError: 'PosixPath' object does not support the context manager protocol /builddir/build/BUILD/ase-3.22.1/ase/test/db/test_db_web.py:10: TypeError ________________________ ERROR at setup of test_db_web _________________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture(scope='module') def database(tmp_path_factory): > with tmp_path_factory.mktemp('dbtest') as dbtest: E TypeError: 'PosixPath' object does not support the context manager protocol /builddir/build/BUILD/ase-3.22.1/ase/test/db/test_db_web.py:10: TypeError ________________________ ERROR at setup of test_paging _________________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture(scope='module') def database(tmp_path_factory): > with tmp_path_factory.mktemp('dbtest') as dbtest: E TypeError: 'PosixPath' object does not support the context manager protocol =========================== short test summary info ============================ ERROR db/test_db_web.py::test_add_columns - TypeError: 'PosixPath' object doe... ERROR db/test_db_web.py::test_favicon - TypeError: 'PosixPath' object does no... ERROR db/test_db_web.py::test_db_web - TypeError: 'PosixPath' object does not... ERROR db/test_db_web.py::test_paging - TypeError: 'PosixPath' object does not... = 1695 passed, 379 skipped, 2 xfailed, 742 warnings, 4 errors in 169.50s (0:02:49) = https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692162-python-ase/ For all our attempts to build python-ase with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-ase/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
A see a possible fix was implemented upstream in https://gitlab.com/ase/ase/-/commit/f9f0b430d27236725f4e527f35cba6683301ef25, but there was no release since then. Hopefully fixed temporarily by removing the failing test in https://koji.fedoraproject.org/koji/taskinfo?taskID=109813188