Skip to content

Commit 44977b1

Browse files
Remove python 3.6 support. (#718)
* Remove python 3.6 support. * Remove unsupported code
1 parent 906fe52 commit 44977b1

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ['3.6', '3.7', '3.8', '3.9']
12+
python-version: ['3.7', '3.8', '3.9']
1313

1414
steps:
1515
- uses: actions/checkout@v2

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ UPDATE_ON_DUPLICATE_REG_ID: Transform create of an existing Device (based on reg
3131

3232
Dependencies
3333
------------
34-
- Python 3.6+
34+
- Python 3.7+
3535
- Django 2.2+
3636
- For the API module, Django REST Framework 3.7+ is required.
3737
- For WebPush (WP), pywebpush 1.3.0+ is required (optional). py-vapid 1.3.0+ is required for generating the WebPush private key; however this

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ classifiers =
1818
License :: OSI Approved :: MIT License
1919
Programming Language :: Python
2020
Programming Language :: Python :: 3
21-
Programming Language :: Python :: 3.6
2221
Programming Language :: Python :: 3.7
2322
Programming Language :: Python :: 3.8
2423
Programming Language :: Python :: 3.9
2524
Topic :: Internet :: WWW/HTTP
2625
Topic :: System :: Networking
2726

2827
[options]
29-
python_requires = >= 3.6
28+
python_requires = >= 3.7
3029
packages = find:
3130
install_requires =
3231
Django>=2.2

tests/test_admin.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ def test_send_bulk_messages_action_fail(self):
126126
self.assertEqual(message.token, "abc")
127127
self.assertEqual(message.android.notification.body, "Test bulk notification")
128128

129-
# 3.6 adds a `,` to the string representation of the exception
130-
python_version = sys.version_info[:2]
131-
if python_version >= (3, 7):
132-
error_message = "Some messages could not be processed: UnregisteredError('error')"
133-
else:
134-
error_message = "Some messages could not be processed: UnregisteredError('error',)"
129+
error_message = "Some messages could not be processed: UnregisteredError('error')"
135130

136131
admin.message_user.assert_called_once_with(
137132
request, error_message, level=messages.ERROR

tox.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
skipsdist = False
33
usedevelop = true
44
envlist =
5-
py{36,37,38,39}-dj{22,32}
5+
py{37,38,39}-dj{22,32}
66
py{38,39}-dj{40,405}
77
flake8
88

99
[gh-actions]
1010
python =
11-
3.6: py36
1211
3.7: py37
1312
3.8: py38
1413
3.9: py39, flake8

0 commit comments

Comments
 (0)