forked from standardebooks/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (69 loc) · 2.39 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
#!/usr/bin/env python3
"""
The setup script used to package the se library and executables.
To build the project, enter the project's root directory and do:
python3 setup.py bdist_wheel
After the project has been built, you can install it locally:
pip3 install dist/standardebooks-*.whl
To upload the build to pypi, twine is required:
pip3 install twine
"""
from os import path
from setuptools import setup, find_packages
import se
# Get the long description from the README file
def _get_file_contents(filename):
"""
Helper function to get README contents
"""
with open(filename, encoding="utf-8") as file:
return file.read()
setup(
name="standardebooks",
version=se.VERSION,
description="The toolset used to produce Standard Ebooks epub ebooks.",
long_description=_get_file_contents(path.join(path.abspath(path.dirname(__file__)), "README.md")),
long_description_content_type="text/markdown",
url="https://standardebooks.org",
author="Standard Ebooks",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5"
],
keywords="ebooks epub",
packages=find_packages(),
python_requires=">=3.5", # The latest version installed by default on Ubuntu 16.04 is 3.5.2
install_requires=[
"beautifulsoup4==4.6.0",
"cssselect==1.0.1",
"ftfy==5.3.0",
"gitpython==2.1.5",
"lxml==4.2.3",
"psutil==5.5.0",
"pyhyphen==3.0.1",
# "pyopenssl>=19.0.0", # Required to allows the `requests` package to use https on Mac OSX, but segfaults when installed on Ubuntu
"python-magic==0.4.13",
"regex==2017.7.26",
"requests>=2.20.0",
"roman==2.0.0",
"smartypants==2.0.0",
"titlecase==0.11.0",
"termcolor==1.1.0",
"terminaltables==3.1.0"
],
package_data={
"se": ["data/*", "data/templates/*", "data/templates/META-INF/*", "completions/*", "completions/*/*"]
},
entry_points={
"console_scripts": [
"se = se.executables:main",
],
},
project_urls={
"Source": "https://github.com/standardebooks/tools/",
}
)