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