Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 11 additions & 0 deletions push_notifications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@
# <Python 3.7 and lower
import importlib_metadata

try:
# Ugly hack for APNS sub-deps Python 3.10+
from collections.abc import Iterable, Mapping, MutableSet, MutableMapping
import collections
collections.Iterable = Iterable
collections.Mapping = Mapping
collections.MutableSet = MutableSet
collections.MutableMapping = MutableMapping
except ImportError:
pass

__version__ = importlib_metadata.version("django-push-notifications")
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Internet :: WWW/HTTP
Topic :: System :: Networking

Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
skipsdist = True
usedevelop = true
envlist =
py{36,37,38,39}-dj{22,32}
py{38,39}-dj{40,main}
py{36,37,38,39}-dj22
py{36,37,38,39,310}-dj32
py{38,39,310}-dj{40,main}
flake8

[gh-actions]
Expand All @@ -12,6 +13,7 @@ python =
3.7: py37
3.8: py38
3.9: py39, flake8
3.10: py310

[gh-actions:env]
DJANGO =
Expand Down