📦 This is a template repo on how to package a python project to be distributable.
It is the copied version of https://packaging.python.org/en/latest/tutorials/packaging-projects/
Build the package by the following steps
- Optional: Activate new/existing conda environment
- Install build:
python3 -m pip install --upgrade build
- Build module:
python3 -m build
- Run
python3 -m pip install -e "path/to/file"
eg.: if your project is next to the module you'd like to install in one directory:python3 -m pip install -e "../package-name"
- Install twine
python3 -m pip install --upgrade twine
- Upload to testpypi
python3 -m twine upload --repository testpypi dist/*
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-package-YOUR-USERNAME-HERE