Hello community,
here is the log from the commit of package python-email_validator for
openSUSE:Factory checked in at 2020-05-12 22:26:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-email_validator (Old)
and /work/SRC/openSUSE:Factory/.python-email_validator.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-email_validator"
Tue May 12 22:26:47 2020 rev:5 rq:802552 version:1.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-email_validator/python-email_validator.changes
2019-05-08 15:16:00.528927440 +0200
+++
/work/SRC/openSUSE:Factory/.python-email_validator.new.2738/python-email_validator.changes
2020-05-12 22:28:05.043337467 +0200
@@ -1,0 +2,13 @@
+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:
----
skip-tests-using-network.patch
v1.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-email_validator.spec ++++++
--- /var/tmp/diff_new_pack.NteEwk/_old 2020-05-12 22:28:07.139341841 +0200
+++ /var/tmp/diff_new_pack.NteEwk/_new 2020-05-12 22:28:07.143341850 +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
@@ -18,15 +18,17 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
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
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module idna >= 2.0.0}
+BuildRequires: %{python_module pytest >= 4.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -53,6 +55,7 @@
%prep
%setup -q -n python-email-validator-%{version}
+%patch0 -p1
%build
%python_build
@@ -62,11 +65,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}/*
++++++ 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)