stac-utils / pystac

Python library for working with any SpatioTemporal Asset Catalog (STAC)

Home Page:https://pystac.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't use `RefResolver`

gadomski opened this issue · comments

As of jsonschema v4.18, RefResolver is deprecated:

DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.

This issue is to track the need to update to The New Way.

FYI I'm getting some errors in titiler CI with the latest jsonschema developmentseed/titiler#664 (comment)

Thanks for the report Vincent! I wonder if we should ceil jsonschema below v4.18 for the time being? What's your sense of how broken things are over there?

Yep that's what I did in #1189 😅

What's your sense of how broken things are over there?

I have no idea, it's weird that they broke something in a patch release. I'm pretty sure this was unintentional but knowing it's deprecated I feel it's safer to set an upper bound to the requirement so one they do remove it pystac should continue working

#1189 is released in v1.8.2.

I'm going to look into this a bit today to see if the timing is right to pick it up

Hi @jsignell, thank you for addressing this issue. It's blocking the resolution of #1214, which is affecting Jupyter Lab in downstream applications. We truly appreciate your efforts!