forked from PreTeXtBook/pretext-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (42 loc) · 1.29 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
import setuptools
with open("README.md", "r") as readme_file:
LONG_DESCRIPTION = readme_file.read()
with open("pretext/static/VERSION", "r") as version_file:
VERSION = version_file.read().strip()
with open(".python-version") as mpv_file:
MINIMUM_PYTHON_VERSION = mpv_file.read().strip()
setuptools.setup(
name="pretextbook",
version=VERSION,
author="PreTeXtBook.org",
author_email="[email protected]",
description="A package for authoring and building PreTeXt documents.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
install_requires=[
'lxml',
'python-slugify',
'requests',
'watchdog',
'GitPython',
'click>=7.0',
"pdfCropMargins",
"click-logging",
],
url="https://github.com/PreTeXtBook/pretext-cli",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=f">={MINIMUM_PYTHON_VERSION}",
entry_points={
'console_scripts': [
'pretext = pretext.cli:main',
],
},
package_data = {
'pretext': ['static/*','static/*/*','static/*/*/*'],
},
)