This project is packaged with Maturin and published to PyPI as
flint-limiter.
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
python3 -m venv .venv
.venv/bin/pip install -U pip maturin pytest twine
.venv/bin/maturin develop
.venv/bin/python -m pytest -q tests/python
.venv/bin/maturin build --release
.venv/bin/twine check target/wheels/*Update:
Cargo.toml;pyproject.toml;Cargo.lock.
Use matching versions for Rust workspace and Python package.
git tag v0.2.1
git push origin v0.2.1Recommended PyPI setup:
- PyPI project:
flint-limiter; - GitHub owner:
BuildByNexora; - repository:
Flint; - workflow:
.github/workflows/publish.yml; - environment:
pypi.
Then run the publish workflow from GitHub Actions.
Use an API token if publishing locally:
.venv/bin/maturin publishCredentials:
username: __token__
password: pypi-...
Install in a clean virtual environment:
python3 -m venv /tmp/flint-wheel-test
/tmp/flint-wheel-test/bin/pip install -U pip
/tmp/flint-wheel-test/bin/pip install flint-limiter
/tmp/flint-wheel-test/bin/python -c "import flint; print(flint.Limiter)"