pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/py-email_validator
Module Name: pkgsrc
Committed By: adam
Date: Wed Jan 31 00:02:03 UTC 2024
Modified Files:
pkgsrc/mail/py-email_validator: Makefile PLIST distinfo
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.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/mail/py-email_validator/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/mail/py-email_validator/PLIST
cvs rdiff -u -r1.6 -r1.7 pkgsrc/mail/py-email_validator/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mail/py-email_validator/Makefile
diff -u pkgsrc/mail/py-email_validator/Makefile:1.9 pkgsrc/mail/py-email_validator/Makefile:1.10
--- pkgsrc/mail/py-email_validator/Makefile:1.9 Fri May 5 10:07:57 2023
+++ pkgsrc/mail/py-email_validator/Makefile Wed Jan 31 00:02:03 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2023/05/05 10:07:57 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2024/01/31 00:02:03 adam Exp $
-DISTNAME= email_validator-1.1.3
+DISTNAME= email_validator-2.1.0.post1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 2
CATEGORIES= mail python
MASTER_SITES= ${MASTER_SITE_PYPI:=e/email-validator/}
@@ -11,18 +10,18 @@ HOMEPAGE= https://github.com/JoshData/py
COMMENT= Robust email syntax and deliverability validation library
LICENSE= cc0-1.0-universal
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-idna>=2.0.0:../../www/py-idna
-DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
-
-PYTHON_VERSIONS_INCOMPATIBLE= 27
+DEPENDS+= ${PYPKGPREFIX}-dns>=2.0.0:../../net/py-dns
USE_LANGUAGES= # none
-USE_PKG_RESOURCES= yes
+PYTHON_VERSIONS_INCOMPATIBLE= 27
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} email_validator email_validator-${PYVERSSUFFIX} || ${TRUE}
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/mail/py-email_validator/PLIST
diff -u pkgsrc/mail/py-email_validator/PLIST:1.2 pkgsrc/mail/py-email_validator/PLIST:1.3
--- pkgsrc/mail/py-email_validator/PLIST:1.2 Fri May 1 08:12:08 2020
+++ pkgsrc/mail/py-email_validator/PLIST Wed Jan 31 00:02:03 2024
@@ -1,11 +1,33 @@
-@comment $NetBSD: PLIST,v 1.2 2020/05/01 08:12:08 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2024/01/31 00:02:03 adam Exp $
bin/email_validator-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/email_validator/__init__.py
${PYSITELIB}/email_validator/__init__.pyc
${PYSITELIB}/email_validator/__init__.pyo
+${PYSITELIB}/email_validator/__main__.py
+${PYSITELIB}/email_validator/__main__.pyc
+${PYSITELIB}/email_validator/__main__.pyo
+${PYSITELIB}/email_validator/deliverability.py
+${PYSITELIB}/email_validator/deliverability.pyc
+${PYSITELIB}/email_validator/deliverability.pyo
+${PYSITELIB}/email_validator/exceptions_types.py
+${PYSITELIB}/email_validator/exceptions_types.pyc
+${PYSITELIB}/email_validator/exceptions_types.pyo
+${PYSITELIB}/email_validator/py.typed
+${PYSITELIB}/email_validator/rfc_constants.py
+${PYSITELIB}/email_validator/rfc_constants.pyc
+${PYSITELIB}/email_validator/rfc_constants.pyo
+${PYSITELIB}/email_validator/syntax.py
+${PYSITELIB}/email_validator/syntax.pyc
+${PYSITELIB}/email_validator/syntax.pyo
+${PYSITELIB}/email_validator/validate_email.py
+${PYSITELIB}/email_validator/validate_email.pyc
+${PYSITELIB}/email_validator/validate_email.pyo
+${PYSITELIB}/email_validator/version.py
+${PYSITELIB}/email_validator/version.pyc
+${PYSITELIB}/email_validator/version.pyo
Index: pkgsrc/mail/py-email_validator/distinfo
diff -u pkgsrc/mail/py-email_validator/distinfo:1.6 pkgsrc/mail/py-email_validator/distinfo:1.7
--- pkgsrc/mail/py-email_validator/distinfo:1.6 Tue Oct 26 10:54:23 2021
+++ pkgsrc/mail/py-email_validator/distinfo Wed Jan 31 00:02:03 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 10:54:23 nia Exp $
+$NetBSD: distinfo,v 1.7 2024/01/31 00:02:03 adam Exp $
-BLAKE2s (email_validator-1.1.3.tar.gz) = d68568f900a8ff9a216bef3730effa8f24207d30a5dc419ddebc4c671ef788d7
-SHA512 (email_validator-1.1.3.tar.gz) = 5843da953a0f30efdf712f04cba63dfcb1ade011bd14cd9e9fb772bcb2c34e7f2469b1d4b7d04d88dc06cde2d4a56fb734f083f18caee4ae11096da1769c06ae
-Size (email_validator-1.1.3.tar.gz) = 24484 bytes
+BLAKE2s (email_validator-2.1.0.post1.tar.gz) = 9a82ac5e0af5595daaf6936214b2e7a592fb6f782f01d509c0da6c007da949d8
+SHA512 (email_validator-2.1.0.post1.tar.gz) = a9ed642bf3c8f80b3a5e832f31e4ea114dcb012afe162439803a499a7ad016b10f6a25092cc61e445f91a1fe1ab6cfb7eb0aca054fd5458c0b935baf92735739
+Size (email_validator-2.1.0.post1.tar.gz) = 46288 bytes
Home |
Main Index |
Thread Index |
Old Index