2019-01-22 20:25:04 +00:00
|
|
|
import io
|
|
|
|
import os
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
with io.open(os.path.join(here, "README.rst"), "rt", encoding="utf8") as f:
|
|
|
|
readme = f.read()
|
|
|
|
|
Fix version information in bundle
`./dist/tutor --version` raises an error:
Traceback (most recent call last):
File "main", line 4, in <module>
File "tutor/cli.py", line 21, in main
File "click/core.py", line 764, in __call__
File "click/core.py", line 716, in main
File "click/core.py", line 641, in make_context
File "click/core.py", line 1089, in parse_args
File "click/core.py", line 940, in parse_args
File "click/core.py", line 1477, in handle_parse_result
File "click/core.py", line 96, in invoke_param_callback
File "click/decorators.py", line 270, in callback
RuntimeError: Could not determine version
[1659] Failed to execute script main
To address this, we pass the version value directly to click.
This is for issue #156.
2019-02-10 17:31:48 +00:00
|
|
|
about = {}
|
|
|
|
with io.open(os.path.join(here, "tutor", "__about__.py"), "rt", encoding="utf-8") as f:
|
|
|
|
exec(f.read(), about)
|
|
|
|
|
2019-01-22 20:25:04 +00:00
|
|
|
setup(
|
|
|
|
name="tutor-openedx",
|
Fix version information in bundle
`./dist/tutor --version` raises an error:
Traceback (most recent call last):
File "main", line 4, in <module>
File "tutor/cli.py", line 21, in main
File "click/core.py", line 764, in __call__
File "click/core.py", line 716, in main
File "click/core.py", line 641, in make_context
File "click/core.py", line 1089, in parse_args
File "click/core.py", line 940, in parse_args
File "click/core.py", line 1477, in handle_parse_result
File "click/core.py", line 96, in invoke_param_callback
File "click/decorators.py", line 270, in callback
RuntimeError: Could not determine version
[1659] Failed to execute script main
To address this, we pass the version value directly to click.
This is for issue #156.
2019-02-10 17:31:48 +00:00
|
|
|
version=about["__version__"],
|
2019-02-20 12:52:25 +00:00
|
|
|
url="https://docs.tutor.overhang.io/",
|
2019-01-22 20:25:04 +00:00
|
|
|
project_urls={
|
2019-02-20 12:52:25 +00:00
|
|
|
"Documentation": "https://docs.tutor.overhang.io/",
|
2019-01-22 20:25:04 +00:00
|
|
|
"Code": "https://github.com/regisb/tutor",
|
|
|
|
"Issue tracker": "https://github.com/regisb/tutor/issues",
|
2019-02-20 12:52:25 +00:00
|
|
|
"Community": "https://discuss.overhang.io",
|
2019-01-22 20:25:04 +00:00
|
|
|
},
|
|
|
|
license="AGPLv3",
|
|
|
|
author="Régis Behmo",
|
|
|
|
author_email="regis@behmo.com",
|
|
|
|
description="The Open edX distribution for the busy system administrator",
|
|
|
|
long_description=readme,
|
|
|
|
packages=["tutor"],
|
|
|
|
include_package_data=True,
|
2019-03-24 21:44:34 +00:00
|
|
|
python_requires=">=3.5",
|
2019-01-22 20:25:04 +00:00
|
|
|
install_requires=[
|
|
|
|
"appdirs",
|
2019-02-13 16:14:10 +00:00
|
|
|
"click>=7.0",
|
2019-01-22 20:25:04 +00:00
|
|
|
"click_repl",
|
|
|
|
"jinja2",
|
|
|
|
"kubernetes",
|
2019-03-27 14:55:09 +00:00
|
|
|
"pyyaml>=4.2b1",
|
2019-01-22 20:25:04 +00:00
|
|
|
],
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
|
|
|
'tutor=tutor.cli:main',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
2019-03-24 21:44:34 +00:00
|
|
|
"Programming Language :: Python :: 3.5",
|
2019-01-22 20:25:04 +00:00
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
],
|
|
|
|
)
|