Skip to content

Commit

Permalink
Merge pull request #59 from waynerv/py12
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli authored Nov 4, 2023
2 parents c83f16f + 7e61674 commit f495831
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions flask_mailman/backends/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "BSD-3-Clause"
Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f495831

Please sign in to comment.