-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop jsonschema #1614
Drop jsonschema #1614
Conversation
asdf/exceptions.py
Outdated
@@ -10,6 +10,9 @@ | |||
] | |||
|
|||
|
|||
ValidationError.__module__ = "asdf.exceptions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that Python tools use this attribute to find the source code for the class, and setting it in this way may cause trouble. What do we gain by pretending that the module is asdf.exceptions
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Overwriting the module does break inspect.getsource
(which appears to rely on getmodule
).
I added this to fix the doctest to make it not contain a check for asdf._jsonschema.exceptions.ValidationError
and instead check for asdf.exceptions.ValidationError
and as an attempt to keep '_jsonschema' hidden. I don't think it's worth the breaking of inspect.getsource
so I undid the change and updated the doctest.
CHANGES.rst
Outdated
@@ -18,6 +18,7 @@ The ASDF Standard is at v1.6.0 | |||
- Convert numpy scalars to python types during yaml encoding | |||
to handle NEP51 changes for numpy 2.0 [#1605] | |||
- Vendorize jsonschema 4.17.3 [#1591] | |||
- Drorp jsonschema as a dependency [#1614] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speling is Hawrd :) Thanks! Fixed in: 616db20
97bcc6d
to
616db20
Compare
4de2929
to
f0f95b7
Compare
Remaining jwst failures are unrelated see: spacetelescope/jwst#7874 |
would this also fix this issue in the
EDIT: After talking with @braingram we're going to try running the |
Thanks for following up about this. |
33e3d52
to
f0f95b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f0f95b7
to
dca4f21
Compare
PRs open for downstream users: