Install poetry
pipx install poetry
Learn more about poetry at https://python-poetry.org/
make
is included with xcode. If you don't already have it install it:
xcode-select --install
-
run a local JupyterLab instance:
make jupyterlab-dev
then go to http://localhost:8888
-
make changes to the
skillsnetwork
package -
restart your kernel
-
test your changes
-
run a local pypi instance:
make local-pypi
-
run a local JupyterLite instance:
make jupyterlite-dev
then go to http://localhost:8000
-
install the package in JupyterLite (note: your version may be different. You can go to http://localhost:3000/skillsnetwork to see available versions):
import piplite await piplite.install("http://localhost:3000/skillsnetwork/skillsnetwork-0.0.0-py3-none-any.whl")
-
make changes to the
skillsnetwork
package -
stop the local pypi server with Ctrl+c, then re-start it with
make local-pypi
-
restart your kernel
-
reinstall the package to get the latest changes
-
test your changes
To publish a new version of the package on PyPI, create a new GitHub release. Pre-releasese are supported and will also be published to PyPI (as pre-releases).