diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..373e514 --- /dev/null +++ b/Containerfile @@ -0,0 +1,15 @@ +# Build: podman build -t code.philo.ydns.eu/k-net/knoc -f Containerfile + +FROM docker.io/python:3.13-slim +#RUN apk add --no-cache git +COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/ +COPY --from=docker.io/python:3.13 /usr/bin/git /usr/local/bin/git + +COPY . /app + +# Sync the project into a new environment, using the frozen lockfile +WORKDIR /app + +RUN uv pip install --system . + +ENTRYPOINT ["knoc"] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f3dbcdf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "test-woodpecker-ci" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.13" +dependencies = [] + +[project.scripts] +foo = "test_woodpecker_ci.main:main" +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["src/test_woodpecker_ci"] diff --git a/src/test_woodpecker_ci/main.py b/src/test_woodpecker_ci/main.py new file mode 100644 index 0000000..2178aff --- /dev/null +++ b/src/test_woodpecker_ci/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from test-woodpecker-ci!") + + +if __name__ == "__main__": + main() diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..9575cd6 --- /dev/null +++ b/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 2 +requires-python = ">=3.13" + +[[package]] +name = "test-woodpecker-ci" +version = "0.1.0" +source = { editable = "." }