diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6df9abd87..409fd5186 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,9 +15,9 @@ jobs: - python: 2.7 tox-env: py27-hawthorn_multisite - python: 3.5 - tox-env: py35-juniper - - python: 3.8 - tox-env: py38-juniper + tox-env: py35-juniper_community + - python: 3.5 + tox-env: py35-juniper_multisite - python: 3.8 tox-env: lint - python: 3.8 diff --git a/devsite/requirements/juniper_base.txt b/devsite/requirements/juniper_base.txt index 7a839335e..b64a32a32 100644 --- a/devsite/requirements/juniper_base.txt +++ b/devsite/requirements/juniper_base.txt @@ -24,7 +24,7 @@ pytz==2020.1 ## Django package dependencies ## -Django==2.2.15 +Django==2.2.16 djangorestframework==3.9.4 django-countries==5.5 @@ -35,6 +35,9 @@ django-environ==0.4.5 jsonfield==2.1.1 +# For + + ## ## Documentation (Sphinx) dependencies ## @@ -49,7 +52,6 @@ Sphinx==3.1.2 edx-opaque-keys[django]==2.1.0 #edx-drf-extensions==6.0.0 -edx-organizations==5.2.0 ## ## Devsite @@ -75,3 +77,4 @@ pytest-cov==2.8.1 tox==3.15.0 freezegun==0.3.12 edx-lint==1.4.1 +mock==3.0.5 diff --git a/devsite/requirements/juniper_community.txt b/devsite/requirements/juniper_community.txt new file mode 100644 index 000000000..1baf12dd8 --- /dev/null +++ b/devsite/requirements/juniper_community.txt @@ -0,0 +1,5 @@ +# Requirements needed for Juniper community environment + +-r juniper_base.txt + +edx-organizations==5.2.0 diff --git a/devsite/requirements/juniper_multisite.txt b/devsite/requirements/juniper_multisite.txt new file mode 100644 index 000000000..f4afbe911 --- /dev/null +++ b/devsite/requirements/juniper_multisite.txt @@ -0,0 +1,6 @@ +# Requirements needed for Juniper multisite environment + +-r juniper_base.txt + +# Organization/site mapping requires Appsembler's fork +git+https://github.com/appsembler/edx-organizations.git@5.2.0-appsembler13 diff --git a/devsite/requirements/py35_juniper.txt b/devsite/requirements/py35_juniper.txt deleted file mode 100644 index b81ae0fa4..000000000 --- a/devsite/requirements/py35_juniper.txt +++ /dev/null @@ -1,4 +0,0 @@ - --r juniper_base.txt - -mock==3.0.5 diff --git a/devsite/requirements/py38_juniper.txt b/devsite/requirements/py38_juniper.txt deleted file mode 100644 index d98d9eb6f..000000000 --- a/devsite/requirements/py38_juniper.txt +++ /dev/null @@ -1,4 +0,0 @@ - --r juniper_base.txt - -mock==4.0.2 diff --git a/tox.ini b/tox.ini index b4b5b2b1d..7705f4774 100644 --- a/tox.ini +++ b/tox.ini @@ -13,8 +13,8 @@ envlist = py27-ginkgo py27-hawthorn py27-hawthorn_multisite - py35-juniper - py38-juniper + py35-juniper_community + py35-juniper_multisite lint edx_lint_check @@ -27,8 +27,8 @@ deps = ginkgo: -r{toxinidir}/devsite/requirements/ginkgo.txt hawthorn: -r{toxinidir}/devsite/requirements/hawthorn.txt hawthorn_multisite: -r{toxinidir}/devsite/requirements/hawthorn_multisite.txt - py35_juniper: -r{toxinidir}/devsite/requirements/py35_juniper.txt - py38_juniper: -r{toxinidir}/devsite/requirements/py38_juniper.txt + juniper_community: -r{toxinidir}/devsite/requirements/juniper_community.txt + juniper_multisite: -r{toxinidir}/devsite/requirements/juniper_multisite.txt whitelist_externals = git @@ -40,15 +40,15 @@ setenv = ginkgo: OPENEDX_RELEASE = GINKGO hawthorn: OPENEDX_RELEASE = HAWTHORN hawthorn_multisite: OPENEDX_RELEASE = HAWTHORN - py35_juniper: OPENEDX_RELEASE = JUNIPER - py38_juniper: OPENEDX_RELEASE = JUNIPER + juniper_community: OPENEDX_RELEASE = JUNIPER + juniper_multisite: OPENEDX_RELEASE = JUNIPER commands = ginkgo: pytest -c pytest-ginkgo.ini {posargs} hawthorn: pytest -c pytest-hawthorn.ini {posargs} hawthorn_multisite: pytest -c pytest-hawthorn.ini {posargs} - py35_juniper: pytest -c pytest-juniper.ini {posargs} - py38_juniper: pytest -c pytest-juniper.ini {posargs} + juniper_community: pytest -c pytest-juniper.ini {posargs} + juniper_multisite: pytest -c pytest-juniper.ini {posargs} [testenv:lint] basepython=python2