Skip to content

Commit

Permalink
added support for django 5.0 and 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thomst committed Nov 12, 2024
1 parent 929081c commit 6116232
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
- python-version: "3.11"
django-version: Django==4.2

- python-version: "3.11"
django-version: Django==5.0

- python-version: "3.11"
django-version: Django==5.1

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Welcome to django-modeltree
===========================

.. image:: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue
:target: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue
:alt: python: 3.6, 3.7, 3.8, 3.9, 3.10, 3.11
.. image:: https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue
:target: https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue
:alt: python: 3.7, 3.8, 3.9, 3.10, 3.11

.. image:: https://img.shields.io/badge/django-2.2%20%7C%203.0%20%7C%203.1%20%7C%203.2%20%7C%204.0%20%7C%204.1%20%7C%204.2-orange
:target: https://img.shields.io/badge/django-2.2%20%7C%203.0%20%7C%203.1%20%7C%203.2%20%7C%204.0%20%7C%204.1%20%7C%204.2-orange
:alt: django: 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2
.. image:: https://img.shields.io/badge/django-2.2%20%7C%203.0%20%7C%203.1%20%7C%203.2%20%7C%204.0%20%7C%204.1%20%7C%204.2%20%7C%205.0%20%7C%205.1-orange
:target: https://img.shields.io/badge/django-2.2%20%7C%203.0%20%7C%203.1%20%7C%203.2%20%7C%204.0%20%7C%204.1%20%7C%204.2%20%7C%205.0%20%7C%205.1-orange
:alt: django: 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1

.. image:: https://github.com/thomst/django-modeltree/actions/workflows/ci.yml/badge.svg
:target: https://github.com/thomst/django-modeltree/actions/workflows/ci.yml
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def version():
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
18 changes: 11 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@

[tox]
envlist =
{py36,py37,py38}-django22,
{py36,py37,py38}-django30,
{py36,py37,py38}-django31,
{py37,py38,py39}-django32
{py38,py39,py310}-django40
{py38,py39,py310}-django41
{py39,py310,py311}-django42
{py37,py38}-django22,
{py37,py38}-django30,
{py37,py38}-django31,
{py38,py39}-django32
{py39,py310}-django40
{py39,py310}-django41
{py310,py311}-django42
{py310,py311}-django50
{py310,py311}-django51
skip_missing_interpreters = true

[testenv]
Expand All @@ -23,6 +25,8 @@ deps =
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2

commands = {envpython} tests/manage.py test testapp {posargs}
setenv = PYTHONPATH = .:{toxworkdir}

0 comments on commit 6116232

Please sign in to comment.