diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f130669..7d219d1 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -20,7 +20,7 @@ jobs: # The type of runner that the job will run on strategy: matrix: - python-versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index dc26253..dcdb84f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # Changelog -## [1.0.0] - unreleased +## [1.0.0] - 2023-11-04 - Drop Python 3.6 support. +- Fix compatibility issue with Python 3.10 + ([#31](https://github.com/waynerv/flask-mailman/pull/31)). +- Fix the log file generation issue to ensure that the log filename is random + ([#30](https://github.com/waynerv/flask-mailman/pull/30)). +- Fix compatibility issue with Python 3.12 + ([#56](https://github.com/waynerv/flask-mailman/issues/56)). - Support passing `from_email` in tuple format to `send_mail()` function -([#35](https://github.com/waynerv/flask-mailman/issues/35)). + ([#35](https://github.com/waynerv/flask-mailman/issues/35)). ## [0.3.0] - 2021-08-08 diff --git a/flask_mailman/backends/smtp.py b/flask_mailman/backends/smtp.py index ba38762..ceb60ee 100644 --- a/flask_mailman/backends/smtp.py +++ b/flask_mailman/backends/smtp.py @@ -77,9 +77,7 @@ def open(self): # non-secure connections. if not self.use_ssl and self.use_tls: if self.ssl_certfile: - context = ssl.SSLContext().load_cert_chain( - self.ssl_certfile, keyfile=self.ssl_keyfile - ) + context = ssl.SSLContext().load_cert_chain(self.ssl_certfile, keyfile=self.ssl_keyfile) else: context = None self.connection.starttls(context=context) diff --git a/pyproject.toml b/pyproject.toml index a773bfd..c2a8ec4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "Flask-Mailman" -version = "0.3.0" +version = "1.0.0" description = "Porting Django's email implementation to your Flask applications." authors = ["Waynerv "] license = "BSD-3-Clause" @@ -21,6 +21,7 @@ classifiers=[ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] [tool.poetry.dependencies] diff --git a/tox.ini b/tox.ini index 897b589..4351026 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [tox] isolated_build = true -envlist = py37, py38, py39, py310, py311, format, lint, build +envlist = py37, py38, py39, py310, py311, py312, format, lint, build [gh-actions] python = + 3.12: py312 3.11: py311 3.10: py310 3.9: py39