On 2/14/22 14:50, Agathe Porte wrote:
Source: python-jsonschema
Version: 3.2.0-5
Severity: wishlist
X-Debbugs-Cc: deb...@microjoe.org
Dear Maintainer,
I am currently packaging dtschema (see ITP #1005301 [0]). This package
seems to use a validator introduced in 2019 but not available in the
current 3.2 release.
Here is the test failing during package build:
======================================================================
ERROR: dtschema (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: dtschema
Traceback (most recent call last):
File "/usr/lib/python3.9/unittest/loader.py", line 470, in _find_test_path
package = self._get_module_from_name(name)
File "/usr/lib/python3.9/unittest/loader.py", line 377, in
_get_module_from_name
__import__(name)
File
"/home/microjoe/dev/debian/result/dt-schema/.pybuild/cpython3_3.9_dt-schema/build/dtschema/__init__.py",
line 1, in <module>
from dtschema.lib import (
File
"/home/microjoe/dev/debian/result/dt-schema/.pybuild/cpython3_3.9_dt-schema/build/dtschema/lib.py",
line 766, in <module>
DTVal = jsonschema.validators.extend(jsonschema.Draft201909Validator,
{'typeSize': typeSize, 'phandle': phandle})
AttributeError: module 'jsonschema' has no attribute 'Draft201909Validator'
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
It seems to be that providing the latest 4.4.0 release should solve this
issue, and allow me to finish the packaging of the dtschema package. The
`Draft201909Validator` was introduced a commit 6 months ago in upstream
[1].
Bests regards,
Agathe.
Hi,
python-jsonschema is packaged as part of the OpenStack components. Until
OpenStack upgrades to that version, I wont be upgrading the package.
Thanks for your understanding.
Cheers,
Thomas Goirand (zigo)