Fix jinja2 dependency

jinja2 should include the `tojson` filter, which is only available in
2.9 (Released 2017-01-07, codename Derivation).
This commit is contained in:
Régis Behmo 2019-10-14 06:26:25 +02:00
parent 8d4f335716
commit 5675af4d42
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
appdirs appdirs
click>=7.0 click>=7.0
click_repl click_repl
jinja2 jinja2>=2.9
pyyaml>=4.2b1 pyyaml>=4.2b1

View File

@ -10,6 +10,11 @@ with io.open(os.path.join(here, "README.rst"), "rt", encoding="utf8") as f:
about = {} about = {}
with io.open(os.path.join(here, "tutor", "__about__.py"), "rt", encoding="utf-8") as f: with io.open(os.path.join(here, "tutor", "__about__.py"), "rt", encoding="utf-8") as f:
exec(f.read(), about) exec(f.read(), about)
requirements = []
with io.open(
os.path.join(here, "requirements", "base.in"), "rt", encoding="utf-8"
) as f:
requirements = [line.strip() for line in f]
setup( setup(
name="tutor-openedx", name="tutor-openedx",
@ -30,7 +35,7 @@ setup(
packages=find_packages(exclude=["tests*"]), packages=find_packages(exclude=["tests*"]),
include_package_data=True, include_package_data=True,
python_requires=">=3.5", python_requires=">=3.5",
install_requires=["appdirs", "click>=7.0", "click_repl", "jinja2", "pyyaml>=4.2b1"], install_requires=requirements,
entry_points={"console_scripts": ["tutor=tutor.commands.cli:main"]}, entry_points={"console_scripts": ["tutor=tutor.commands.cli:main"]},
classifiers=[ classifiers=[
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",