From 3ac005708d1ba8cec46b937147fc5ec97f2739c1 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Tue, 12 Nov 2024 15:31:05 +0200 Subject: [PATCH] Add installation instruction file; Order directories. --- pyproject.toml | 61 ++++++++++++++++++ __init__.py => rivista/__init__.py | 0 __main__.py => rivista/__main__.py | 0 {assets => rivista/assets}/css/stylesheet.css | 0 .../assets}/graphic/akregator.svg | 0 .../assets}/graphic/leechcraft.png | Bin .../assets}/graphic/leechcraft.svg | 0 .../assets}/graphic/liferea.svg | 0 {assets => rivista/assets}/graphic/raven.svg | 0 .../assets}/graphic/rssguard.png | Bin {assets => rivista/assets}/graphic/rssowl.svg | 0 {assets => rivista/assets}/graphic/tickr.png | Bin {assets => rivista/assets}/graphic/xmpp.svg | 0 {assets => rivista/assets}/img/favicon.ico | Bin {assets => rivista/assets}/json/README | 0 .../assets}/script/iso8601_to_utc.js | 0 .../assets}/script/marked.min.js | 0 .../assets}/script/parse_markdown.js | 0 .../assets}/script/postprocess.js | 0 {assets => rivista/assets}/settings.toml | 0 {assets => rivista/assets}/xsl/atom.xsl | 0 .../assets}/xsl/atom_as_xhtml.xsl | 0 .../assets}/xsl/extract-filename.xsl | 0 {assets => rivista/assets}/xsl/metadata.xsl | 0 {assets => rivista/assets}/xsl/opml.xsl | 0 .../assets}/xsl/opml_as_xhtml.xsl | 0 {assets => rivista/assets}/xsl/stylesheet.xsl | 0 ...all_in_one_still_does_not_work_with_ff.xsl | 0 .../assets}/xsl/transform-filesize.xsl | 0 config.py => rivista/config.py | 0 {gmi => rivista/gmi}/index.py | 0 {gmi => rivista/gmi}/markdown.py | 0 {gmi => rivista/gmi}/post.py | 0 {html => rivista/html}/gmi.py | 0 {http => rivista/http}/instance.py | 0 {json => rivista/json}/index.py | 0 {markdown => rivista/markdown}/html.py | 0 .../59d860ab-d7c8-477c-bb4b-86924485cbbb.png | Bin .../screenshot}/berlin-xmpp-meetup.png | Bin ...ersations-author-daniel-gultsch-OqjaQh.png | Bin .../screenshot}/selection.png | Bin version.py => rivista/version.py | 0 {xml => rivista/xml}/atom.py | 0 {xml => rivista/xml}/opml.py | 0 {xml => rivista/xml}/xhtml.py | 0 {xml => rivista/xml}/xslt.py | 0 {xmpp => rivista/xmpp}/instance.py | 0 {xmpp => rivista/xmpp}/utilities.py | 0 {xmpp => rivista/xmpp}/xep_0060.py | 0 49 files changed, 61 insertions(+) create mode 100644 pyproject.toml rename __init__.py => rivista/__init__.py (100%) rename __main__.py => rivista/__main__.py (100%) rename {assets => rivista/assets}/css/stylesheet.css (100%) rename {assets => rivista/assets}/graphic/akregator.svg (100%) rename {assets => rivista/assets}/graphic/leechcraft.png (100%) rename {assets => rivista/assets}/graphic/leechcraft.svg (100%) rename {assets => rivista/assets}/graphic/liferea.svg (100%) rename {assets => rivista/assets}/graphic/raven.svg (100%) rename {assets => rivista/assets}/graphic/rssguard.png (100%) rename {assets => rivista/assets}/graphic/rssowl.svg (100%) rename {assets => rivista/assets}/graphic/tickr.png (100%) rename {assets => rivista/assets}/graphic/xmpp.svg (100%) rename {assets => rivista/assets}/img/favicon.ico (100%) rename {assets => rivista/assets}/json/README (100%) rename {assets => rivista/assets}/script/iso8601_to_utc.js (100%) rename {assets => rivista/assets}/script/marked.min.js (100%) rename {assets => rivista/assets}/script/parse_markdown.js (100%) rename {assets => rivista/assets}/script/postprocess.js (100%) rename {assets => rivista/assets}/settings.toml (100%) rename {assets => rivista/assets}/xsl/atom.xsl (100%) rename {assets => rivista/assets}/xsl/atom_as_xhtml.xsl (100%) rename {assets => rivista/assets}/xsl/extract-filename.xsl (100%) rename {assets => rivista/assets}/xsl/metadata.xsl (100%) rename {assets => rivista/assets}/xsl/opml.xsl (100%) rename {assets => rivista/assets}/xsl/opml_as_xhtml.xsl (100%) rename {assets => rivista/assets}/xsl/stylesheet.xsl (100%) rename {assets => rivista/assets}/xsl/stylesheet_all_in_one_still_does_not_work_with_ff.xsl (100%) rename {assets => rivista/assets}/xsl/transform-filesize.xsl (100%) rename config.py => rivista/config.py (100%) rename {gmi => rivista/gmi}/index.py (100%) rename {gmi => rivista/gmi}/markdown.py (100%) rename {gmi => rivista/gmi}/post.py (100%) rename {html => rivista/html}/gmi.py (100%) rename {http => rivista/http}/instance.py (100%) rename {json => rivista/json}/index.py (100%) rename {markdown => rivista/markdown}/html.py (100%) rename {screenshot => rivista/screenshot}/59d860ab-d7c8-477c-bb4b-86924485cbbb.png (100%) rename {screenshot => rivista/screenshot}/berlin-xmpp-meetup.png (100%) rename {screenshot => rivista/screenshot}/let-s-talk-about-xmpp-tricks-with-conversations-author-daniel-gultsch-OqjaQh.png (100%) rename {screenshot => rivista/screenshot}/selection.png (100%) rename version.py => rivista/version.py (100%) rename {xml => rivista/xml}/atom.py (100%) rename {xml => rivista/xml}/opml.py (100%) rename {xml => rivista/xml}/xhtml.py (100%) rename {xml => rivista/xml}/xslt.py (100%) rename {xmpp => rivista/xmpp}/instance.py (100%) rename {xmpp => rivista/xmpp}/utilities.py (100%) rename {xmpp => rivista/xmpp}/xep_0060.py (100%) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9eb2618 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "Rivista" +version = "1.0" +description = "A private journal publication and a content management system for XMPP" +authors = [{name = "Schimon Zachary", email = "sch@fedora.email"}] +license = {text = "MIT"} +classifiers = [ + "Framework :: slixmpp", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python", + "Programming Language :: Python :: 3.10", + "Topic :: Internet :: Extensible Messaging and Presence Protocol (XMPP)", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary", + "Topic :: Internet :: XMPP", + "Topic :: Office/Business :: News/Diary", +] +keywords = [ + "atom", + "blog", + "cms", + "jabber", + "journal", + "news", + "ssg", + "syndication", + "xml", + "xmpp", +] + +dependencies = [ + "beautifulsoup4", + "fastapi", + "lxml", + "markdown", +# "markdown-text-clean", +# "md2gemini", + "python-dateutil", + "slixmpp", + "tomli", # Python 3.10 + "uvicorn", +] + +[project.urls] +Homepage = "https://schapps.woodpeckersnest.eu/rivista/" +Repository = "https://git.xmpp-it.net/sch/Rivista" +Issues = "https://git.xmpp-it.net/sch/Rivista/issues" + +[project.scripts] +rivista = "rivista.__main__:main" + +[tool.setuptools] +platforms = ["any"] + +[tool.setuptools.package-data] +"*" = ["*.toml"] diff --git a/__init__.py b/rivista/__init__.py similarity index 100% rename from __init__.py rename to rivista/__init__.py diff --git a/__main__.py b/rivista/__main__.py similarity index 100% rename from __main__.py rename to rivista/__main__.py diff --git a/assets/css/stylesheet.css b/rivista/assets/css/stylesheet.css similarity index 100% rename from assets/css/stylesheet.css rename to rivista/assets/css/stylesheet.css diff --git a/assets/graphic/akregator.svg b/rivista/assets/graphic/akregator.svg similarity index 100% rename from assets/graphic/akregator.svg rename to rivista/assets/graphic/akregator.svg diff --git a/assets/graphic/leechcraft.png b/rivista/assets/graphic/leechcraft.png similarity index 100% rename from assets/graphic/leechcraft.png rename to rivista/assets/graphic/leechcraft.png diff --git a/assets/graphic/leechcraft.svg b/rivista/assets/graphic/leechcraft.svg similarity index 100% rename from assets/graphic/leechcraft.svg rename to rivista/assets/graphic/leechcraft.svg diff --git a/assets/graphic/liferea.svg b/rivista/assets/graphic/liferea.svg similarity index 100% rename from assets/graphic/liferea.svg rename to rivista/assets/graphic/liferea.svg diff --git a/assets/graphic/raven.svg b/rivista/assets/graphic/raven.svg similarity index 100% rename from assets/graphic/raven.svg rename to rivista/assets/graphic/raven.svg diff --git a/assets/graphic/rssguard.png b/rivista/assets/graphic/rssguard.png similarity index 100% rename from assets/graphic/rssguard.png rename to rivista/assets/graphic/rssguard.png diff --git a/assets/graphic/rssowl.svg b/rivista/assets/graphic/rssowl.svg similarity index 100% rename from assets/graphic/rssowl.svg rename to rivista/assets/graphic/rssowl.svg diff --git a/assets/graphic/tickr.png b/rivista/assets/graphic/tickr.png similarity index 100% rename from assets/graphic/tickr.png rename to rivista/assets/graphic/tickr.png diff --git a/assets/graphic/xmpp.svg b/rivista/assets/graphic/xmpp.svg similarity index 100% rename from assets/graphic/xmpp.svg rename to rivista/assets/graphic/xmpp.svg diff --git a/assets/img/favicon.ico b/rivista/assets/img/favicon.ico similarity index 100% rename from assets/img/favicon.ico rename to rivista/assets/img/favicon.ico diff --git a/assets/json/README b/rivista/assets/json/README similarity index 100% rename from assets/json/README rename to rivista/assets/json/README diff --git a/assets/script/iso8601_to_utc.js b/rivista/assets/script/iso8601_to_utc.js similarity index 100% rename from assets/script/iso8601_to_utc.js rename to rivista/assets/script/iso8601_to_utc.js diff --git a/assets/script/marked.min.js b/rivista/assets/script/marked.min.js similarity index 100% rename from assets/script/marked.min.js rename to rivista/assets/script/marked.min.js diff --git a/assets/script/parse_markdown.js b/rivista/assets/script/parse_markdown.js similarity index 100% rename from assets/script/parse_markdown.js rename to rivista/assets/script/parse_markdown.js diff --git a/assets/script/postprocess.js b/rivista/assets/script/postprocess.js similarity index 100% rename from assets/script/postprocess.js rename to rivista/assets/script/postprocess.js diff --git a/assets/settings.toml b/rivista/assets/settings.toml similarity index 100% rename from assets/settings.toml rename to rivista/assets/settings.toml diff --git a/assets/xsl/atom.xsl b/rivista/assets/xsl/atom.xsl similarity index 100% rename from assets/xsl/atom.xsl rename to rivista/assets/xsl/atom.xsl diff --git a/assets/xsl/atom_as_xhtml.xsl b/rivista/assets/xsl/atom_as_xhtml.xsl similarity index 100% rename from assets/xsl/atom_as_xhtml.xsl rename to rivista/assets/xsl/atom_as_xhtml.xsl diff --git a/assets/xsl/extract-filename.xsl b/rivista/assets/xsl/extract-filename.xsl similarity index 100% rename from assets/xsl/extract-filename.xsl rename to rivista/assets/xsl/extract-filename.xsl diff --git a/assets/xsl/metadata.xsl b/rivista/assets/xsl/metadata.xsl similarity index 100% rename from assets/xsl/metadata.xsl rename to rivista/assets/xsl/metadata.xsl diff --git a/assets/xsl/opml.xsl b/rivista/assets/xsl/opml.xsl similarity index 100% rename from assets/xsl/opml.xsl rename to rivista/assets/xsl/opml.xsl diff --git a/assets/xsl/opml_as_xhtml.xsl b/rivista/assets/xsl/opml_as_xhtml.xsl similarity index 100% rename from assets/xsl/opml_as_xhtml.xsl rename to rivista/assets/xsl/opml_as_xhtml.xsl diff --git a/assets/xsl/stylesheet.xsl b/rivista/assets/xsl/stylesheet.xsl similarity index 100% rename from assets/xsl/stylesheet.xsl rename to rivista/assets/xsl/stylesheet.xsl diff --git a/assets/xsl/stylesheet_all_in_one_still_does_not_work_with_ff.xsl b/rivista/assets/xsl/stylesheet_all_in_one_still_does_not_work_with_ff.xsl similarity index 100% rename from assets/xsl/stylesheet_all_in_one_still_does_not_work_with_ff.xsl rename to rivista/assets/xsl/stylesheet_all_in_one_still_does_not_work_with_ff.xsl diff --git a/assets/xsl/transform-filesize.xsl b/rivista/assets/xsl/transform-filesize.xsl similarity index 100% rename from assets/xsl/transform-filesize.xsl rename to rivista/assets/xsl/transform-filesize.xsl diff --git a/config.py b/rivista/config.py similarity index 100% rename from config.py rename to rivista/config.py diff --git a/gmi/index.py b/rivista/gmi/index.py similarity index 100% rename from gmi/index.py rename to rivista/gmi/index.py diff --git a/gmi/markdown.py b/rivista/gmi/markdown.py similarity index 100% rename from gmi/markdown.py rename to rivista/gmi/markdown.py diff --git a/gmi/post.py b/rivista/gmi/post.py similarity index 100% rename from gmi/post.py rename to rivista/gmi/post.py diff --git a/html/gmi.py b/rivista/html/gmi.py similarity index 100% rename from html/gmi.py rename to rivista/html/gmi.py diff --git a/http/instance.py b/rivista/http/instance.py similarity index 100% rename from http/instance.py rename to rivista/http/instance.py diff --git a/json/index.py b/rivista/json/index.py similarity index 100% rename from json/index.py rename to rivista/json/index.py diff --git a/markdown/html.py b/rivista/markdown/html.py similarity index 100% rename from markdown/html.py rename to rivista/markdown/html.py diff --git a/screenshot/59d860ab-d7c8-477c-bb4b-86924485cbbb.png b/rivista/screenshot/59d860ab-d7c8-477c-bb4b-86924485cbbb.png similarity index 100% rename from screenshot/59d860ab-d7c8-477c-bb4b-86924485cbbb.png rename to rivista/screenshot/59d860ab-d7c8-477c-bb4b-86924485cbbb.png diff --git a/screenshot/berlin-xmpp-meetup.png b/rivista/screenshot/berlin-xmpp-meetup.png similarity index 100% rename from screenshot/berlin-xmpp-meetup.png rename to rivista/screenshot/berlin-xmpp-meetup.png diff --git a/screenshot/let-s-talk-about-xmpp-tricks-with-conversations-author-daniel-gultsch-OqjaQh.png b/rivista/screenshot/let-s-talk-about-xmpp-tricks-with-conversations-author-daniel-gultsch-OqjaQh.png similarity index 100% rename from screenshot/let-s-talk-about-xmpp-tricks-with-conversations-author-daniel-gultsch-OqjaQh.png rename to rivista/screenshot/let-s-talk-about-xmpp-tricks-with-conversations-author-daniel-gultsch-OqjaQh.png diff --git a/screenshot/selection.png b/rivista/screenshot/selection.png similarity index 100% rename from screenshot/selection.png rename to rivista/screenshot/selection.png diff --git a/version.py b/rivista/version.py similarity index 100% rename from version.py rename to rivista/version.py diff --git a/xml/atom.py b/rivista/xml/atom.py similarity index 100% rename from xml/atom.py rename to rivista/xml/atom.py diff --git a/xml/opml.py b/rivista/xml/opml.py similarity index 100% rename from xml/opml.py rename to rivista/xml/opml.py diff --git a/xml/xhtml.py b/rivista/xml/xhtml.py similarity index 100% rename from xml/xhtml.py rename to rivista/xml/xhtml.py diff --git a/xml/xslt.py b/rivista/xml/xslt.py similarity index 100% rename from xml/xslt.py rename to rivista/xml/xslt.py diff --git a/xmpp/instance.py b/rivista/xmpp/instance.py similarity index 100% rename from xmpp/instance.py rename to rivista/xmpp/instance.py diff --git a/xmpp/utilities.py b/rivista/xmpp/utilities.py similarity index 100% rename from xmpp/utilities.py rename to rivista/xmpp/utilities.py diff --git a/xmpp/xep_0060.py b/rivista/xmpp/xep_0060.py similarity index 100% rename from xmpp/xep_0060.py rename to rivista/xmpp/xep_0060.py