From 5675af4d42da7960d1d1e86524226429f04ec9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Mon, 14 Oct 2019 06:26:25 +0200 Subject: [PATCH] Fix jinja2 dependency jinja2 should include the `tojson` filter, which is only available in 2.9 (Released 2017-01-07, codename Derivation). --- requirements/base.in | 2 +- setup.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/requirements/base.in b/requirements/base.in index 123eb5a..8b547a6 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -1,5 +1,5 @@ appdirs click>=7.0 click_repl -jinja2 +jinja2>=2.9 pyyaml>=4.2b1 diff --git a/setup.py b/setup.py index d6467c5..2ec0999 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,11 @@ with io.open(os.path.join(here, "README.rst"), "rt", encoding="utf8") as f: about = {} with io.open(os.path.join(here, "tutor", "__about__.py"), "rt", encoding="utf-8") as f: 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( name="tutor-openedx", @@ -30,7 +35,7 @@ setup( packages=find_packages(exclude=["tests*"]), include_package_data=True, 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"]}, classifiers=[ "Development Status :: 5 - Production/Stable",