From ebaa8703429f92c52c880561bf6f5abecad62bca Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Fri, 7 Jun 2024 11:55:37 +0200 Subject: [PATCH] feat: initial commit --- $REPO_DESCRIPTION_SNAKE/__about__.py | 2 ++ $REPO_DESCRIPTION_SNAKE/__init__.py | 0 $REPO_DESCRIPTION_SNAKE/__main__.py | 5 ++++ README.md | 4 ++-- pyproject.toml | 35 ++++++++++++++++++++++++++++ 5 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 $REPO_DESCRIPTION_SNAKE/__about__.py create mode 100644 $REPO_DESCRIPTION_SNAKE/__init__.py create mode 100644 $REPO_DESCRIPTION_SNAKE/__main__.py create mode 100644 pyproject.toml diff --git a/$REPO_DESCRIPTION_SNAKE/__about__.py b/$REPO_DESCRIPTION_SNAKE/__about__.py new file mode 100644 index 0000000..e77d054 --- /dev/null +++ b/$REPO_DESCRIPTION_SNAKE/__about__.py @@ -0,0 +1,2 @@ +__version__ = "0.0.0" +__name__ = "$REPO_DESCRIPTION_SNAKE" \ No newline at end of file diff --git a/$REPO_DESCRIPTION_SNAKE/__init__.py b/$REPO_DESCRIPTION_SNAKE/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/$REPO_DESCRIPTION_SNAKE/__main__.py b/$REPO_DESCRIPTION_SNAKE/__main__.py new file mode 100644 index 0000000..798dffe --- /dev/null +++ b/$REPO_DESCRIPTION_SNAKE/__main__.py @@ -0,0 +1,5 @@ +from .__about__ import __version__ + + +def cli(): + print("Hello, world!") diff --git a/README.md b/README.md index 5b19a51..68e75c0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# python-project +# $REPO_NAME_TITLE -A template for a python project \ No newline at end of file +$REPO_DESCRIPTION \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8103fb2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,35 @@ +[project] +name = "$REPO_NAME" +dependencies = [] +dynamic = ["version"] +authors = [] +description = "$REPO_DESCRIPTION" +readme = "README.md" +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.scripts] +$REPO_DESCRIPTION_KEBAB = "$REPO_DESCRIPTION_SNAKE.__main__:cli" + +[build-system] +requires = ["hatchling", "hatch-requirements-txt"] +build-backend = "hatchling.build" + +[tool.hatch.build] +directory = "dist" + +[tool.hatch.build.targets.sdist] +include = ["$REPO_DESCRIPTION_SNAKE/*.py"] + +[tool.hatch.build.targets.wheel] +packages = ["$REPO_DESCRIPTION_SNAKE"] + +[tool.hatch.metadata] +allow-direct-references = true + +[tool.hatch.version] +path = "$REPO_DESCRIPTION_SNAKE/__about__.py"