You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which points to a pre-built wheel hosted on a GitHub Pages website, which is not on PyPI for reasons of CI time.
Running pyodide skeleton pypi --update-patched (or the update equivalent) bumps it to the source distribution of DuckDB available on PyPI, which isn't useful since the package has a custom URL that should be better updated manually by the recipe maintainers from time to time.
Proposed implementation
Use a simple regular expression to check if the existing URL matches https://files.pythonhosted.org/packages/, and if it doesn't, the command should not attempt to update the URL and the checksum. A warning should be raised instead, just like the one that gets raised on attempting to update static/shared libraries – i.e., "Package X update skipped: it uses a custom URL!" or similar.
From @hoodmane below: a better way is to introduce a new YAML field (pin: true, which is false by default) and check for it. If it's set to true, any package with this will not be updated by any commands and the user will need to manually perform the update.
The text was updated successfully, but these errors were encountered:
Description
The recipe for the DuckDB package in Pyodide has a custom URL in its recipe, right now:
which points to a pre-built wheel hosted on a GitHub Pages website, which is not on PyPI for reasons of CI time.
Running
pyodide skeleton pypi --update-patched
(or theupdate
equivalent) bumps it to the source distribution of DuckDB available on PyPI, which isn't useful since the package has a custom URL that should be better updated manually by the recipe maintainers from time to time.Proposed implementation
Use a simple regular expression to check if the existing URL matches, the command should not attempt to update the URL and the checksum. A warning should be raised instead, just like the one that gets raised on attempting to update static/shared libraries – i.e., "Package X update skipped: it uses a custom URL!" or similar.https://files.pythonhosted.org/packages/
, and if it doesn'tFrom @hoodmane below: a better way is to introduce a new YAML field (
pin: true
, which isfalse
by default) and check for it. If it's set totrue
, any package with this will not be updated by any commands and the user will need to manually perform the update.The text was updated successfully, but these errors were encountered: