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

Support for geopandas>=1.0 #97

Closed
scottyhq opened this issue Jul 31, 2024 · 4 comments
Closed

Support for geopandas>=1.0 #97

scottyhq opened this issue Jul 31, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@scottyhq
Copy link

Is your feature request related to a problem? Please describe.

geopandas>=0.7,<1.0

Describe the solution you'd like

I know it is an age old debate, but depending on how geopandas is used in this library, it seems reasonable to either drop the upper version limit or change to geopandas>=1.0,<2 for long term stability.

Additional context

https://github.com/geopandas/geopandas/releases/tag/v1.0.0

Trying to make snowexsql with other packages on Cryocloud JupyterHub (CryoInTheCloud/hub-image#121)

@scottyhq scottyhq added the enhancement New feature or request label Jul 31, 2024
@micah-prime
Copy link
Contributor

Is your feature request related to a problem? Please describe.

geopandas>=0.7,<1.0

Describe the solution you'd like

I know it is an age old debate, but depending on how geopandas is used in this library, it seems reasonable to either drop the upper version limit or change to geopandas>=1.0,<2 for long term stability.

Additional context

https://github.com/geopandas/geopandas/releases/tag/v1.0.0

Trying to make snowexsql with other packages on Cryocloud JupyterHub (CryoInTheCloud/hub-image#121)

Hey Scott! My general approach for downstream compatibility is to pin below major versions (<1.0 in this case). Moving to <2.0 this early seems risky since geopandas 1.0 has only been out for a month and has a number of breaking changes. I like to give a package a good amount of time to work out bugs so that there are not unintended consequences to the shift.

What packages are requiring geopandas>=1.0 in this case?

@scottyhq
Copy link
Author

What packages are requiring geopandas>=1.0 in this case?

I should've clarified, nothing is requiring geopandas>=1 in this case, it's just that I want to use it :) As a user, I see v1 and think "that's what I should be using because it's stable"... but then again, Python counting starts at zero :). The latest release also tends to be the default documented version that users interact with (e.g. https://geopandas.org/en/stable) so it's easy to get confused if there are syntax changes.

I definitely understand the arguments though around risk for things breaking. One strategy that I find useful is running a CI workflow against unpinned dependencies, that way you're aware of changes that might be necessary to support major releases of dependencies. I'd be happy to submit a PR for that if you think it'd be useful as a way to try this out?

@micah-prime
Copy link
Contributor

What packages are requiring geopandas>=1.0 in this case?

I should've clarified, nothing is requiring geopandas>=1 in this case, it's just that I want to use it :) As a user, I see v1 and think "that's what I should be using because it's stable"... but then again, Python counting starts at zero :). The latest release also tends to be the default documented version that users interact with (e.g. https://geopandas.org/en/stable) so it's easy to get confused if there are syntax changes.

I definitely understand the arguments though around risk for things breaking. One strategy that I find useful is running a CI workflow against unpinned dependencies, that way you're aware of changes that might be necessary to support major releases of dependencies. I'd be happy to submit a PR for that if you think it'd be useful as a way to try this out?

Yeah it's hard to know with semantic versioning these days 😆

We'll give it some testing to see if anything surprising occurs. This close to the hackweek we'll proceed with a lot of caution. One concern is that the scientific community is not always on the up-and-up with python versions, and this would required dropping support for Python 3.8 in snowexsql.

We'll let you know how the testing goes!

micah-prime added a commit that referenced this issue Aug 13, 2024
* Bump version: 0.3.0 → 0.3.1

* Added in retieval of single value results

* add all_units

* Added in support for geopandas > 1.0.0 fixes issue #97

* Found typo in column.in_ type filtering, fixed

* Added in value less than or greater than

* Cleaning up some things, Added in clipping to the raster from area

* A bit of clean up

* Retrieve single value for all units

* Removed reference to session.close in rasters

* Added in changelog

* Removed comments per pr. Removed Failing syntax for build errors

---------

Co-authored-by: Micah Sandusky <[email protected]>
Co-authored-by: Micah Sandusky <[email protected]>
@micah-prime
Copy link
Contributor

This is addressed in version 0.5.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants