Hello community,
here is the log from the commit of package python-email_validator for
openSUSE:Leap:15.2 checked in at 2020-05-26 18:33:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-email_validator (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-email_validator.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-email_validator"
Tue May 26 18:33:05 2020 rev:12 rq:808622 version:1.1.0
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-email_validator/python-email_validator.changes
2020-03-16 12:20:45.911705646 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-email_validator.new.2738/python-email_validator.changes
2020-05-26 18:33:09.821678457 +0200
@@ -1,0 +2,21 @@
+Mon May 11 07:38:24 UTC 2020 - Antonio Larrosa <[email protected]>
+
+- Do not build python2 version
+- Add patch to fix error messages being compared in tests to match
+ error messages in Leap/SLE:
+ * fix-tests-strings.patch
+
+-------------------------------------------------------------------
+Thu May 7 12:03:47 UTC 2020 - Antonio Larrosa <[email protected]>
+
+- version update to 1.1.0
+ * no upstream changelog
+
+- version update to 1.0.5
+ * no upstream changelog
+
+- Use pytest
+- Add patch to skip tests that try to check MX records of domains:
+ * skip-tests-using-network.patch
+
+-------------------------------------------------------------------
Old:
----
v1.0.4.tar.gz
New:
----
fix-tests-strings.patch
skip-tests-using-network.patch
v1.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-email_validator.spec ++++++
--- /var/tmp/diff_new_pack.W02AsU/_old 2020-05-26 18:33:10.205679296 +0200
+++ /var/tmp/diff_new_pack.W02AsU/_new 2020-05-26 18:33:10.209679304 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-email_validator
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-email_validator
-Version: 1.0.4
+Version: 1.1.0
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/v%{version}.tar.gz
+Patch0: skip-tests-using-network.patch
+Patch1: fix-tests-strings.patch
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module idna >= 2.0.0}
+BuildRequires: %{python_module pytest >= 5.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -53,6 +57,10 @@
%prep
%setup -q -n python-email-validator-%{version}
+%patch0 -p1
+%if %{?suse_version} <= 1500
+%patch1 -p1
+%endif
%build
%python_build
@@ -62,11 +70,11 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%{python_expand $python email_validator/__init__.py --tests < test_pass.txt}
+%pytest
%files %{python_files}
%license LICENSE
-%doc README.rst
+%doc README.md
%python3_only %{_bindir}/email_validator
%{python_sitelib}/*
++++++ fix-tests-strings.patch ++++++
Index: python-email-validator-1.1.0/tests/test_main.py
===================================================================
--- python-email-validator-1.1.0.orig/tests/test_main.py
+++ python-email-validator-1.1.0/tests/test_main.py
@@ -212,17 +212,17 @@ def test_email_valid(email_input, output
('[email protected]', 'An email address cannot have a period
immediately after the @-sign.'),
('[email protected]', 'An email address cannot have two periods in a
row.'),
('[email protected]',
- 'The domain name baddash.-.com contains invalid characters (Label
must not start or end with a hyphen).'),
+ 'The domain name baddash.-.com contains invalid characters (The label
b\'-\' is not a valid A-label).'),
('[email protected]',
- 'The domain name baddash.-a.com contains invalid characters (Label
must not start or end with a hyphen).'),
+ 'The domain name baddash.-a.com contains invalid characters (The
label b\'-a\' is not a valid A-label).'),
('[email protected]',
- 'The domain name baddash.b-.com contains invalid characters (Label
must not start or end with a hyphen).'),
+ 'The domain name baddash.b-.com contains invalid characters (The
label b\'b-\' is not a valid A-label).'),
('[email protected]\n',
- 'The domain name example.com\n contains invalid characters (Codepoint
U+000A at position 4 of '
- '\'com\\n\' not allowed).'),
+ 'The domain name example.com\n contains invalid characters (Codepoint
U+000A not allowed at '
+ 'position 12 in \'example.com\\n\').'),
('my@example\n.com',
- 'The domain name example\n.com contains invalid characters (Codepoint
U+000A at position 8 of '
- '\'example\\n\' not allowed).'),
+ 'The domain name example\n.com contains invalid characters (Codepoint
U+000A not allowed at '
+ 'position 8 in \'example\\n.com\').'),
('[email protected]', 'The email address contains invalid
characters before the @-sign: ..'),
('[email protected]', 'The email address contains invalid
characters before the @-sign: ..'),
('[email protected]', 'The email address contains invalid
characters before the @-sign: ..'),
++++++ skip-tests-using-network.patch ++++++
Index: python-email-validator-1.1.0/tests/test_main.py
===================================================================
--- python-email-validator-1.1.0.orig/tests/test_main.py
+++ python-email-validator-1.1.0/tests/test_main.py
@@ -250,10 +250,12 @@ def test_email_invalid(email_input, erro
assert str(exc_info.value) == error_msg
[email protected](reason="skipping tests using network")
def test_deliverability_no_records():
assert validate_email_deliverability('example.com', 'example.com') ==
{'mx': [(0, '')], 'mx-fallback': None}
[email protected](reason="skipping tests using network")
def test_deliverability_found():
response = validate_email_deliverability('gmail.com', 'gmail.com')
assert response.keys() == {'mx', 'mx-fallback'}
@@ -264,6 +266,7 @@ def test_deliverability_found():
assert response['mx'][0][1].endswith('.com')
[email protected](reason="skipping tests using network")
def test_deliverability_fails():
domain = 'xkxufoekjvjfjeodlfmdfjcu.com'
with pytest.raises(EmailUndeliverableError, match='The domain name {} does
not exist'.format(domain)):
++++++ v1.0.4.tar.gz -> v1.1.0.tar.gz ++++++
++++ 2153 lines of diff (skipped)