From ea6aed794ebc1a33b671dc88c8946e2a177bb5da Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Thu, 7 Nov 2024 12:14:45 +0100 Subject: [PATCH] Fix remaining typos from the packaging episode Move the demo admonition up --- content/packaging.rst | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/content/packaging.rst b/content/packaging.rst index f5698a1c..58200dcb 100644 --- a/content/packaging.rst +++ b/content/packaging.rst @@ -134,8 +134,8 @@ test before trying to upload a package to PyPI or test-PyPI -Exercises 1 ------------ +Exercise 1 +---------- .. challenge:: Packaging-1 @@ -163,6 +163,11 @@ Exercises 1 Sharing packages via PyPI ------------------------- +.. demo:: + + Most people will watch and observe this, due to the speed with which we will + move. + Once we are able to pip-install the example package locally, we are ready for upload. @@ -214,14 +219,15 @@ And use twine to upload the distribution files to test-PyPI:: #. Under **Token name** write something memorable. - It should remind you the *purpose* such as - or the *name of the computer* so you can delete it later. + It should remind you the *purpose* + or the *name of the computer*, such that when you are done + using it, you can safely delete it. #. Under **Scope** select ``Entire account (all projects)``. #. Click on **Create token**. #. Click on **Copy token** once a long string which starts with ``pypi-`` is generated. - Paste that token back into terminal where ``twine upload ...`` is running and press ENTER. + Paste that token back into the terminal where ``twine upload ...`` is running and press ENTER. Once this is done, create yet another virtual environment and try to install from test-PyPI (adapt ``myname``). @@ -273,10 +279,6 @@ If you upload packages to PyPI or test PyPI often you can create an API token an Building a conda package and share it ------------------------------------- -.. demo:: - - Most people will watch and observe this, due to speed which we will - move. .. callout:: Prerequisites