Skip to content

Commit

Permalink
Drop support for EOL Python <= 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and jezdez committed Jan 8, 2022
1 parent 223f330 commit e81c18d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.1', '3.2', 'main']

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ soon as near-full coverage is reached.

Compatibility
=============
Currently, django-newsletter officially supports Django 2.2.x LTS, 3.1.x and 3.2.x and Python 3.6 through 3.9.
Currently, django-newsletter officially supports Django 2.2.x LTS, 3.1.x and 3.2.x and Python 3.7 through 3.10.

Requirements
============
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Utilities'
],
)
5 changes: 1 addition & 4 deletions tests/test_mailing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import itertools
import os
import sys

from unittest import mock
import unittest
Expand Down Expand Up @@ -259,8 +258,6 @@ def test_delayedbatchsumbmission(self):

sleep_mock.assert_called_with(0.02)

@unittest.skipIf(sys.version_info < (3,6),
reason="assert_called_once added in Python 3.6")
def test_management_command(self):
""" Test submission through management command. """

Expand Down Expand Up @@ -454,7 +451,7 @@ class TemplateOverridesTestCase(MailingTestCase, AllEmailsTestsMixin):

def get_newsletter_kwargs(self):
"""
Update keyword arguments for instanciating the newsletter
Update keyword arguments for instantiating the newsletter
so that slug corresponds to one for which template overrides exists
and make sure e-mails will be sent with text and HTML versions.
"""
Expand Down
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
py{36,37,38,39}-dj{22,31}
py{36,37,38,39}-dj32
py{37,38,39}-dj{22,31}
py{37,38,39}-dj32
py{38,39,310}-djmain

[testenv]
Expand All @@ -14,7 +14,6 @@ deps =
pytz
webtest
django-webtest
mock
dj22: Django>=2.2,<3.0
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
Expand All @@ -32,7 +31,6 @@ setenv =

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
Expand Down

0 comments on commit e81c18d

Please sign in to comment.