Skip to content

Commit

Permalink
✨ Add support for py3.11/3.12 and drop support for 3.8/3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Sep 26, 2024
1 parent a878cc4 commit 3d1f4b7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10']
django: ['3.2', '4.1', '4.2']
python: ['3.10', '3.11', '3.12']
django: ['4.1', '4.2']

name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }})

services:
postgres:
image: docker.io/library/postgres:12
image: docker.io/library/postgres:14
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.10'

- name: Build sdist and wheel
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ notifications-api-common
:Version: 0.2.2
:Source: https://github.com/maykinmedia/notifications-api-common
:Keywords: notifications, REST, API, Common Ground, ZGW
:PythonVersion: 3.9
:PythonVersion: 3.10

|build-status| |code-quality| |black| |coverage| |docs|

Expand All @@ -29,9 +29,9 @@ Installation
Requirements
------------

* Python 3.8 or above
* Python 3.10 or above
* setuptools 30.3.0 or above
* Django 3.2 or newer
* Django 4.1 or newer
* Celery 5.0 or newer setup with one worker deployed


Expand Down
9 changes: 4 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,29 @@ keywords = notifications, REST, API, Common Ground, ZGW
classifiers =
Development Status :: 4 - Beta
Framework :: Django
Framework :: Django :: 3.2
Framework :: Django :: 4.1
Framework :: Django :: 4.2
Intended Audience :: Developers
Operating System :: Unix
Operating System :: MacOS
Operating System :: Microsoft :: Windows
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
Topic :: Software Development :: Libraries :: Python Modules

[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
django>=3.2.0
django>=4.1.0
django-solo
djangorestframework>=3.12.0
celery
djangorestframework_camel_case>=1.2.0
gemma-zds-client>=0.15.0
zgw-consumers
zgw-consumers[testutils]
tests_require =
psycopg2
pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
from rest_framework.test import APIClient
from zgw_consumers.constants import APITypes
from zgw_consumers.service import Service
from zgw_consumers.models import Service

from notifications_api_common.models import NotificationsConfig
from testapp import urls # noqa
Expand Down
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
[tox]
envlist =
py{38,39,310}-django32
py{38,39,310}-django{41,42}
py{310,311,312}-django{41,42}
isort
black
docs
skip_missing_interpreters = true

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[gh-actions:env]
DJANGO =
3.2: django32
4.1: django41
4.2: django42

Expand All @@ -24,7 +22,6 @@ extras =
tests
coverage
deps =
django32: Django~=3.2.0
django41: Django~=4.1.0
django42: Django~=4.2.0
passenv =
Expand Down

0 comments on commit 3d1f4b7

Please sign in to comment.