./mail/py-email_validator, Robust email syntax and deliverability validation library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.1.1, Package name: py311-email_validator-2.1.1, Maintainer: pkgsrc-users

This library validates that address are of the form x@y.com. This is the sort
of validation you would want for a login form on a website.

Key features:
* Good for validating email addresses used for logins/identity.
* Friendly error messages when validation fails (appropriate to show to end
users).
* (optionally) Checks deliverability: Does the domain name resolve?
* Supports internationalized domain names and (optionally) internationalized
local parts.
* Normalizes email addresses (super important for internationalized addresses!).


Required to run:
[net/py-dns] [devel/py-setuptools] [www/py-idna] [lang/python310]

Master sites:

Filesize: 43.661 KB

Version history: (Expand)


CVS history: (Expand)


   2024-02-27 09:39:39 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-email_validator: updated to 2.1.1

2.1.1

Fixed typo 'marking' instead of 'marketing' in case-insensitive mailbox name list.
When DNS-based deliverability checks fail, in some cases exceptions are now \ 
thrown with raise ... from for better nested exception tracking.
Fixed tests to work when no local resolver can be configured.
This project is now licensed under the Unlicense (instead of CC0).
Minor improvements to tests.
Minor improvements to code style.
   2024-01-31 01:02:03 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-email_validator: updated to 2.1.0.post1

2.1.0 (October 22, 2023)

Python 3.8+ is now required (support for Python 3.7 was dropped).
The old email field on the returned ValidatedEmail object, which in the previous \ 
version was superseded by normalized, will now raise a deprecation warning if \ 
used. See https://stackoverflow.com/q/879173 for strategies to suppress the \ 
DeprecationWarning.
A __version__ module attribute is added.
The email address argument to validate_email is now marked as positional-only to \ 
better reflect the documented usage using the new Python 3.8 feature.

2.0.0 (April 15, 2023)

This is a major update to the library, but since email address specs haven't \ 
changed there should be no significant changes to which email addresses are \ 
considered valid or invalid with default options. There are new options for \ 
accepting unusual email addresses that were previously always rejected, some \ 
changes to how DNS errors are handled, many changes in error message text, and \ 
major internal improvements including the addition of type annotations. Python \ 
3.7+ is now required. Details follow:

Python 2.x and 3.x versions through 3.6, and dnspython 1.x, are no longer \ 
supported. Python 3.7+ with dnspython 2.x are now required.
The dnspython package is no longer required if DNS checks are not used, although \ 
it will install automatically.
NoNameservers and NXDOMAIN DNS errors are now handled differently: NoNameservers \ 
no longer fails validation, and NXDOMAIN now skips checking for an A/AAAA \ 
fallback and goes straight to failing validation.
Some syntax error messages have changed because they are now checked explicitly \ 
rather than as a part of other checks.
The quoted-string local part syntax (e.g. multiple @-signs, spaces, etc. if \ 
surrounded by quotes) and domain-literal addresses (e.g. @[192.XXX...] or \ 
@[IPv6:...]) are now parsed but not considered valid by default. Better error \ 
messages are now given for these addresses since it can be confusing for a \ 
technically valid address to be rejected, and new allow_quoted_local and \ 
allow_domain_literal options are added to allow these addresses if you really \ 
need them.
Some other error messages have changed to not repeat the email address in the \ 
error message.
The email field on the returned ValidatedEmail object has been renamed to \ 
normalized to be clearer about its importance, but access via .email is also \ 
still supported.
Some mailbox names like postmaster are now normalized to lowercase per RFC 2142.
The library has been reorganized internally into smaller modules.
The tests have been reorganized and expanded. Deliverability tests now mostly \ 
use captured DNS responses so they can be run off-line.
The main tool now reads options to validate_email from environment variables.
Type annotations have been added to the exported methods and the ValidatedEmail \ 
class and some internal methods.
The old dict-like pattern for the return value of validate_email is deprecated.
Versions 2.0.0.post1 and 2.0.0.post2 corrected some packaging issues. \ 
2.0.0.post2 also added a check for an invalid combination of arguments.
   2023-05-05 12:07:57 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-email_validator: not for Python 2
   2022-08-23 23:49:56 by Thomas Klausner | Files touched by this commit (7)
Log message:
*: switch to appropriate py-dns version
   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:54:34 by Nia Alarie | Files touched by this commit (356)
Log message:
mail: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

The following distfiles were unfetchable (possibly fetched
conditionally?):

./mail/qmail/distinfo netqmail-1.05-TAI-leapsecs.patch
   2021-10-07 16:25:52 by Nia Alarie | Files touched by this commit (357)
Log message:
mail: Remove SHA1 hashes for distfiles