
PREREQUISITES

    Appropriate account/credentials to upload to the PyPI site

    python3 -m pip install --upgrade pip build twine

BUILD

Create tar.gz and whl files in dist directory:

    cd /path/to/bbperf/git/repo/dir    <-- the directory with the pyproject.toml file

    vim src/bbperf/const.py            <-- increment the version number
    git add src/bbperf/const.py

    vim pyproject.toml                 <-- increment the version number
    git add pyproject.toml

    git commit -m 'version 0.0.2'

    git tag -a v0.0.2 -m 'version 0.0.2'

    git push origin
    git push origin --tags

    python3 -m build

UPLOAD

Upload dist files to production PyPI site:

    cd /path/to/bbperf/git/repo/dir    <-- the directory with the pyproject.toml file

    python3 -m twine upload dist/*

    To view:
    https://pypi.org

MISCELLANEOUS

Using the test PyPI site:

    python3 -m twine upload --repository testpypi dist/*

    To view:
    https://test.pypi.org

    To install from test PyPI:
    python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --nodeps bbperf

Installing from the local git repository:

    python3 -m pip install /path/to/bbperf/git/repo/dir    <-- the directory with the pyproject.toml file

