From 9402397fd0cb4db6fbdeeb80ca4db7359a0e52b0 Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Wed, 11 Oct 2023 23:03:19 -0400 Subject: [PATCH] DOCS Add brief section on upgrading packages (#4219) --- docs/development/new-packages.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/development/new-packages.md b/docs/development/new-packages.md index 6527ccb8c..4fb0112d2 100644 --- a/docs/development/new-packages.md +++ b/docs/development/new-packages.md @@ -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 --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