Allow others to install as a Python dependency.

This commit is contained in:
2026-04-25 17:34:21 +01:00
parent 48adf25837
commit ff8aa88f76
2 changed files with 65 additions and 8 deletions

19
pyproject.toml Normal file
View File

@@ -0,0 +1,19 @@
[build-system]
requires = ["maturin>=1.7,<2"]
build-backend = "maturin"
[project]
name = "slingshot-microservice"
version = "0.1.0"
description = "Opinionated Rust framework for queue-driven microservices"
license = { text = "MIT" }
requires-python = ">=3.8"
readme = "README.md"
[tool.maturin]
# Build with Python bindings enabled.
features = ["python"]
# Place the native extension inside the Python package so imports resolve.
module-name = "slingshot_microservice._native"
# Include the pure-Python package (typing stubs, __init__.py) in the wheel.
python-packages = ["slingshot_microservice"]