-
Notifications
You must be signed in to change notification settings - Fork 11
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
pyodide skeleton pypi --update
(or --update-patched
) shouldn't attempt to update packages with custom URLs
#48
Comments
I'd say we should add a separate yaml field to pin it rather than a regex. There are reasons to pin python hosted packages too. |
That could work, too, but we'll need to remember to instruct users to add that separate YAML field, wouldn't we? |
Well if we forget then when it bothers you that it's auto updating you can |
Makes sense, I'll edit the issue title/description! |
Having a separate field sounds good to me. |
I think this was closed by #89, as we can now use the |
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: