feat(ENG-12402): add PyPI publishing setup with Release Please CI#3
Merged
Conversation
- Move ONNX model files into src/stackone_defender/models/ so they are included in the wheel (previously lived at repo root and were excluded) - Fix _default_model_path() to resolve 2 levels up (classifiers/ → stackone_defender/models/) instead of 4 levels to repo root - Update pyproject.toml: add full metadata (authors, license, classifiers, URLs), convert [tool.uv] dev-deps to [dependency-groups] - Add .release-please-config.json and .release-please-manifest.json for automated versioning on merge to main - Add .github/workflows/release.yaml: Release Please + uv publish to PyPI - Add .github/workflows/ci.yaml: pytest matrix across Python 3.10–3.13 - Remove Git LFS section from README (model is now bundled in package) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
onnxruntime dropped Python 3.10 support in 1.21.0. Remove 3.10 from CI matrix and classifiers to match. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/stackone_defender/models/so it is bundled inside the wheel (previously lived at repo root and was excluded from PyPI packages)_default_model_path()to resolve relative to the installed package rather than the repo rootpyproject.toml(authors, license, classifiers, URLs) and converts dev deps to[dependency-groups]mainuv publishon releaseTest plan
uv run pytest— 177 tests passuv build && unzip -l dist/*.whl | grep onnx— confirmsmodel_quantized.onnxis in the wheelPYPI_API_TOKENsecret to be set in repo settings before first release🤖 Generated with Claude Code