From f1c7d4005768079b0b8e8fac15ad9b191b700022 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 29 Jan 2026 17:12:55 +0800 Subject: chore: Rename project from pyo3_template to dropin and update related files --- Cargo.toml | 13 ++++++------- pyproject.toml | 18 +++++++++--------- src/dropin/__init__.py | 0 src/dropin/__main__.py | 8 ++++++++ src/dropin/_core.pyi | 3 +++ src/pyo3_template/__init__.py | 0 src/pyo3_template/__main__.py | 8 -------- src/pyo3_template/_core.pyi | 3 --- 8 files changed, 26 insertions(+), 27 deletions(-) create mode 100644 src/dropin/__init__.py create mode 100644 src/dropin/__main__.py create mode 100644 src/dropin/_core.pyi delete mode 100644 src/pyo3_template/__init__.py delete mode 100644 src/pyo3_template/__main__.py delete mode 100644 src/pyo3_template/_core.pyi diff --git a/Cargo.toml b/Cargo.toml index 58a78cc..285e044 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,14 @@ [package] -name = "pyo3_template" +name = "dropin" version = "0.0.1" edition = "2021" -description = "A Pyo3 Project Template For HydroRoll." +description = "Minecraft Instances Manager" license = "MIT" -documentation = "https://{project}.hydroroll.team/" -homepage = "https://hydroroll.team/" -repository = "https://github.com/HydroRoll-Team/{project}" -authors = ["yourname"] +documentation = "https://dropin.hydroroll.team/" +homepage = "https://dropin.hydroroll.team/" +repository = "https://github.com/HsiangNianian/DropIn" +authors = ["HsiangNianian"] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] name = "_core" crate-type = ["cdylib"] diff --git a/pyproject.toml b/pyproject.toml index 6081a51..46220e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,10 +3,10 @@ requires = ["maturin>=1.4,<2.0"] build-backend = "maturin" [project] -name = "pyo3_template" +name = "dropin" dynamic = ["version"] -description = "HydroRoll Pyo3 Project Template" -authors = [{ name = "yourname", email = "you@hydroroll.team" }] +description = "Minecraft Instances Manager" +authors = [{ name = "HsiangNianian", email = "i@jyunko.cn" }] dependencies = [] requires-python = ">=3.9" readme.content-type = "text/x-rst" @@ -27,17 +27,17 @@ classifiers = [ [project.urls] homepage = "https://hydroroll.team/" -repository = "https://github.com/HydroRoll-Team/{project}" -documentation = "https://{project}.hydroroll.team/" +repository = "https://github.com/HsiangNianian/DropIn" +documentation = "https://dropin.hydroroll.team/" [project.scripts] -pyo3_template = "pyo3_template.__main__:main" -pyo3t = "pyo3_template.__main__:main" +dropin = "dropin.__main__:main" +di = "dropin.__main__:main" [tool.maturin] features = ["pyo3/extension-module"] -module-name = "pyo3_template._core" -python-package = "pyo3_template" +module-name = "dropin._core" +python-package = "dropin" python-source = "src" [tool.ruff] diff --git a/src/dropin/__init__.py b/src/dropin/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/dropin/__main__.py b/src/dropin/__main__.py new file mode 100644 index 0000000..0135c6d --- /dev/null +++ b/src/dropin/__main__.py @@ -0,0 +1,8 @@ +from ._core import sum_as_string + +def main(): + print(sum_as_string(1, 2)) + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/src/dropin/_core.pyi b/src/dropin/_core.pyi new file mode 100644 index 0000000..4945a82 --- /dev/null +++ b/src/dropin/_core.pyi @@ -0,0 +1,3 @@ +def sum_as_string(self, a: int, b: int) -> str: ... + +class Base: ... \ No newline at end of file diff --git a/src/pyo3_template/__init__.py b/src/pyo3_template/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/pyo3_template/__main__.py b/src/pyo3_template/__main__.py deleted file mode 100644 index 0135c6d..0000000 --- a/src/pyo3_template/__main__.py +++ /dev/null @@ -1,8 +0,0 @@ -from ._core import sum_as_string - -def main(): - print(sum_as_string(1, 2)) - - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/src/pyo3_template/_core.pyi b/src/pyo3_template/_core.pyi deleted file mode 100644 index 4945a82..0000000 --- a/src/pyo3_template/_core.pyi +++ /dev/null @@ -1,3 +0,0 @@ -def sum_as_string(self, a: int, b: int) -> str: ... - -class Base: ... \ No newline at end of file -- cgit v1.2.3-70-g09d2