From f702182dddbe0f1dc92360184dae5878daee7f54 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Fri, 6 Dec 2024 14:42:19 +0100 Subject: [PATCH] initial commit --- .python-version | 1 + README.md | 15 +++++++++++++++ docker/Dockerfile | 22 ++++++++++++++++++++++ hello.py | 6 ++++++ pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++++ texput.log | 21 +++++++++++++++++++++ 6 files changed, 106 insertions(+) create mode 100644 .python-version create mode 100644 README.md create mode 100644 docker/Dockerfile create mode 100644 hello.py create mode 100644 pyproject.toml create mode 100644 texput.log 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/README.md b/README.md new file mode 100644 index 0000000..e51a937 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# 50ohm.de + +50ohm.de ist die Ausbildungsplattform des DARC e.V. + +Mit dem Code aus diesem Repository kann die Website aus der Originalquelle (eine Directus-Instanz) gebaut werden. + +## Überblick + +TODO: Überblick über Architektur + +## Mitmachen + +TODO: Installation erklären + +Dieses Projekt wurde mit [`uv`](https://docs.astral.sh/uv/) aufgesetzt, ist aber genauso mit `pip` und `venv` kompatibel. \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..3cdc38b --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,22 @@ +FROM python:3.12 + +# RUN apt-get update -qq && apt-get install -y \ +# wget \ +# libswitch-perl \ +# gnupg \ +# && apt-get clean && rm -rf /var/lib/apt/lists/* +# +# COPY ./texlive.profile /tmp/ +# RUN cd /tmp && wget -qO- https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | tar xz \ +# && /tmp/install-tl*/install-tl -profile /tmp/texlive.profile \ +# && rm -rf /tmp/install-tl-* +# +# ENV PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}" + +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +COPY --from=texlive/texlive:latest /usr/local/texlive /usr/local/texlive + +RUN $(find /usr/local/texlive -name tlmgr) path add && \ + # Temporary fix for ConTeXt (#30) + (sed -i '/package.loaded\["data-ini"\]/a if os.selfpath then environment.ownbin=lfs.symlinktarget(os.selfpath..io.fileseparator..os.selfname);environment.ownpath=environment.ownbin:match("^.*"..io.fileseparator) else environment.ownpath=kpse.new("luatex"):var_value("SELFAUTOLOC");environment.ownbin=environment.ownpath..io.fileseparator..(arg[-2] or arg[-1] or arg[0] or "luatex"):match("[^"..io.fileseparator.."]*$") end' /usr/bin/mtxrun.lua || true) \ No newline at end of file diff --git a/hello.py b/hello.py new file mode 100644 index 0000000..3144825 --- /dev/null +++ b/hello.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from 50ohm-de!") + + +if (__name__ == "__main__"): + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..79bb2a3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[project] +name = "50ohm-de" +version = "0.1.0" +description = "Generator für 50ohm.de, die Ausbildungsplattform des DARC e.V." +readme = "README.md" +requires-python = ">=3.13" +dependencies = [] + +[tool.ruff] +line-length = 88 +indent-width = 4 + +[tool.ruff.lint] +select = [ + # pycodestyle + # Ensure PEP8-compatible code style. + "E", + # pep8-naming + # Ensure consisten, PEP8-compatible naming. + "N", + # Pyflakes + # Detect common errors. + "F", + # pyupgrade + # Ensure latest syntax is used (and code auto-upgraded). + "UP", + # flake8-bugbear + # Catch common, but intransparent errors. + "B", + # isort + # Sort imports. + "I", + # flake8-pytest-style + # Ensure consistent style in unit tests. + "PT", + # EXPERIMENTAL: mccabe + # Limits maximum complexity of functions via McCabe metric + "C90", + # ruff-specific: No unused noqa directives + "RUF100", +] diff --git a/texput.log b/texput.log new file mode 100644 index 0000000..ae405e0 --- /dev/null +++ b/texput.log @@ -0,0 +1,21 @@ +This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=latex 2024.12.1) 6 DEC 2024 13:03 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +** + +! Emergency stop. +<*> + +End of file on the terminal! + + +Here is how much of TeX's memory you used: + 3 strings out of 473331 + 100 string characters out of 5719795 + 390236 words of memory out of 5000000 + 23237 multiletter control sequences out of 15000+600000 + 558069 words of font info for 36 fonts, out of 8000000 for 9000 + 1141 hyphenation exceptions out of 8191 + 0i,0n,0p,6b,6s stack positions out of 10000i,1000n,20000p,200000b,200000s +No pages of output.