0c7d5cfe97
* new: test: additional data test set. * new: test: test on non integer. * chg: test: rename function for consistency. * chg: test: change normalize function. * chg: test: change max value for high var * fix: test: use normalized index * fix: test: remove 'max' as valid value * chg: test: use hypothesis to test delete_rec index * new: test: add hypothesis package * chg: test: use hypothesis to test delete_rec index * chg: test: add hypothesis to travis * chg: test: limit integer test. * chg: dev: remove unused test * fix: test: fix test on non integer. * new: test: add big integer test on range in delete_rec method. * fix: test: fix high low diff * fix: test: skip only for python<3.5 * chg: test: change test_delete_rec_range_and_big_int - remove skip - use constant value instead sys.maxsize - fix assert * chg: test: use setup.py to manage test package instead travis * chg: test: add tests extras on setup.py * chg: test: change install test package. * fix: test: fix whitespace * fix: test: MAX_SQLITE_INT value * chg: test: skip test for python<3.5 * fix: test: fix import * chg: test: skip Impossible test * chg: test: simplify test_delete_rec_on_non_interger
60 lines
1.8 KiB
Python
60 lines
1.8 KiB
Python
#!/usr/bin/env python3
|
|
|
|
import re
|
|
import sys
|
|
|
|
from setuptools import setup
|
|
|
|
if sys.version_info < (3, 3):
|
|
print('ERROR: Buku requires at least Python 3.3 to run.')
|
|
sys.exit(1)
|
|
|
|
with open('buku.py', encoding='utf-8') as f:
|
|
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1)
|
|
|
|
with open('README.md', encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
tests_require = ['pytest-cov', 'pytest-catchlog', 'hypothesis==3.7.0'],
|
|
|
|
setup(
|
|
name='buku',
|
|
version=version,
|
|
description='Powerful command-line bookmark manager. Your mini web!',
|
|
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={
|
|
'console_scripts': ['buku=buku:main']
|
|
},
|
|
extras_require={
|
|
'HTTP': ['urllib3'],
|
|
'CRYPTO': ['cryptography'],
|
|
'HTML': ['beautifulsoup4'],
|
|
'REQUESTS': ['requests'],
|
|
'tests': tests_require,
|
|
},
|
|
test_suite='tests',
|
|
tests_require=tests_require,
|
|
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.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
|
|
'Topic :: Utilities'
|
|
]
|
|
)
|