14
0

- update to 2.1.0:

* 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-email-validator?expand=0&rev=14
This commit is contained in:
2023-11-16 10:03:49 +00:00
committed by Git OBS Bridge
parent 1eb45406a7
commit cfa5cb234a
4 changed files with 21 additions and 5 deletions

View File

@@ -17,9 +17,8 @@
%{?sle15_python_module_pythons}
%define skip_python2 1
Name: python-email-validator
Version: 2.0.0
Version: 2.1.0
Release: 0
Summary: A robust email syntax and deliverability validation library for Python
License: CC0-1.0
@@ -30,6 +29,7 @@ Source: https://github.com/JoshData/python-email-validator/archive/refs/
Patch0: ignore-urllib3-pyopenssl-warning.patch
# PATCH-FIX-OPENSUSE do not require /etc/resolv.conf for testing
Patch1: dont-require-resolv-tests.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module idna >= 2.0.0}
BuildRequires: %{python_module pytest >= 5.0}