Skip to content

Migrate to jsonschema 4.18 #264

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

Merged
merged 8 commits into from
Sep 20, 2023
Merged

Migrate to jsonschema 4.18 #264

merged 8 commits into from
Sep 20, 2023

Conversation

cwacek
Copy link
Owner

@cwacek cwacek commented Sep 18, 2023

This adds support for jsonschema >4.18, but breaks support below that because of the breaking changes in that library.

+ Deprecates "memory:" URIs in favor of the registry behavior.
+ Fixes a bunch of tests that referenced completely invalid
  specifications.
+ jsonschema 4.18 doesn't support Python below 3.8, so we can't either
@cwacek
Copy link
Owner Author

cwacek commented Sep 19, 2023

This will also drop support for Python 3.7 because jsonschema>=4.18 doesn't support it 🤷.

I'm thinking that I'll tag versions starting with this as 0.5.0 to reflect the breaking support and deps changes.

@cwacek cwacek linked an issue Sep 19, 2023 that may be closed by this pull request
+ Also fix the tests so that they actually test using a different validator (using the `any` keyword which was removed in DRAFT-04).

Signed-off-by: Chris Wacek <[email protected]>
+ Also fix the tests so that they actually test using a different validator (using the `any` keyword which was removed in DRAFT-04).

Signed-off-by: Chris Wacek <[email protected]>
"six>=1.5.2",
],
cmdclass=versioneer.get_cmdclass(),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to updating the classifiers, I suggest also passing python_requires=">=3.8" to setup, though I think everything will work out okay even if this is not done.

This project has not been using the python_requires argument before. But classifiers are advisory in nature, and I believe pip will never treat them as constraints that need to be solved when resolving specific dependency versions.

However, everything should be okay even without it, because while classifiers aren't constraints, dependency version ranges in install_requires are. Because jsonschema 4.18 itself constrains the Python version to be >=3.8, I think pip on Python 3.7 will correctly manage to select an appropriate lower version of both python-jsonschema-objects and jsonschema.

@cwacek cwacek merged commit d652f4f into master Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not support jsonschema 4.18
2 participants