📁 Add new directory single-scripts

This commit is contained in:
2026-04-23 23:52:31 +08:00
parent cd0ba9d6c6
commit 173f2cef23
3 changed files with 48 additions and 0 deletions

19
single-scripts/hello.py Normal file
View File

@@ -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()

View File

@@ -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" }

19
single-scripts/uv.lock generated Normal file
View File

@@ -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" }]