forked from AngelaRemolina/RunestoneComponents
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
79 lines (72 loc) · 2.77 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
# *********
# |docname|
# *********
from setuptools import setup, find_packages
from setuptools.command.install import install
from setuptools.command.develop import develop
from subprocess import check_call
import sys
with open("requirements.txt", "r", encoding="utf-8") as fh:
dependencies = [l.strip() for l in fh]
VERSION = "5.8.1"
# These pre-install hooks are useful to make sure any pre-requisite
# programs that are not pip installable are in place.
# class PreInstallCommand(install):
# def run(self):
# print("Running pre-install commands")
# check_call(["flummox"])
# install.run(self)
# class PreDevelopCommand(develop):
# def run(self):
# print("Running pre-develop commands")
# try:
# check_call(["flummox"])
# except:
# print("You will need to install flummox before proceeding")
# sys.exit(-1)
# develop.run(self)
setup(
name="runestone",
description="Sphinx extensions for writing interactive documents.",
version=VERSION,
author="Brad Miller",
author_email="[email protected]",
packages=find_packages(exclude=["*.*.test"]),
install_requires=dependencies,
python_requires=">=3.6",
include_package_data=True,
zip_safe=False,
package_dir={"runestone": "runestone"},
package_data={"": ["js/*.js", "css/*.css", "*.txt"]},
license="GPL",
url="https://github.com/RunestoneInteractive/RunestoneComponents",
download_url="https://github.com/RunestoneInteractive/RunestoneComponents/tarball/{}".format(
VERSION
),
# uncomment below to activate any pre-install hook checks
# cmdclass={"install": PreInstallCommand, "develop": PreDevelopCommand},
keywords=["runestone", "sphinx", "ebook", "oer", "education"], # arbitrary keywords
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"Environment :: Web Environment",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Education",
"Topic :: Text Processing :: Markup",
],
# data_files=[('common',['runestone/common/*']),
# ('project/template', ['newproject_copy_me/*'])
# ],
long_description=open("README.rst").read(),
long_description_content_type="text/x-rst",
entry_points={"console_scripts": ["runestone = runestone.__main__:cli"]},
)