Skip to content

Commit

Permalink
root:pyproject: Setup hatch as project manager and dev shortcuts.
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed Aug 3, 2023
1 parent 9cc129a commit 3b92970
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ classifiers = [
]
description = "This package serves as the entry point for embedded applications using Python on Blue Robotics's Navigator"
readme = "README.md"
dynamic = ["version"]

[project.urls]
Homepage = "https://bluerobotics.com/store/comm-control-power/control/navigator/"
Expand All @@ -21,3 +22,18 @@ Repository = "https://github.com/bluerobotics/navigator-lib"

[tool.maturin]
features = ["python"]

[tool.hatch.envs.dev]
dependencies = [
"maturin >=1.0.1",
"sphinx >=6.2.1",
"sphinx-rtd-theme >=1.2.2",
"sphinxcontrib-napoleon >=0.7",
"sphinx-pyproject >=0.1.0",
"ziglang >=0.10.1",
]

[tool.hatch.envs.dev.scripts]
install = "maturin develop"
build-doc = "install && sphinx-build ./docs/source docs/_build"
build-wheel-armv7 = "maturin build --release --target armv7-unknown-linux-gnueabihf --zig"

0 comments on commit 3b92970

Please sign in to comment.