Skip to content

Commit

Permalink
update python/dependency test versions (#33)
Browse files Browse the repository at this point in the history
* update python/dependency test versions

* remove top version restriction on dependencies

* can't add 3.12 yet, just in rc status

* complete tox matrix

* django >4.2 not supported by drf <3.14

* drf 3.14 doesn't support django <3.0

* django main branch requires py >=3.10
  • Loading branch information
jkeifer authored Aug 13, 2023
1 parent db7f057 commit ed96cf3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: Python Tests
on:
push:
branches:
main
- main
pull_request:
branches:
main
- main
jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
author_email='[email protected]',
url='https://github.com/jkeifer/drf-chunked-upload',
install_requires=[
'Django>=2.2,<5.0',
'djangorestframework>=3.11,<4.0',
'Django>=2.2',
'djangorestframework>=3.11',
],
python_requires='>3.6',
python_requires='>3.7',
license='MIT-Zero',
)
22 changes: 15 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[tox]
envlist =
{py36,py37}-django22-drf{311,312,313},
{py36,py37,py38,py39}-django30-drf{311,312,313},
{py36,py37,py38,py39}-django31-drf{311,312,313},
{py36,py37,py38,py39,py310}-django32-drf{311,312,313},
{py38,py39,py310}-django40-drf{313},
{py38,py39,py310}-djangomain-drf{313},
{py37}-django22-drf{311,312,313},
{py37,py38,py39}-django30-drf{311,312,313,314},
{py37,py38,py39}-django31-drf{311,312,313,314},
{py37,py38,py39,py310,py311}-django32-drf{311,312,313,314},
{py38,py39,py310,py311}-django40-drf{313,314},
{py38,py39,py310,py311}-django41-drf{313,314},
{py38,py39,py310,py311}-django42-drf{314},
{py310,py311}-djangomain-drf{314},

[testenv]
commands = pytest --cov drf_chunked_upload
Expand All @@ -19,10 +21,13 @@ deps =
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
djangomain: https://github.com/django/django/archive/main.tar.gz
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<3.13
drf313: djangorestframework>=3.13,<4.0
drf313: djangorestframework>=3.13,<3.14
drf314: djangorestframework>=3.14,<4.0
-rrequirements/testing.txt

[pytest]
Expand All @@ -36,3 +41,6 @@ ignore_outcome = true

[testenv:py310-djangomain]
ignore_outcome = true

[testenv:py311-djangomain]
ignore_outcome = true

0 comments on commit ed96cf3

Please sign in to comment.