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