Skip to content

Commit

Permalink
Update supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed May 22, 2024
1 parent 5c5358c commit b168aea
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 39 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,30 @@ name: main

on:
push:
branches: [main]
branches: [main, fix/drf-version-support]
pull_request:
branches: [main]

jobs:
test:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.0', '4.1', '4.2', '5.0']
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox-gh-actions
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Run tests with tox
env:
OS: ${{ matrix.os }}
DJANGO: ${{ matrix.django-version }}
run: tox
- name: Run Codecov
run: |
python -m pip install codecov
codecov
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh
- name: Run tests with tox
run: tox
- name: Run Codecov
run: |
python -m pip install codecov
codecov
11 changes: 3 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,13 @@ def get_version(*file_paths):
],
include_package_data=True,
install_requires=[
"Django>=1.11,<6"
"Django>=3.2,<6"
],
license="MIT",
zip_safe=False,
keywords='Django REST Framework, Serializers, REST, API, Django',
classifiers=[
'Framework :: Django',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
Expand All @@ -68,8 +62,9 @@ def get_version(*file_paths):
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
Expand Down
19 changes: 11 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
[tox]
envlist =
py37-django{111,21,22,30,31,32}
py{38,39}-django{22,30,31,32,41,42}
py37-django{32}
py{38,39}-django{32,41,42}
py310-django{32,41,42,50}
py311-django{41,42,50}
py312-django{42,50}

[gh]
python =
3.7: py37-django{32}
3.8: py38-django{32,41,42}
3.9: py39-django{32,41,42}
3.10: py310-django{32,41,42,50}
3.11: py311-django{41,42,50}
3.12: py312-django{42,50}

[pytest]
DJANGO_SETTINGS_MODULE = test_settings
addopts = --cov drf_rw_serializers --cov-report term-missing --cov-report xml
Expand All @@ -15,12 +24,6 @@ python_classes=*Tests

[testenv]
deps =
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
Expand Down

0 comments on commit b168aea

Please sign in to comment.