From feb0a54bf19ab12b3350bfc37afe9dfaadc5fc01 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 26 Jul 2024 04:32:50 +0300 Subject: [PATCH] Add `setup.cfg` and `setup.py` Mostly to list required and optional dependencies. --- setup.cfg | 14 ++++++++++++++ setup.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 setup.cfg create mode 100755 setup.py diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6b02812 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,14 @@ +[bdist_wheel] +universal = 1 + +[easy_install] +optimize = 2 + +[egg_info] +tag_build = +tag_date = 0 +tag_svn_revision = 0 + +[flake8] +exclude = .git + diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..e872dc6 --- /dev/null +++ b/setup.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python + +from os.path import abspath, dirname, join +from setuptools import setup +import sys + +setup( + name='bookmarks_db', + version='5.3.1', + description='Bookmarks database and Internet robot', + long_description=open('README', 'r').read(), + long_description_content_type="text/plain", + author='Oleg Broytman', + author_email='phd@phdru.name', + url='https://phdru.name/Software/Python/', + license='GPL', + keywords=['web', 'browser', 'bookmarks', 'robot'], + platforms='Any', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + ], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + install_requires=[ + 'm_lib.full>=1.0', + ], + extras_require={ + 'html': ['beautifulsoup4', 'lxml'], + 'requests': ['requests', 'requests-ftp'], + }, +) -- 2.39.5