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