Skip to content
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

Remove requests library, fix pyogrio calls, synchronize deps #394

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

Zeitsperre
Copy link
Member

FYI @tlvu

Changes

  • Removed the pin on pyogrio (set by geopandas now).
  • Set base required geopandas to v1.0.
  • Updated remote requests code to rely on urllib{3} instead of requests.
  • Updated calls to remote GeoJSON file-like objects.

@Zeitsperre Zeitsperre added the dependencies Pull requests that update a dependency file label Sep 18, 2024
@Zeitsperre Zeitsperre requested a review from huard September 18, 2024 20:15
@Zeitsperre Zeitsperre self-assigned this Sep 18, 2024
@Zeitsperre Zeitsperre merged commit 880275f into cruft-update Sep 19, 2024
14 checks passed
@Zeitsperre Zeitsperre deleted the fix-pyogrio branch September 19, 2024 15:23
GEOSERVER_URL = os.getenv(
"RAVENPY_GEOSERVER_URL",
os.getenv("GEO_URL", "https://pavics.ouranos.ca/geoserver/"),
os.getenv("GEO_URL", f"{HOST_URL}/geoserver/"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the default value of HOST_URL? It must be the production https://pavics.ouranos.ca/ and not the current host that can be any test servers which lack data ! Only the production server will be guarantied to have data populated.

Test servers that actually have the data can override GEO_URL or RAVENPY_HOST_URL to set it to its local Geoserver, otherwise the default must be the production Geoserver at https://pavics.ouranos.ca/geoserver/.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Furthermore, I think RavenPy could be used as a library installed on any end user machine so the default Geoserver must be the production one, not the local one on the end user's machine (I assume HOST_URL default is the localhost, if not sorry for the false assumption).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants