Closed bluetech closed 1 year ago
Hi,
the pathlib.PurePath
class has many changes in Python 3.12, so I have to check deeply the new code to update _PurePath
in xmlschema.
Unfortunately I cannot avoid to use protected methods because the library needs to manage also relative file URIs.
Release v2.2.3 is available.
Reworked _PurePath
removing the use of PurePath
internals, now xmlschema should work also with Python 3.12.
Thank you! Can confirm that the problem is fixed.
Hi, I'm a pytest dev working on adding initial support for Python 3.12 alpha to pytest. pytest uses xmlschema in its testsuite. Importing xmlschema fails on 3.12:
Looks like pathlib removed the private
_from_parts
function.I tried running the xmlschema testsuite on py3.12, however that currently fails because xmlschema's testsuite depends on lxml which fails to compile on py3.12 (because of cython). So might need to wait for lxml/cython here.