Skip to content

Commit

Permalink
feat: Support Pyhon 3.12, Django 5
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Mar 5, 2024
1 parent 5000567 commit 6a6b483
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: CI

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
testenv:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
django-version: ['3.2', '4.0', '4.1', '4.2']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.0', '4.1', '4.2', '5.0']

steps:
- uses: actions/checkout@v3
Expand All @@ -31,16 +31,16 @@ jobs:
PYTHON_VER: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django-version }}
extra:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
extra-env: ['checkqa']
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to django-healthpoint!
.. image:: https://img.shields.io/pypi/v/django-healthpoint.svg
:target: https://pypi.python.org/pypi/django-healthpoint

.. image:: https://coveralls.io/repos/pennersr/django-healthpoint/badge.png?branch=master
.. image:: https://coveralls.io/repos/pennersr/django-healthpoint/badge.png?branch=main
:alt: Coverage Status
:target: https://coveralls.io/r/pennersr/django-healthpoint

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def read_files(*filenames):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[tox]
envlist =
{py38,py39,py310,py311}-django32
{py38,py39,py310,py311}-django40
{py38,py39,py310,py311}-django41
{py38,py39,py310,py311}-django42
{py38,py39,py310,py311,py312}-django32
{py38,py39,py310,py311,py312}-django40
{py38,py39,py310,py311,py312}-django41
{py38,py39,py310,py311,py312}-django42
{py310,py311,py312}-django50
checkqa

[testenv]
Expand All @@ -12,11 +13,12 @@ usedevelop = True
deps =
coverage
# To avoid "AttributeError: install_layout" error on healthpoint installation
setuptools==50.3.2
setuptools==69.1.1
django32: Django==3.2.*
django40: Django==4.0.*
django41: Django==4.1.*
django42: Django==4.2.*
django50: Django==5.0.*
commands =
coverage run setup.py test

Expand Down

0 comments on commit 6a6b483

Please sign in to comment.