From a1af65c0c072618656ac21cf9f17fdca134cf1c6 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 16 Aug 2021 21:41:46 +0200 Subject: [PATCH] Turn into Python package --- .gitignore | 1 + .gitmodules | 2 +- pelican_theme_teckids/__init__.py | 0 .../pelicanconf.py | 0 .../static}/artwork | 0 .../static}/css/bootstrap.min.css | 0 .../static}/css/style.css | 0 .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../fonts/glyphicons-halflings-regular.woff2 | Bin .../static}/images/partners/fsfe.png | Bin .../static}/images/partners/osi.png | Bin .../images/sponsors/informatik_aktuell.png | Bin .../static}/images/sponsors/proxmox.png | Bin .../static}/images/sponsors/pysv.png | Bin .../static}/images/sponsors/speedpartner.png | Bin .../static}/js/bootstrap.min.js | 0 .../static}/js/jquery.min.js | 0 .../templates}/archives.html | 0 .../templates}/article.html | 0 .../templates}/author.html | 0 .../templates}/base.html | 0 .../templates}/page.html | 0 .../templates}/page_text.html | 0 .../templates}/translations.html | 0 pyproject.toml | 16 ++++++++++++++++ 28 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 pelican_theme_teckids/__init__.py rename pelicanconf.py => pelican_theme_teckids/pelicanconf.py (100%) rename {static => pelican_theme_teckids/static}/artwork (100%) rename {static => pelican_theme_teckids/static}/css/bootstrap.min.css (100%) rename {static => pelican_theme_teckids/static}/css/style.css (100%) rename {static => pelican_theme_teckids/static}/fonts/glyphicons-halflings-regular.eot (100%) rename {static => pelican_theme_teckids/static}/fonts/glyphicons-halflings-regular.svg (100%) rename {static => pelican_theme_teckids/static}/fonts/glyphicons-halflings-regular.ttf (100%) rename {static => pelican_theme_teckids/static}/fonts/glyphicons-halflings-regular.woff (100%) rename {static => pelican_theme_teckids/static}/fonts/glyphicons-halflings-regular.woff2 (100%) rename {static => pelican_theme_teckids/static}/images/partners/fsfe.png (100%) rename {static => pelican_theme_teckids/static}/images/partners/osi.png (100%) rename {static => pelican_theme_teckids/static}/images/sponsors/informatik_aktuell.png (100%) rename {static => pelican_theme_teckids/static}/images/sponsors/proxmox.png (100%) rename {static => pelican_theme_teckids/static}/images/sponsors/pysv.png (100%) rename {static => pelican_theme_teckids/static}/images/sponsors/speedpartner.png (100%) rename {static => pelican_theme_teckids/static}/js/bootstrap.min.js (100%) rename {static => pelican_theme_teckids/static}/js/jquery.min.js (100%) rename {templates => pelican_theme_teckids/templates}/archives.html (100%) rename {templates => pelican_theme_teckids/templates}/article.html (100%) rename {templates => pelican_theme_teckids/templates}/author.html (100%) rename {templates => pelican_theme_teckids/templates}/base.html (100%) rename {templates => pelican_theme_teckids/templates}/page.html (100%) rename {templates => pelican_theme_teckids/templates}/page_text.html (100%) rename {templates => pelican_theme_teckids/templates}/translations.html (100%) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index 9b5e2e8..6d3f79c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *~ __pycache__ +dist/ diff --git a/.gitmodules b/.gitmodules index 223ad5a..28d2003 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "static/artwork"] - path = static/artwork + path = pelican_theme_teckids/static/artwork url = https://edugit.org/Teckids/team-pr/Artwork.git diff --git a/pelican_theme_teckids/__init__.py b/pelican_theme_teckids/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pelicanconf.py b/pelican_theme_teckids/pelicanconf.py similarity index 100% rename from pelicanconf.py rename to pelican_theme_teckids/pelicanconf.py diff --git a/static/artwork b/pelican_theme_teckids/static/artwork similarity index 100% rename from static/artwork rename to pelican_theme_teckids/static/artwork diff --git a/static/css/bootstrap.min.css b/pelican_theme_teckids/static/css/bootstrap.min.css similarity index 100% rename from static/css/bootstrap.min.css rename to pelican_theme_teckids/static/css/bootstrap.min.css diff --git a/static/css/style.css b/pelican_theme_teckids/static/css/style.css similarity index 100% rename from static/css/style.css rename to pelican_theme_teckids/static/css/style.css diff --git a/static/fonts/glyphicons-halflings-regular.eot b/pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from static/fonts/glyphicons-halflings-regular.eot rename to pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.eot diff --git a/static/fonts/glyphicons-halflings-regular.svg b/pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from static/fonts/glyphicons-halflings-regular.svg rename to pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.svg diff --git a/static/fonts/glyphicons-halflings-regular.ttf b/pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from static/fonts/glyphicons-halflings-regular.ttf rename to pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.ttf diff --git a/static/fonts/glyphicons-halflings-regular.woff b/pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from static/fonts/glyphicons-halflings-regular.woff rename to pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.woff diff --git a/static/fonts/glyphicons-halflings-regular.woff2 b/pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from static/fonts/glyphicons-halflings-regular.woff2 rename to pelican_theme_teckids/static/fonts/glyphicons-halflings-regular.woff2 diff --git a/static/images/partners/fsfe.png b/pelican_theme_teckids/static/images/partners/fsfe.png similarity index 100% rename from static/images/partners/fsfe.png rename to pelican_theme_teckids/static/images/partners/fsfe.png diff --git a/static/images/partners/osi.png b/pelican_theme_teckids/static/images/partners/osi.png similarity index 100% rename from static/images/partners/osi.png rename to pelican_theme_teckids/static/images/partners/osi.png diff --git a/static/images/sponsors/informatik_aktuell.png b/pelican_theme_teckids/static/images/sponsors/informatik_aktuell.png similarity index 100% rename from static/images/sponsors/informatik_aktuell.png rename to pelican_theme_teckids/static/images/sponsors/informatik_aktuell.png diff --git a/static/images/sponsors/proxmox.png b/pelican_theme_teckids/static/images/sponsors/proxmox.png similarity index 100% rename from static/images/sponsors/proxmox.png rename to pelican_theme_teckids/static/images/sponsors/proxmox.png diff --git a/static/images/sponsors/pysv.png b/pelican_theme_teckids/static/images/sponsors/pysv.png similarity index 100% rename from static/images/sponsors/pysv.png rename to pelican_theme_teckids/static/images/sponsors/pysv.png diff --git a/static/images/sponsors/speedpartner.png b/pelican_theme_teckids/static/images/sponsors/speedpartner.png similarity index 100% rename from static/images/sponsors/speedpartner.png rename to pelican_theme_teckids/static/images/sponsors/speedpartner.png diff --git a/static/js/bootstrap.min.js b/pelican_theme_teckids/static/js/bootstrap.min.js similarity index 100% rename from static/js/bootstrap.min.js rename to pelican_theme_teckids/static/js/bootstrap.min.js diff --git a/static/js/jquery.min.js b/pelican_theme_teckids/static/js/jquery.min.js similarity index 100% rename from static/js/jquery.min.js rename to pelican_theme_teckids/static/js/jquery.min.js diff --git a/templates/archives.html b/pelican_theme_teckids/templates/archives.html similarity index 100% rename from templates/archives.html rename to pelican_theme_teckids/templates/archives.html diff --git a/templates/article.html b/pelican_theme_teckids/templates/article.html similarity index 100% rename from templates/article.html rename to pelican_theme_teckids/templates/article.html diff --git a/templates/author.html b/pelican_theme_teckids/templates/author.html similarity index 100% rename from templates/author.html rename to pelican_theme_teckids/templates/author.html diff --git a/templates/base.html b/pelican_theme_teckids/templates/base.html similarity index 100% rename from templates/base.html rename to pelican_theme_teckids/templates/base.html diff --git a/templates/page.html b/pelican_theme_teckids/templates/page.html similarity index 100% rename from templates/page.html rename to pelican_theme_teckids/templates/page.html diff --git a/templates/page_text.html b/pelican_theme_teckids/templates/page_text.html similarity index 100% rename from templates/page_text.html rename to pelican_theme_teckids/templates/page_text.html diff --git a/templates/translations.html b/pelican_theme_teckids/templates/translations.html similarity index 100% rename from templates/translations.html rename to pelican_theme_teckids/templates/translations.html diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2f18402 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[tool.poetry] +name = "pelican-theme-teckids" +version = "0.0" +description = "Pelican theme for Teckids websites" +authors = ["Dominik George <dominik.george@teckids.org>"] +license = "CC-BY-SA" +exclude = ["**/.git"] + +[tool.poetry.dependencies] +python = ">2.0" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" -- GitLab