Status (2026-06-23): v0.4.0 is build-verified and ready to publish —
python -m build succeeds, twine check passes, and a clean-venv install of the
wheel imports and runs the full v0.4 surface (core is zero-dependency). The only
steps left are the PyPI-account ones below.
Distribution name: riskkit-quant. The ideal riskkit is unregistered (API
404) but PyPI's pending-publisher form rejects it as too similar to the existing
risk-kit, and riskkit-trading was also rejected. The accepted name is
riskkit-quant (free, distinct). The import name is unchanged:
pip install riskkit-quant then import riskkit — exactly like scikit-learn →
import sklearn. Never re-upload a version once published.
Two ways to publish — the automated one (recommended) and the manual one.
This uses the included .github/workflows/release.yml. You configure PyPI once
to trust your GitHub repo, then publishing is just pushing a tag.
- Create a PyPI account at https://pypi.org and verify your email.
- Go to Your projects → Publishing → Add a pending publisher and enter:
- PyPI project name:
riskkit-quant - Owner:
HasibVortex369 - Repository name:
riskkit - Workflow name:
release.yml - Environment name:
pypi
- PyPI project name:
- In your GitHub repo, create an environment named
pypi(Settings → Environments → New environment). - Tag and push a release:
The workflow builds the package and publishes it. Done.
git tag v0.4.0 git push origin v0.4.0
python -m pip install --upgrade build twine
python -m build # creates dist/*.whl and dist/*.tar.gz
python -m twine check dist/*
python -m twine upload dist/* # paste a PyPI API token when prompted- GitHub handle (
HasibVortex369) filled in acrosspyproject.toml,mkdocs.yml,docs/, and the workflow. -
versionmatches inpyproject.tomlandsrc/riskkit/__init__.py(0.4.0). -
pytestgreen (118 tests) and CI passes on GitHub across Python 3.9–3.12. -
python -m buildsucceeds andtwine check dist/*passes; the wheel installs and imports cleanly in a fresh venv with zero dependencies.
- Verify the install:
pip install riskkit-quantin a clean venv (thenimport riskkit). - Update the README install line from the GitHub URL to
pip install riskkit-trading. - Bump the version for the next change (never re-upload the same version).
- Docs are already live at https://hasibvortex369.github.io/riskkit/ (re-run
mkdocs gh-deployafter docs changes).