Skip to content

Commit

Permalink
Add Django 5.1, remove Python 3.5, Release 0.15.0 (#269)
Browse files Browse the repository at this point in the history
* Fixed errors with sphinx docs build.
* Added support for Django 5.1
* Only run automated tests on this repository.
* Removed support for Python 3.5 as setup-python no longer supports it for automated tests.
* bumped github actions versions.
* Release 0.15.0
  • Loading branch information
sdolemelipone authored Oct 14, 2024
1 parent 9a6bf95 commit 571f5e2
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 23 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ env:
LATEST_PYTHON_VERSION: "3.12"
jobs:
tests:
if: github.repository == 'AndrewIngram/django-extra-views'
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
name: Python ${{ matrix.python-version }} tests
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -23,25 +24,26 @@ jobs:
run: tox
- name: Upload coverage.xml
if: ${{ matrix.python-version == env.LATEST_PYTHON_VERSION }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: django-extra-views-coverage
path: coverage.xml
if-no-files-found: error
- name: Upload coverage.xml to Codecov
if: ${{ matrix.python-version == env.LATEST_PYTHON_VERSION }}
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
lint:
if: github.repository == 'AndrewIngram/django-extra-views'
runs-on: ubuntu-latest
strategy:
matrix:
tox-arg: [black, isort, flake8]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ env.LATEST_PYTHON_VERSION }}
- name: Install dependencies
Expand Down
18 changes: 10 additions & 8 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
Change History
==============

0.15.0 (TBC)
0.16.0 (TBC)
-------------------------

0.15.0 (2024-09-27)
-------------------------

Changes:
Expand All @@ -11,16 +14,15 @@ Supported Versions:
======== ==========
Python Django
======== ==========
3.5 2.2
3.6-3.7 2.2–3.2
3.8-3.9 2.2–4.2
3.10 3.2-4.2
3.11 4.1-4.2
3.12 4.2-5.0
3.10 3.2-5.1
3.11 4.1-5.1
3.12 4.2-5.1
======== ==========

- Added support for Django 4.0, 4.1, 4.2, 5.0 and Python 3.10, 3.11, 3.12.
- Removed support for Django 2.1
- Added support for Django 4.0, 4.1, 4.2, 5.0, 5.1 and Python 3.10, 3.11, 3.12.
- Removed support for Django 2.1 and Python 3.5.

0.14.0 (2021-06-08)
-------------------------
Expand Down Expand Up @@ -124,7 +126,7 @@ Backwards-incompatible changes
dictionary key ``form_kwargs`` in ``BaseFormSetMixin.formset_kwargs`` instead.

0.10.0 (2018-02-28)
------------------
-------------------
New features:

- Added SuccessMessageWithInlinesMixin (#151)
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"http://docs.python.org/": None}
intersphinx_mapping = {"python": ("http://docs.python.org/", None)}
2 changes: 1 addition & 1 deletion extra_views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from extra_views.dates import CalendarMonthView
from extra_views.formsets import FormSetView, InlineFormSetView, ModelFormSetView

__version__ = "0.14.0"
__version__ = "0.15.0"

__all__ = [
"CreateWithInlinesView",
Expand Down
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
[tox]
envlist = py35-django{22}
py36-django{22,30,31,32}
envlist = py36-django{22,30,31,32}
py37-django{22,30,31,32}
py38-django{22,30,31,32,40,41,42}
py39-django{22,30,31,32,40,41,42}
py310-django{32,40,41,42,50,master}
py311-django{41,42,50,master}
py312-django{42,50,master}
py310-django{32,40,41,42,50,51,master}
py311-django{41,42,50,51,master}
py312-django{42,50,51,master}
black
isort
flake8
docs

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
Expand Down Expand Up @@ -43,6 +41,7 @@ deps =
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
djangomaster: https://github.com/django/django/archive/main.tar.gz
pytest-django
pytest-cov
Expand Down

0 comments on commit 571f5e2

Please sign in to comment.