Skip to content

Commit d7fd074

Browse files
committed
Note that Python 2.x is no longer supported (fixes #91)
1 parent 10c34e6 commit d7fd074

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Version 1.3.0 (September 18, 2022)
44
* Deliverability checks now check for 'v=spf1 -all' SPF records as a way to reject more bad domains.
55
* Special use domain names now raise EmailSyntaxError instead of EmailUndeliverableError since they are performed even if check_deliverability is off.
66
* New module-level attributes are added to override the default values of the keyword arguments and the special-use domains list.
7-
* The keyword arguments of the public methods are now marked as keyword-only.
7+
* The keyword arguments of the public methods are now marked as keyword-only, ending support for Python 2.x.
88
* [pyIsEmail](https://github.com/michaelherold/pyIsEmail)'s test cases are added to the tests.
99
* Recommend that check_deliverability be set to False for validation on login pages.
1010
* Added an undocumented globally_deliverable option.

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,14 @@ part is converted to [IDNA ASCII](https://tools.ietf.org/html/rfc5891).
252252
(You probably should not do this at account creation time so you don't
253253
change the user's login information without telling them.)
254254

255-
### UCS-4 support required for Python 2.7
255+
### Support for Python 2.7
256256

257-
This library hopefully still works with Python 2.7.
258-
Note that when using Python 2.7, it is required that it was built with
257+
The last version of this library supporting Python 2.x is version 1.2.1.
258+
259+
When using Python 2.x, it is required that it was built with
259260
UCS-4 support (see
260-
[here](https://stackoverflow.com/questions/29109944/python-returns-length-of-2-for-single-unicode-character-string));
261-
otherwise emails with unicode characters outside of the BMP (Basic
261+
[here](https://stackoverflow.com/questions/29109944/python-returns-length-of-2-for-single-unicode-character-string)).
262+
Without UCS-4 support, unicode characters outside of the BMP (Basic
262263
Multilingual Plane) will not validate correctly.
263264

264265
Normalization

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ classifiers =
1313
Development Status :: 5 - Production/Stable
1414
Intended Audience :: Developers
1515
License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
16-
Programming Language :: Python :: 2
17-
Programming Language :: Python :: 2.7
1816
Programming Language :: Python :: 3
1917
Programming Language :: Python :: 3.7
2018
Programming Language :: Python :: 3.8
@@ -28,7 +26,7 @@ packages = find:
2826
install_requires =
2927
dnspython>=1.15.0
3028
idna>=2.0.0
31-
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
29+
python_requires = >=3.5
3230

3331
[options.entry_points]
3432
console_scripts =

0 commit comments

Comments
 (0)