diff --git a/.zuul.d/django-jobs.yaml b/.zuul.d/django-jobs.yaml index 7a81e6568a..5bf2af21f4 100644 --- a/.zuul.d/django-jobs.yaml +++ b/.zuul.d/django-jobs.yaml @@ -17,30 +17,22 @@ pre-run: playbooks/horizon-tox-django/pre.yaml run: playbooks/horizon-tox-django/run.yaml vars: - tox_envlist: py38 + tox_envlist: py39 required-projects: - name: openstack/horizon -- job: - name: horizon-tox-python3-django32 - parent: horizon-tox-python3-django - vars: - django_version: '>=3.2,<3.3' - - project-template: name: horizon-non-primary-django-jobs description: | Run unit tests with non-primary Django versions. check: jobs: - # Currently we only support Django 2.2, so there is no need + # Currently we only support Django 3.2, so there is no need # to run tests with different versions of Django. # We specify a job in openstack-python3-yoga-jobs(-horizon) # to keep this project template as it is used in horizon plugins. # NOTE: We keep it as a template even though it is not used now. - - openstack-tox-py38 - - horizon-tox-python3-django32 + - openstack-tox-py39 gate: jobs: - - openstack-tox-py38 - - horizon-tox-python3-django32 + - openstack-tox-py39 diff --git a/doc/source/contributor/testing.rst b/doc/source/contributor/testing.rst index 80afdd1872..dabd537149 100644 --- a/doc/source/contributor/testing.rst +++ b/doc/source/contributor/testing.rst @@ -107,11 +107,10 @@ when a test fails you can use:: $ tox -e py37 -- --pdb -py3-dj111, py3-dj21, py3-dj22 +py3-dj32 ----------------------------- -Runs the Python unit tests against Django 1.11, Django 2.1 and Django 2.2 -respectively +Runs the Python unit tests against Django 3.2. py36 ---- diff --git a/doc/source/install/system-requirements.rst b/doc/source/install/system-requirements.rst index 568d64999c..5ef3a4f8f3 100644 --- a/doc/source/install/system-requirements.rst +++ b/doc/source/install/system-requirements.rst @@ -6,10 +6,8 @@ The Ussuri release of horizon has the following dependencies. * Python 3.6 or 3.7 -* Django 2.2 +* Django 3.2 - * Django 3.2 support is experimental as of Xena release. - (Yoga release will use Django 3.2 as the primary Django version.) * Django support policy is documented at :ref:`django_support`. * An accessible `keystone `_ endpoint diff --git a/lower-constraints.txt b/lower-constraints.txt index 058a134ab6..f3976063cf 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -15,7 +15,7 @@ cryptography==3.0 debtcollector==1.2.0 decorator==4.4.2 deprecation==1.0 -Django==2.2 +Django==3.2 django-appconf==1.0.5 django-compressor==2.4.1 django-debreach==1.4.2 diff --git a/releasenotes/notes/drop-django22-support-d0e2dea1509228a2.yaml b/releasenotes/notes/drop-django22-support-d0e2dea1509228a2.yaml new file mode 100644 index 0000000000..6b34ae1eaa --- /dev/null +++ b/releasenotes/notes/drop-django22-support-d0e2dea1509228a2.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Django 2.2 support was dropped. Django 2.2 ends its extended support + in April 2022. Considering this horizon dropped Django 2.2 support + and uses Django 3.2 as default. diff --git a/requirements.txt b/requirements.txt index b04b6011d0..151359316d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ pbr>=5.5.0 # Apache-2.0 # Horizon Core Requirements Babel>=2.6.0 # BSD debtcollector>=1.2.0 # Apache-2.0 -Django>=2.2,<3.3 # BSD +Django>=3.2,<3.3 # BSD django-compressor>=2.4.1 # MIT django-debreach>=1.4.2 # BSD License (2 clause) django-pyscss>=2.0.2 # BSD License (2 clause)