Accepting request 1001873 from devel:languages:python
- 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/request/show/1001873 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-email-validator?expand=0&rev=2
This commit is contained in:
commit
854bafb7a5
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d72cede858e5bdde6f8cce85a75d671e1748278729c92b802e8e6e1cd852b710
|
||||
size 19863
|
3
email_validator-1.2.1.tar.gz
Normal file
3
email_validator-1.2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1ac47d82c6f6b924f4cde3cf1dbd24249d2272ba338ad2aedc616838fd8d88bd
|
||||
size 24348
|
9
ignore-urllib3-pyopenssl-warning.patch
Normal file
9
ignore-urllib3-pyopenssl-warning.patch
Normal file
@ -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
|
@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 8 07:24:18 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user