This commit is contained in:
parent
8aaa584835
commit
f5638a37a1
5 changed files with 46 additions and 0 deletions
1
.python-version
Normal file
1
.python-version
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.13
|
15
Containerfile
Normal file
15
Containerfile
Normal 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
16
pyproject.toml
Normal 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"]
|
6
src/test_woodpecker_ci/main.py
Normal file
6
src/test_woodpecker_ci/main.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
def main():
|
||||||
|
print("Hello from test-woodpecker-ci!")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
8
uv.lock
generated
Normal file
8
uv.lock
generated
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
version = 1
|
||||||
|
revision = 2
|
||||||
|
requires-python = ">=3.13"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "test-woodpecker-ci"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = { editable = "." }
|
Loading…
Add table
Add a link
Reference in a new issue