Skip to content

Commit

Permalink
Merge pull request #134 from openedx/salman/add-django-4.2-support
Browse files Browse the repository at this point in the history
Add Django 4.2 support
  • Loading branch information
salman2013 authored Aug 3, 2023
2 parents fd64728 + 5519cf4 commit 236f00b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
matrix:
python-version:
- '3.8'
TOX_ENV: [coverage, quality, django22, django30, django31, django32]
TOX_ENV: [coverage, quality, django32, django42]
steps:
- uses: actions/checkout@v2
- name: setup python
Expand Down
2 changes: 1 addition & 1 deletion invideoquiz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""
from .invideoquiz import InVideoQuizXBlock

__version__ = '1.2.1'
__version__ = '1.3.0'
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ def get_version(file_path):
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
Expand Down
22 changes: 10 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
[tox]
downloadcache = {toxworkdir}/_download/
envlist = py38-django{22,30,31,32},coverage,quality
envlist = py38-django{32,42},coverage,quality

[testenv]
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
-rrequirements/test.txt
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
-rrequirements/test.txt
commands =
pytest
pytest

[testenv:quality]
deps =
-rrequirements/quality.txt
-rrequirements/quality.txt
commands =
{envbindir}/pycodestyle invideoquiz/
{envbindir}/pylint invideoquiz/
{envbindir}/pycodestyle invideoquiz/
{envbindir}/pylint invideoquiz/

[testenv:coverage]
deps =
-rrequirements/test.txt
-rrequirements/test.txt
commands =
coverage run -m pytest
coverage run -m pytest

0 comments on commit 236f00b

Please sign in to comment.