-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from SunDoge/feat-use-uv
Feat use uv
- Loading branch information
Showing
18 changed files
with
168 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
*.model | ||
*.zip | ||
.vscode/ | ||
__pycache__/ | ||
*.so |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.12.2 | ||
3.11 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
[package] | ||
name = "bytepiece-py" | ||
name = "bytepiece_py" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[lib] | ||
name = "bytepiece_py" | ||
name = "_core" | ||
# "cdylib" is necessary to produce a shared library for Python to import from. | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
pyo3 = "0.21" | ||
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so) | ||
# "abi3-py39" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.9 | ||
pyo3 = { version = "0.23.3", features = ["extension-module", "abi3-py39"] } | ||
bytepiece = { workspace = true } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# bytepiece-py | ||
|
||
Describe your project here. | ||
? |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
[project] | ||
name = "bytepiece-py" | ||
version = "0.2.1" | ||
version = "0.1.1" | ||
description = "Add your description here" | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "SunDoge", email = "[email protected]" } | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [] | ||
readme = "README.md" | ||
requires-python = ">= 3.8" | ||
|
||
[tool.maturin] | ||
module-name = "bytepiece_py._core" | ||
python-packages = ["bytepiece_py"] | ||
python-source = "src" | ||
|
||
[build-system] | ||
requires = ["maturin>=1.2,<2.0"] | ||
requires = ["maturin>=1.0,<2.0"] | ||
build-backend = "maturin" | ||
|
||
[tool.rye] | ||
managed = true | ||
dev-dependencies = [ | ||
"pip>=24.0", | ||
[dependency-groups] | ||
dev = [ | ||
"maturin>=1.7.8", | ||
"rs-bytepiece>=0.2.2", | ||
] | ||
|
||
[tool.maturin] | ||
python-source = "python" | ||
module-name = "bytepiece_py._lowlevel" | ||
features = ["pyo3/extension-module"] | ||
|
||
[tool.rye.scripts] | ||
dev = "maturin develop --skip-install" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from __future__ import annotations | ||
|
||
def hello_from_bin() -> str: ... |
Empty file.
This file contains 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
This file contains 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
Oops, something went wrong.