buku/setup.py

112 lines
3.0 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
2018-11-23 14:05:50 +08:00
import os
import re
2018-11-12 00:15:18 +05:30
import shutil
2018-03-23 20:19:10 +08:00
from setuptools import setup, find_packages
2018-11-23 14:05:50 +08:00
if os.path.isfile('buku'):
shutil.copyfile('buku', 'buku.py')
2018-11-12 00:15:18 +05:30
with open('buku.py', encoding='utf-8') as f:
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1) # type: ignore
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
tests_require = [
'attrs>=17.4.0',
'beautifulsoup4>=4.6.0',
2019-02-09 08:49:26 +08:00
'Click>=7.0',
'flake8>=3.4.1',
'hypothesis>=3.7.0',
2019-04-28 11:39:37 +08:00
'mypy-extensions==0.4.1',
'py>=1.5.0',
'pylint>=1.7.2',
'pytest-cov',
'pytest>=3.4.2',
2019-01-05 06:01:16 +05:30
'PyYAML>=4.2b1',
'setuptools>=41.0.1',
2018-10-29 21:32:35 +08:00
'vcrpy>=1.13.0',
2018-04-05 02:55:25 +05:30
]
2018-03-23 20:13:18 +08:00
server_require = [
'appdirs>=1.4.3',
2018-04-20 08:18:48 +08:00
'arrow>=0.12.1',
'beautifulsoup4>=4.5.3',
'cffi>=1.9.1',
2018-03-26 20:06:12 +08:00
'click>=6.7',
'Flask-Admin>=1.5.1',
2018-03-23 20:13:18 +08:00
'Flask-API>=0.6.9',
'Flask-Bootstrap>=3.3.7.1',
2018-03-26 20:06:12 +08:00
'flask-paginate>=0.5.1',
'flask-reverse-proxy-fix>=0.2.1',
2018-03-28 10:16:54 +08:00
'Flask-WTF>=0.14.2',
'Flask>=1.0.2',
'idna>=2.5',
'itsdangerous>=0.24',
'Jinja2>=2.10.1',
'MarkupSafe>=1.0',
'packaging>=16.8',
'pyasn1>=0.2.3',
'pycparser>=2.17',
2019-05-16 21:48:52 +08:00
'requests>=2.21.0',
'six>=1.10.0',
2019-05-16 21:48:52 +08:00
'urllib3>=1.25.2',
2018-03-23 20:13:18 +08:00
'Werkzeug>=0.11.15',
]
setup(
name='buku',
version=version,
2018-05-11 08:00:40 +05:30
description='Bookmark manager like a text-based mini-web.',
long_description=long_description,
2018-05-09 10:32:47 +08:00
long_description_content_type="text/markdown",
author='Arun Prakash Jana',
author_email='engineerarun@gmail.com',
url='https://github.com/jarun/buku',
license='GPLv3',
2019-04-28 20:22:56 +05:30
python_requires='>=3.5', # requires pip>=9.0.0
platforms=['any'],
py_modules=['buku'],
2018-08-06 15:05:02 +08:00
install_requires=[
'beautifulsoup4>=4.4.1',
'certifi',
'cryptography>=1.2.3',
2018-12-13 00:17:56 +05:30
'urllib3>=1.23',
2018-08-06 15:05:02 +08:00
'html5lib>=1.0.1',
],
packages=find_packages(exclude=['tests']),
2018-03-23 20:19:10 +08:00
include_package_data=True,
entry_points={
'console_scripts': ['buku=buku:main', 'bukuserver=bukuserver.server:cli']
},
extras_require={
2019-02-09 08:57:21 +08:00
'tests': tests_require + server_require,
2018-03-23 20:13:18 +08:00
'server': server_require,
2018-05-09 10:54:31 +08:00
'packaging': ['twine>=1.11.0']
},
test_suite='tests',
tests_require=tests_require,
keywords='cli bookmarks tag utility',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
2018-11-12 00:15:18 +05:30
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
2019-04-28 20:22:56 +05:30
'Programming Language :: Python :: 3.7',
2019-10-16 23:19:05 +05:30
'Programming Language :: Python :: 3.8',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Utilities'
]
)