-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (74 loc) · 2.16 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
"""
hon
=====
Hon (本) is a tool for creating a book from markdown files.
"""
import io
import re
from setuptools import setup, find_packages
_version_re = re.compile(r'__version__\s+=\s+(.*)')
readme = ''
# with io.open('README.rst', 'rt', encoding='utf8') as f:
# readme = f.read()
with io.open('hon/__init__.py', 'rt', encoding='utf8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
setup(
name='hon',
version=version,
url='http://github.com/swquinn/hon/',
author='Sean Quinn',
description='A tool for creating books from markdown files.',
long_description=readme,
packages=find_packages(include=['hon', 'hon.*']),
include_package_data=True,
zip_safe=False,
platforms='any',
python_requires='>=3.6',
install_requires=[
'blinker',
'click>=7.1.2',
'epubcheck>=0.4.2',
'jinja2>=2.11.3',
'flask>=1.1.2',
'markdown>=3.3.3',
'pydash>=4.9.2',
'pyyaml>=5.4.1',
'watchdog>=2.0.1',
'weasyprint>=52.2',
],
extras_require={
'dotenv': [],
'dev': [
'pytest>=6.2.2',
'pytest-mock>=3.5.1',
'coverage>=5.4',
'tox',
],
'docs': []
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules'
],
entry_points={
'console_scripts': [
'hon=hon.cli:main'
],
# 'hon.commands': [
# 'build=hon.commands:build_command',
# 'clean=hon.commands:clean_command',
# 'init=hon.commands:init_command',
# 'serve=hon.commands:serve_command',
# 'test=hon.commands:test_command',
# 'watch=hon.commands:watch_command',
# ]
}
)