Skip to content

Commit

Permalink
feat: python package.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassun7010 committed Nov 20, 2024
1 parent 6c79527 commit 4c21725
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = "0.0.1"
edition = "2021"
authors = ["yassun7010 <[email protected]>"]
license = "MIT"
repository = "https://github.com/yassun7010/tombi"

[workspace.dependencies]
anyhow = "1.0.89"
Expand Down
13 changes: 9 additions & 4 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@
name = "tombi"
version = "0.0.1"
description = "Reserved package for tombi"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.10"
dependencies = []

[project.urls]
GitHub = "https://github.com/yassun7010/tombi"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"

[dependency-groups]
dev = [
"pytest>=8.3.3",
"ruff>=0.7.4",
]

[tool.maturin]
bindings = "bin"
manifest-path = "../rust/tombi-cli/Cargo.toml"
module-name = "tombi"
python-source = "src"
22 changes: 21 additions & 1 deletion python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions rust/tombi-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[package]
name = "tombi-cli"
description = "TOML Formatter/Linter CLI Tool."
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[[bin]]
name = "tombi"
Expand Down
1 change: 1 addition & 0 deletions rust/tombi-cli/README.md

0 comments on commit 4c21725

Please sign in to comment.