-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
72 lines (62 loc) · 1.92 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
import pathlib
import re
import sys
from os import system
from setuptools import setup, find_packages
# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
system('python setup.py sdist bdist_wheel')
system('twine upload dist/*')
sys.exit()
if sys.version_info < (3, 6, 0):
raise RuntimeError("ki requires Python 3.6.0+")
here = pathlib.Path(__file__).parent
long_description = (here / 'README.md').read_text('utf-8')
about = (here / 'src' / 'kindle' / '_version.py').read_text('utf-8')
def read_from_file(key):
return re.search(f"{key} = ['\"]([^'\"]+)['\"]", about).group(1)
setup(
name=read_from_file('__title__'),
version=read_from_file('__version__'),
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
description=read_from_file('__description__'),
url=read_from_file('__url__'),
license=read_from_file('__license__'),
author=read_from_file('__author__'),
author_email=read_from_file('__author_email__'),
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
],
install_requires=[
'beautifulsoup4',
'httpx==0.16.*',
'pbkdf2',
'Pillow',
'pyaes',
'rsa',
'xmltodict',
'amazon.ion'
],
extras_require={
'docs': [
'sphinx',
'sphinx_rtd_theme',
'sphinxcontrib-httpdomain',
'sphinx-autodoc-typehints'
]
},
python_requires='>=3.6',
keywords='Kindle',
long_description=long_description,
long_description_content_type='text/markdown',
project_urls={
"Source": "https://github.com/mkb79/kindle",
}
)