From 29833803ee77f62cc4bc21407d7b58d73a2ead56 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Fri, 5 Apr 2024 15:36:01 +0000 Subject: [PATCH] Add files license and pyproject. --- LICENSE | 21 ++++++++++++++ pyproject.toml | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 LICENSE create mode 100644 pyproject.toml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..221fb4b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Schimon Jehudah Zakai Zockaim Zachary + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..37be736 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,76 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "bukuxmpp" +version = "1.0" +description = "buku bot for XMPP" +authors = [{name = "Schimon Zachary", email = "sch@fedora.email"}] +license = {text = "MIT"} +classifiers = [ + "Framework :: bukuxmpp", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python", + "Programming Language :: Python :: 3.10", + "Topic :: Communications :: Chat", + "Topic :: Internet :: Extensible Messaging and Presence Protocol (XMPP)", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary", + "Topic :: Internet :: Instant Messaging", + "Topic :: Internet :: XMPP", + "Topic :: Office/Business :: News/Diary", +] +keywords = [ + "bot", + "buku", + "chat", + "im", + "jabber", + "xmpp", +] +# urls = {Homepage = "https://gitgud.io/sjehuda/buku-xmpp"} +dependencies = [ + "buku", + "tomli", # Python 3.10 + "tomli_w", + "slixmpp", + + # Optional dependencies + # listed here (testing) + "html2text", + "pdfkit", + # "pysocks", + "readability-lxml", + "xml2epub", +] + +[project.urls] +Homepage = "http://bukuxmpp.i2p/" +Repository = "https://gitgud.io/sjehuda/buku-xmpp" +Issues = "https://gitgud.io/sjehuda/buku-xmpp/issues" + + +[project.optional-dependencies] +file-export = ["html2text", "pdfkit", "xml2epub"] +proxy = ["pysocks"] +readability = ["readability-lxml"] + +# This section returns pep508-identifier error +# [project.optional-dependencies] +# "export as markdown" = ["html2text"] +# "export as pdf" = ["pdfkit"] +# "readable html" = ["readability-lxml"] + +# [project.readme] +# text = "buku-xmpp is a bookmark manager bot using buku. This program is primarily designed for XMPP" + +[project.scripts] +bukuxmpp = "bukuxmpp.__main__:main" + +[tool.setuptools] +platforms = ["any"] +[tool.setuptools.package-data] +"*" = ["*.ini", "*.csv", "*.toml", "*.svg"]