Skip to content

Development

Tomy Hsieh edited this page Sep 6, 2023 · 5 revisions

Release workflow

  1. Bump version in __init__.py
  2. Manually dispatch test releases in GitHub Actions
  3. Testing with instructions below
  4. Publish the release on GitHub to trigger a stable release

Testing release on TestPyPI

  1. Setup and activate a new virtual environment
python -m venv env
source env/bin/activate
  1. Download the test release on TestPyPI

Only installing tw_invoice

pip install --upgrade tw_invoice --index-url 'https://test.pypi.org/simple/' --extra-index-url 'https://pypi.org/simple/

When installing from requirements.txt with other dependencies, add the extra-index-url parameters so that other dependencies cab be installed from standard PyPI

pip install -r requirements.txt --extra-index-url 'https://pypi.org/simple/'
Clone this wiki locally