-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
RFC 78: gdal-utils package #3260
Conversation
osgeo_utils
Python package splitosgeo_utils
Python package split
Good point. 2 months is a good timeframe. I'll remove that. |
@rouault does the |
Shouldn't the pypi package be "gdal" (bindings only) and "gdal_utils" (that would have a dependency on gdal) ? We probably need to mention a backward compatiblity issue if the "gdal" pip project no longer ships the utils |
I'm wondering about the utils namespace should it be
So as you said, one option would be: Second option would be: A third, option would be: I think the third way is the most consistent with the namespace names and also backwards compatible and maybe more future proof. |
6f338b3
to
3f63bda
Compare
e110c0b
to
926cc26
Compare
osgeo_utils
Python package split
I've updated the RFC and released a test version of I mistakenly used version Open issues:
|
@idanmiara I'm still lacking enthusiasm for this RFC, but maybe others will be or have suggestions to make it evolve. If you still want to pursue it, the process would be first to advertize it to gdal-dev for discussion before putting it to vote. |
43d3883
to
9fdb4bb
Compare
9fdb4bb
to
ba1fddb
Compare
Done, thanks! |
9c8ced1
to
47213e6
Compare
I have no idea what causes all these failures on the MacOS build. Edit: it seems to have been a flake, as it was solved by itself after another unrelated commit. |
0795bd0
to
b3d08d3
Compare
b3d08d3
to
1dea792
Compare
Hi @rouault, |
if you want still to have it adopted, you'll need to make a motion for it on the mailing list. I'm still unconvinced though |
c422d27
to
bd3f337
Compare
@rouault I've revised the text of this RFC today to emphasize the main ideas and motivations. please read it again before you vote. Thanks! |
8236e7f
to
4ea1057
Compare
4ea1057
to
394aafd
Compare
Could you possibly rework a bit the history in a commit with the RFC text and another one with the implementation (for the implementation, potentially split up in bisect-able pieces if that makes sense) ? |
394aafd
to
4334204
Compare
done. Do you think that |
except that the commits where you change the osgeo/utils to osgeo_utils, and then the change in the imports should be done in one step, otherwise this breaks bisectability (by bysectability, I mean that ideally we should be able to checkout at a random master commit and have a fully working tree)
The downside with your alternate proposals is that it is no longer obvious that gdal-utils is python related. |
4334204
to
ba47d51
Compare
The logic behind the individual commits was that it's easier to track the changes I've made in each commit.
|
gdal.py - improved deprecation_warn gdal/swig/python/scripts/*.py - remove redundant explicit parameter 'utils'
…cripts.py + update gdal setup.py test_py_scripts.py - update osgeo_utils path gdal/swig/python/setup.py - update paths move gdal/swig/python/osgeo/utils -> gdal/swig/python/gdal-utils/osgeo_utils osgeo.utils -> osgeo_utils (search-replace)
ba47d51
to
39f2193
Compare
Thanks! Please note that I've released a gdal-utils version 3.3.0 in the past by mistake, so for the first official release could be 3.3.0.X or 3.3.1. I would like to keep a "beta channel" for |
can't the release by removed / the project removed & recreated ? |
Nope... |
What does this PR do?
This RFC suggests to rename osgeo.utils (which were introduced in GDAL 3.2) into osgeo_utils. Essentially moving the utils outside of the osgeo package (which includes the GDAL core bindings), into a new pure-Python package gdal-utils. gdal-utils new distribution wheel will be available in pypi for smooth upgrading via pip install --upgrade gdal-utils.
For maximum backwards compatibility, The gdal distribution wheel would still include both packages: osgeo and osgeo_utils.
This PR includes a suggested implementation.
@rouault @hobu @rcoup
Formatted version
https://github.com/talos-gis/gdal/blob/Branch_rfc78_py_modules/gdal/doc/source/development/rfc/rfc78_gdal_utils_package.rst
Tasklist