This package demonstrates a packaging workflow
-
create environment
python -m venv --prompt scm venv source venv/bin/activate
-
install dependencies (packages & from source)
pip install -U pip pip install -r requirements.txt
-
run tests
pytest
-
The build environment technically doesn't need anything except
build
, so you could reuse the environment above or create a fresh one with onlybuild
installed.python -m venv --prompt build buildenv source buildenv/bin/activate pip install -U pip build
-
Build with:
python -m build