Skip to content

Commit

Permalink
reuse the cli arg parsing from rust for python
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Oct 29, 2024
1 parent 8f7c23c commit f070c07
Show file tree
Hide file tree
Showing 8 changed files with 431 additions and 1,198 deletions.
10 changes: 7 additions & 3 deletions python-pyo3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ classifiers = [
]
authors = [
{ name = "Pasi Niemi", email = "[email protected]" },
{ name = "Akseli Lukkarila", email = "[email protected]" }
{ name = "Akseli Lukkarila", email = "[email protected]" },
]
dynamic = ["version"]
dependencies = ["typer"]
dependencies = []

[project.optional-dependencies]
dev = ["ruff", "maturin"]
Expand All @@ -25,13 +25,17 @@ dev = ["ruff", "maturin"]
Repository = "https://github.com/NitorCreations/vault"

[project.scripts]
pvault = "p_vault.vault:app"
pvault = "p_vault.vault:main"

[tool.maturin]
features = ["pyo3/extension-module"]
python-source = "python"
module-name = "p_vault.nitor_vault_rs"

[tool.pyright]
venvPath = "."
venv = ".venv"

[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
include = ["*.py", "*.pyi", "**/pyproject.toml"]
Expand Down
Loading

0 comments on commit f070c07

Please sign in to comment.