From 173f2cef23b5b534e376b5b091c0b86d163862fd Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Thu, 23 Apr 2026 23:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=81=20Add=20new=20directory=20`single-?= =?UTF-8?q?scripts`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- single-scripts/hello.py | 19 +++++++++++++++++++ single-scripts/pyproject.toml | 10 ++++++++++ single-scripts/uv.lock | 19 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 single-scripts/hello.py create mode 100644 single-scripts/pyproject.toml create mode 100644 single-scripts/uv.lock diff --git a/single-scripts/hello.py b/single-scripts/hello.py new file mode 100644 index 0000000..46d78a3 --- /dev/null +++ b/single-scripts/hello.py @@ -0,0 +1,19 @@ +# /// script +# requires-python = ">=3.12" +# dependencies = [ +# "py-common-lib", +# ] +# +# [tool.uv.sources] +# py-common-lib = { git = "https://git.hatter.ink/hatter/py-common-lib.git" } +# /// + +from py_common_lib import hello + + +def main() -> None: + print(hello()) + + +if __name__ == "__main__": + main() diff --git a/single-scripts/pyproject.toml b/single-scripts/pyproject.toml new file mode 100644 index 0000000..02b9821 --- /dev/null +++ b/single-scripts/pyproject.toml @@ -0,0 +1,10 @@ +[project] +name = "single-scripts" +version = "0.1.0" +requires-python = ">=3.12" +dependencies = [ + "py-common-lib", +] + +[tool.uv.sources] +py-common-lib = { git = "https://git.hatter.ink/hatter/py-common-lib.git" } diff --git a/single-scripts/uv.lock b/single-scripts/uv.lock new file mode 100644 index 0000000..48879e6 --- /dev/null +++ b/single-scripts/uv.lock @@ -0,0 +1,19 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" + +[[package]] +name = "py-common-lib" +version = "0.1.0" +source = { git = "https://git.hatter.ink/hatter/py-common-lib.git#fe9444f13e9413932849fa7a2eedc51b1e8252a6" } + +[[package]] +name = "single-scripts" +version = "0.1.0" +source = { virtual = "." } +dependencies = [ + { name = "py-common-lib" }, +] + +[package.metadata] +requires-dist = [{ name = "py-common-lib", git = "https://git.hatter.ink/hatter/py-common-lib.git" }]