buku/setup.py

97 lines
2.6 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
2018-11-23 00:05:50 -06:00
import os
import re
2018-11-11 12:45:18 -06:00
import shutil
2018-03-23 07:19:10 -05:00
from setuptools import setup, find_packages
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
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',
'flake8>=3.4.1',
'hypothesis>=3.7.0',
2019-04-27 22:39:37 -05:00
'mypy-extensions==0.4.1',
'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',
'setuptools>=41.0.1',
2018-10-29 08:32:35 -05:00
'vcrpy>=1.13.0',
2018-04-04 16:25:25 -05:00
]
2018-03-23 07:13:18 -05:00
server_require = [
2018-04-19 19:18:48 -05:00
'arrow>=0.12.1',
2018-03-26 07:06:12 -05:00
'click>=6.7',
Feature/server (#289) * new: dev: version flag fix: dev: pylint error * chg: dev: sort route !cosmetic * new: dev: custom BaseModelView for buku bookmark * new: dev: formatted entry * new: dev: url render mode * new: dev: bookmark edit !wip * chg: dev: use existing form for bookmark * chg: dev: form name !refactor * new: dev: enable details views * new: dev: views module * new: dev: tag model view * chg: dev: only split page_size defined * chg: dev: use SelectMultipleField * fix: dev: Bookmark tags choices * chg dev: configure tags * chg: dev: tag edit form !wip * chg: dev: update bookmark model * chg: dev: remove unused function * new: dev: add flask wtf and admin * chg: dev: use SimpleNamespace instead namedtuple * new: dev: delete tags feature * new: dev: chatty parameter for delete_tag_at_index * fix: dev: skip confirmation when deleting tag * fix: dev: when update bookmark model * new: dev: update tag * chg: dev: use parse_tags method * new: dev: select2 field for tagsfield * chg: dev: remove unused code * fix: dev: syntax * fix: dev: update bookmark model * chg: dev: change api based on flask-api * fix: dev: new tags on tag_detail PUT * chg: dev: raise error when parsing failed * chg: dev: move server required package * new: dev: create_model * chg: dev: override abstract method model view class * chg: dev: delete model for bookmark * fix: dev: pylint ignore !cosmetic * new: dev: filter for tag * chg: dev: more filter for TagModel * new: dev: new filter for tag model * chg: dev: deduplicate filter * fix: dev: pylint !cosmetic * chg: dev: generalize tag, bookmark filter * chg: dev: add filters for bookmark * fix: dev: not equal filter * new: dev: url basic filter * chg: dev: configure bookmark model view * chg: dev: reorder bookmark view method * new: dev: tags number filter * chg: dev: bookmark url with unknown scheme * new: dev: network handle api * new: dev: modal edit/create for bookmark * chg: dev: link tag bookmark tag search * fix: dev: empty tag contain search * chg: dev: buku search option * new: dev: buku search to filter * chg: dev: front page search * chg: dev: move Statistic page to views module * fix: dev: bookmark search * new: dev: title filter * fix: dev: statistic label * fix: dev: link on statistic page * chg: dev: strip search value * fix: dev: bookmark entry fix * fix: dev: netloc modal on * fix: dev: pylint !cosmetic * chg: dev: remove duplicate package * chg: dev: move admin to root * fix: dev: link on statistic page * chg: dev: pin pyyaml package
2018-06-28 09:04:35 -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',
2018-03-27 21:16:54 -05:00
'Flask-WTF>=0.14.2',
2018-03-23 07:13:18 -05:00
'Flask>=0.12',
2018-12-12 12:47:56 -06:00
'requests>=2.20.0',
2018-03-23 07:13:18 -05:00
'Werkzeug>=0.11.15',
]
setup(
name='buku',
version=version,
2018-05-10 21:30:40 -05:00
description='Bookmark manager like a text-based mini-web.',
long_description=long_description,
2018-05-08 21:32:47 -05: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 09:52:56 -05:00
python_requires='>=3.5', # requires pip>=9.0.0
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',
],
packages=find_packages(exclude=['tests']),
2018-03-23 07:19:10 -05:00
include_package_data=True,
entry_points={
'console_scripts': ['buku=buku:main', 'bukuserver=bukuserver.server:cli']
},
extras_require={
'tests': tests_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']
},
test_suite='tests',
tests_require=tests_require,
keywords='cli bookmarks tag utility',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
2018-11-11 12:45:18 -06:00
'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 09:52:56 -05:00
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Utilities'
]
)