2016-11-06 12:44:44 -06:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import re
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
2017-12-02 10:04:58 -06:00
|
|
|
if sys.version_info < (3, 4):
|
|
|
|
print('ERROR: Buku requires at least Python 3.4 to run.')
|
2016-11-06 12:44:44 -06:00
|
|
|
sys.exit(1)
|
|
|
|
|
2016-11-30 02:29:54 -06:00
|
|
|
with open('buku.py', encoding='utf-8') as f:
|
2016-11-06 12:44:44 -06:00
|
|
|
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1)
|
|
|
|
|
|
|
|
with open('README.md', encoding='utf-8') as f:
|
|
|
|
long_description = f.read()
|
|
|
|
|
2017-06-30 06:59:19 -05:00
|
|
|
tests_require = [
|
2018-04-04 16:25:25 -05:00
|
|
|
'pytest-cov', 'hypothesis>=3.7.0', 'py>=1.5.0',
|
2018-04-01 06:44:44 -05:00
|
|
|
'beautifulsoup4>=4.6.0', 'flake8>=3.4.1', 'pylint>=1.7.2'
|
2018-04-04 16:25:25 -05:00
|
|
|
]
|
|
|
|
if sys.version_info.major == 3 and sys.version_info.minor == 6:
|
|
|
|
tests_require.append('pytest>=3.4.2,!=3.5.0')
|
|
|
|
else:
|
|
|
|
tests_require.append('pytest>=3.4.2')
|
|
|
|
|
2017-03-27 12:01:57 -05:00
|
|
|
|
2018-03-23 07:13:18 -05:00
|
|
|
server_require = [
|
|
|
|
'Flask-API>=0.6.9',
|
|
|
|
'Flask-Bootstrap>=3.3.7.1',
|
|
|
|
'Flask>=0.12',
|
|
|
|
'requests>=2.18.4',
|
|
|
|
'Werkzeug>=0.11.15',
|
|
|
|
]
|
|
|
|
|
2016-11-06 12:44:44 -06:00
|
|
|
setup(
|
|
|
|
name='buku',
|
|
|
|
version=version,
|
2018-03-05 20:08:47 -06:00
|
|
|
description='Command-line bookmark manager with browser integration.',
|
2016-11-06 12:44:44 -06:00
|
|
|
long_description=long_description,
|
|
|
|
author='Arun Prakash Jana',
|
|
|
|
author_email='engineerarun@gmail.com',
|
|
|
|
url='https://github.com/jarun/Buku',
|
|
|
|
license='GPLv3',
|
|
|
|
platforms=['any'],
|
|
|
|
py_modules=['buku'],
|
|
|
|
entry_points={
|
2018-03-23 07:13:18 -05:00
|
|
|
'console_scripts': ['buku=buku:main', 'buku-api=api.server:cli']
|
2016-11-06 12:44:44 -06:00
|
|
|
},
|
|
|
|
extras_require={
|
2016-11-21 11:12:58 -06:00
|
|
|
'HTTP': ['urllib3'],
|
2016-11-06 12:44:44 -06:00
|
|
|
'CRYPTO': ['cryptography'],
|
2016-11-21 11:12:58 -06:00
|
|
|
'HTML': ['beautifulsoup4'],
|
2017-03-27 12:01:57 -05:00
|
|
|
'tests': tests_require,
|
2018-03-23 07:13:18 -05:00
|
|
|
'server': server_require,
|
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',
|
|
|
|
'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.4',
|
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-12-02 10:04:58 -06:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2016-11-06 12:44:44 -06:00
|
|
|
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
|
|
|
|
'Topic :: Utilities'
|
|
|
|
]
|
|
|
|
)
|