From 04b4aa3a72f71a64f675ccd21767168fb9d0860406caa09b9ce8d0c1c1fbc4fb Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 8 Sep 2022 07:28:34 +0000 Subject: [PATCH] - Update to 1.2.1: * Rejecting domains with NULL MX records (when deliverability checks are turned on). * Rejecting unsafe unicode characters. (Some of these checks you should be doing on all of your user inputs already!) * Rejecting most special-use reserved domain names. A new test_environment option is added for using @*.test domains. * example and example.com/net/org are removed from the special-use domains list. * SPECIAL_USE_DOMAIN_NAMES is now a documented part of the API (and it is a list instead of a tuple) * New module-level attributes ALLOW_SMTPUTF8, CHECK_DELIVERABILITY, TEST_ENVIRONMENT, and DEFAULT_TIMEOUT can be used to change the default values of the keyword arguments. - Add patch ignore-urllib3-pyopenssl-warning.patch: * Ignore warning as error from requests-toolbelt via dnspython. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-email-validator?expand=0&rev=4 --- email_validator-1.1.3.tar.gz | 3 --- email_validator-1.2.1.tar.gz | 3 +++ ignore-urllib3-pyopenssl-warning.patch | 9 +++++++++ python-email-validator.changes | 20 ++++++++++++++++++++ python-email-validator.spec | 8 +++++--- 5 files changed, 37 insertions(+), 6 deletions(-) delete mode 100644 email_validator-1.1.3.tar.gz create mode 100644 email_validator-1.2.1.tar.gz create mode 100644 ignore-urllib3-pyopenssl-warning.patch diff --git a/email_validator-1.1.3.tar.gz b/email_validator-1.1.3.tar.gz deleted file mode 100644 index 85901d7..0000000 --- a/email_validator-1.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d72cede858e5bdde6f8cce85a75d671e1748278729c92b802e8e6e1cd852b710 -size 19863 diff --git a/email_validator-1.2.1.tar.gz b/email_validator-1.2.1.tar.gz new file mode 100644 index 0000000..67d5e15 --- /dev/null +++ b/email_validator-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ac47d82c6f6b924f4cde3cf1dbd24249d2272ba338ad2aedc616838fd8d88bd +size 24348 diff --git a/ignore-urllib3-pyopenssl-warning.patch b/ignore-urllib3-pyopenssl-warning.patch new file mode 100644 index 0000000..c878d1f --- /dev/null +++ b/ignore-urllib3-pyopenssl-warning.patch @@ -0,0 +1,9 @@ +Index: python-email-validator-1.2.1/setup.cfg +=================================================================== +--- python-email-validator-1.2.1.orig/setup.cfg ++++ python-email-validator-1.2.1/setup.cfg +@@ -43,3 +43,4 @@ max-line-length = 120 + testpaths = tests + filterwarnings = + error ++ ignore:.*urllib3.contrib.pyopenssl.*:DeprecationWarning diff --git a/python-email-validator.changes b/python-email-validator.changes index 11c09de..a21f785 100644 --- a/python-email-validator.changes +++ b/python-email-validator.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Thu Sep 8 07:24:18 UTC 2022 - Steve Kowalik + +- Update to 1.2.1: + * Rejecting domains with NULL MX records (when deliverability checks are + turned on). + * Rejecting unsafe unicode characters. (Some of these checks you should be + doing on all of your user inputs already!) + * Rejecting most special-use reserved domain names. A new test_environment + option is added for using @*.test domains. + * example and example.com/net/org are removed from the special-use domains + list. + * SPECIAL_USE_DOMAIN_NAMES is now a documented part of the API (and it is a + list instead of a tuple) + * New module-level attributes ALLOW_SMTPUTF8, CHECK_DELIVERABILITY, + TEST_ENVIRONMENT, and DEFAULT_TIMEOUT can be used to change the default + values of the keyword arguments. +- Add patch ignore-urllib3-pyopenssl-warning.patch: + * Ignore warning as error from requests-toolbelt via dnspython. + ------------------------------------------------------------------- Tue Apr 19 17:42:44 UTC 2022 - Matej Cepl diff --git a/python-email-validator.spec b/python-email-validator.spec index 8d0f8b1..9092d01 100644 --- a/python-email-validator.spec +++ b/python-email-validator.spec @@ -19,13 +19,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-email-validator -Version: 1.1.3 +Version: 1.2.1 Release: 0 Summary: A robust email syntax and deliverability validation library for Python License: CC0-1.0 -Group: Development/Languages/Python URL: https://github.com/JoshData/python-email-validator Source: https://github.com/JoshData/python-email-validator/archive/refs/tags/v%{version}.tar.gz#/email_validator-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Ignore DeprecationWarning until requests-toolbelt is fixed +# (Pulled in by dnspython) +Patch0: ignore-urllib3-pyopenssl-warning.patch BuildRequires: %{python_module dnspython >= 1.15.0} BuildRequires: %{python_module idna >= 2.0.0} BuildRequires: %{python_module pytest >= 5.0} @@ -69,7 +71,7 @@ Key features: %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest tests -k 'not (test_deliverability_no_records or test_deliverability_found or test_deliverability_fails or test_deliverability_dns_timeout or test_main_single_good_input or test_main_multi_input or test_main_input_shim or test_validate_email__with_caching_resolver or test_validate_email__with_configured_resolver)' +%pytest tests -k 'not (test_deliverability_no_records or test_deliverability_found or test_deliverability_fails or test_deliverability_dns_timeout or test_main_single_good_input or test_main_multi_input or test_main_input_shim or test_validate_email__with_caching_resolver or test_validate_email__with_configured_resolver or test_email_example_reserved_domain)' %post %python_install_alternative email_validator