astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
21.1k stars 621 forks source link

Can install pypi package pmtiles #7728

Closed giswqs closed 3 hours ago

giswqs commented 4 hours ago

Get the following error. However, the pmtiles source distribution does have setup.py. Any advice?

Error: https://github.com/opengeos/leafmap/actions/runs/11061972073/job/30735570607

Resolved 237 packages in 1.10s error: Failed to prepare distributions Caused by: Failed to fetch wheel: pmtiles==3.4.0 Caused by: /home/runner/work/_temp/setup-uv-cache/built-wheels-v3/pypi/pmtiles/3.4.0/KFhLlWVwzsoZmsd89qTP3/pmtiles-3.4.0.tar.gz does not appear to be a Python project, as neither pyproject.toml nor setup.py are present in the directory

Workflow: https://github.com/opengeos/leafmap/blob/master/.github/workflows/docs-build.yml#L40

pmtiles: https://pypi.org/project/pmtiles/3.4.0/#files

Install pmtiles on a local computer:

image

zanieb commented 4 hours ago

This looks like a cache bug (https://github.com/astral-sh/uv/issues/7485) can you upgrade to a newer version of uv?

giswqs commented 3 hours ago

@zanieb Many thanks for your prompt response! Update uv to v0.4.16 solves the issue.