t6
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
phil 2025-06-20 19:21:15 +02:00
parent 8aaa584835
commit f5638a37a1
5 changed files with 46 additions and 0 deletions

1
.python-version Normal file
View file

@ -0,0 +1 @@
3.13

15
Containerfile Normal file
View file

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

16
pyproject.toml Normal file
View file

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

View file

@ -0,0 +1,6 @@
def main():
print("Hello from test-woodpecker-ci!")
if __name__ == "__main__":
main()

8
uv.lock generated Normal file
View file

@ -0,0 +1,8 @@
version = 1
revision = 2
requires-python = ">=3.13"
[[package]]
name = "test-woodpecker-ci"
version = "0.1.0"
source = { editable = "." }