DOCS Add brief section on upgrading packages (#4219)

This commit is contained in:
Jo Bovy 2023-10-11 23:03:19 -04:00 committed by GitHub
parent 357b07a25f
commit 9402397fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -242,6 +242,21 @@ the `patches` key:
find patches/ -type f | sed 's/^/ - /g'
```
### Upgrading a package
To upgrade a package's version to the latest one available on PyPI, do
```
pyodide skeleton pypi <package-name> --update
```
Because this does not handle package dependencies, you have to manually check
whether the `requirements` section of the `meta.yaml` file needs to be updated
for updated dependencies.
Upgrading a package's version may lead to new build issues that need to be resolved
(see above) and any patches need to be checked and potentially migrated (see below).
### Migrating Patches
When you want to upgrade the version of a package, you will need to migrate the