Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
feat: support for django 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Oct 5, 2023
1 parent b4cda26 commit e103b33
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
python-version:
- 3.8
toxenv: [ django32 ]
toxenv: [ django32, django42 ]
steps:
- uses: actions/checkout@v1
- name: setup python
Expand All @@ -45,7 +46,7 @@ jobs:
make static
make validate_translations
- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django32'
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v1
with:
flags: unittests
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ django-simple-history==3.0.0
# via
# -c requirements/common_constraints.txt
# -r requirements/base.in
django-storages==1.8
django-storages==1.10.1
# via
# -c requirements/constraints.txt
# -r requirements/base.in
Expand Down
5 changes: 3 additions & 2 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ Django<4.0
# Version 3.2.0 contains bad arabic translations that will cause validation tests to fail
django-extensions<3.2.0

# django-storages version 1.9 drops support for boto storage backend.
django-storages<1.9
# django-storages version 1.10.1 is major upgrade.
django-storages==1.10.1


# From base.in
celery<5.0 # version 5.0 drops support for python 3.5
Expand Down
2 changes: 1 addition & 1 deletion requirements/devstack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ django-simple-history==3.0.0
# via
# -c requirements/common_constraints.txt
# -r requirements/local.txt
django-storages==1.8
django-storages==1.10.1
# via
# -c requirements/constraints.txt
# -r requirements/local.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ django-simple-history==3.0.0
# via
# -c requirements/common_constraints.txt
# -r requirements/test.txt
django-storages==1.8
django-storages==1.10.1
# via
# -c requirements/constraints.txt
# -r requirements/test.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/monitoring/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ django-simple-history==3.0.0
# -r requirements/monitoring/../local.txt
# -r requirements/monitoring/../production.txt
# -r requirements/monitoring/../test.txt
django-storages==1.8
django-storages==1.10.1
# via
# -r requirements/monitoring/../devstack.txt
# -r requirements/monitoring/../local.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ django-simple-history==3.0.0
# via
# -c requirements/common_constraints.txt
# -r requirements/base.txt
django-storages==1.8
django-storages==1.10.1
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ django-simple-history==3.0.0
# via
# -c requirements/common_constraints.txt
# -r requirements/base.txt
django-storages==1.8
django-storages==1.10.1
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
envlist = py38-django{32}
envlist = py38-django{32, 42}
skipsdist = true

[testenv]
passenv = *
deps =
django32: -r requirements/django.txt
django42: Django>=4.2,<5.0
-r{toxinidir}/requirements/test.txt
whitelist_externals =
i18n_tool
/bin/bash
commands = {posargs:pytest}
commands = {posargs:pytest}

0 comments on commit e103b33

Please sign in to comment.