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

add uv documentation for python package #11629

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgoacolou
Copy link
Contributor

What does this PR do?

add specific documentation for using GDAL python package with uv

What are related issues/pull requests?

NA

Tasklist

  • Updated Python API documentation (swig/include/python/docs/)
  • Review
  • Adjust for comments
  • All CI builds and checks have passed

Environment

Provide environment details, if relevant:

  • OS: All
  • Compiler: All

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 70.084% (-2.5%) from 72.549%
when pulling 9418dc4 on mgoacolou:update_python_readme_for_uv
into 0df468c on OSGeo:master.

uv
~~~

Uv build local wheel for GDAL < 3.9 specific configuration must be added to the `pyproject.toml` to add Numpy to the build environnment prior to build gdal wheel.
Copy link
Member

Choose a reason for hiding this comment

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

I've never heard about "uv" before, so I'm not sure to understand that section. Is it in an addition to GDAL's pyproject.toml ? Would there be any harm to add it to the official version, even if users don't use uv ?

Copy link
Contributor Author

@mgoacolou mgoacolou Jan 10, 2025

Choose a reason for hiding this comment

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

Hi,

first of all Happy New Year to all!

I did not look at the GDAL's pyproject.toml. My PR try to give information on how to add gdal as dependencie to project/script managed with uv. I Personally lost some time to do so and I'm happy to share it here.

In my personal case I try to create a web service based on gdal and fastAPI, uv make a geat work to manage versions. However my debian 12 have limitation on GDAL's version (3.6.2) and do not have late development.

I'll take a look to the pyproject.toml if this treaks would help

regards

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.

3 participants