From 46c67e3c165c5b04d5b019935aad45f4609ca320 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Thu, 18 Jan 2024 21:14:48 +0000 Subject: [PATCH] setup.py.back and consequent files --- package_generator.sh | 10 +++++++ setup.cfg | 48 ++++++++++++++++++++++++++++++++++ setup.py | 2 ++ setup.py.bak | 62 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 package_generator.sh create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 setup.py.bak diff --git a/package_generator.sh b/package_generator.sh new file mode 100644 index 0000000..37c1386 --- /dev/null +++ b/package_generator.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# The following commands are used to +# prepare a package file for Slixfeed. +# +# Thank you to graingert and grym +# from #python on irc.libera.chat + +pipx run setup-py-upgrade . +ini2toml setup.cfg > pyproject.toml diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..8b4f544 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,48 @@ +[metadata] +name = Slixfeed +version = 1.0 +description = RSS news bot for XMPP +long_description = Slixfeed is a news aggregator bot for online news feeds. This program is primarily designed for XMPP +author = Schimon Zachary +author_email = sch@fedora.email +url = https://gitgud.io/sjehuda/slixfeed +license = MIT +platforms = any +classifiers = + Framework :: slixmpp + 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 = + atom + bot + chat + im + jabber + news + rdf + rss + syndication + xmpp + +[options] +install_requires = + aiohttp + bs4 + feedparser + lxml + slixmpp + +[options.extras_require] +export as markdown = html2text +export as pdf = pdfkit +readable html = readability-lxml diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8bf1ba9 --- /dev/null +++ b/setup.py @@ -0,0 +1,2 @@ +from setuptools import setup +setup() diff --git a/setup.py.bak b/setup.py.bak new file mode 100644 index 0000000..e38218f --- /dev/null +++ b/setup.py.bak @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2024 Schiomn Zachary +# All Rights Reserved +# +# This software is licensed as described in the README.rst and LICENSE +# file, which you should have received as part of this distribution. + +from distutils.core import setup + +setup( + name='Slixfeed', + version='1.0', + description='RSS news bot for XMPP', + long_description='Slixfeed is a news aggregator bot for online news feeds. This program is primarily designed for XMPP', + author='Schimon Zachary', + author_email='sch@fedora.email', + url='https://gitgud.io/sjehuda/slixfeed', + license='MIT', + platforms=['any'], + extras_require={ + 'Export as Markdown': ['html2text'], + 'Export as PDF': ['pdfkit'], + 'Readable HTML': ['readability-lxml'] + }, + install_requires=[ + 'aiohttp', + 'bs4', + 'feedparser', + 'lxml', + 'slixmpp' + ], + classifiers=[ + 'Framework :: slixmpp', + '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=[ + 'atom', + 'bot', + 'chat', + 'im', + 'jabber', + 'news', + 'rdf', + 'rss', + 'syndication', + 'xmpp' + ], +) +