14
0

8 Commits

Author SHA256 Message Date
be5d5af92f Accepting request 1300805 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1300805
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-email-validator?expand=0&rev=12
2025-08-22 15:47:12 +00:00
973ff5a1b2 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-email-validator?expand=0&rev=26
2025-08-14 13:08:14 +00:00
91eec5183c Accepting request 1291275 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291275
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-email-validator?expand=0&rev=11
2025-07-09 15:26:10 +00:00
da4717b14a - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-email-validator?expand=0&rev=24
2025-07-08 13:12:19 +00:00
7321842902 Accepting request 1287770 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1287770
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-email-validator?expand=0&rev=10
2025-06-24 18:45:44 +00:00
f03e0795aa - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-email-validator?expand=0&rev=22
2025-06-23 01:33:15 +00:00
bbb0eee201 Accepting request 1184005 from devel:languages:python
- update to 2.2.0:
  * Email addresses with internationalized local parts could,
    with rare Unicode characters, be returned as valid but
    actually be invalid in their normalized form (returned in the
    `normalized` field). Local parts now re-validated after
    Unicode NFC normalization to ensure that invalid characters
    cannot be injected into the normalized address and that
    characters with length-increasing NFC normalizations cannot
    cause a local part to exceed the maximum length after
    normalization.
  * The length check for email addresses with internationalized
    local parts is now also applied to the original address
    string prior to Unicode NFC normalization, which may be
    longer and could exceed the maximum email address length, to
    protect callers who do not use the returned normalized
    address.
  * Improved error message for IDNA domains that are too long or
    have invalid characters after Unicode normalization.
  * A new option to parse `My Name <address@domain>` strings,
    i.e. a display name plus an email address in angle brackets,
    is now available. It is off by default.
  * Improvements to Python typing.
  * Some additional tests added.

OBS-URL: https://build.opensuse.org/request/show/1184005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-email-validator?expand=0&rev=9
2024-07-02 16:14:32 +00:00
1b6ec08e25 - update to 2.2.0:
* Email addresses with internationalized local parts could,
    with rare Unicode characters, be returned as valid but
    actually be invalid in their normalized form (returned in the
    `normalized` field). Local parts now re-validated after
    Unicode NFC normalization to ensure that invalid characters
    cannot be injected into the normalized address and that
    characters with length-increasing NFC normalizations cannot
    cause a local part to exceed the maximum length after
    normalization.
  * The length check for email addresses with internationalized
    local parts is now also applied to the original address
    string prior to Unicode NFC normalization, which may be
    longer and could exceed the maximum email address length, to
    protect callers who do not use the returned normalized
    address.
  * Improved error message for IDNA domains that are too long or
    have invalid characters after Unicode normalization.
  * A new option to parse `My Name <address@domain>` strings,
    i.e. a display name plus an email address in angle brackets,
    is now available. It is off by default.
  * Improvements to Python typing.
  * Some additional tests added.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-email-validator?expand=0&rev=20
2024-06-29 16:02:30 +00:00
4 changed files with 67 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce1ece49c302ade45dd2d7f55608b3f0002a5c710c4b3e7ebd9201e818f397d3
size 39016

BIN
email_validator-2.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,45 @@
-------------------------------------------------------------------
Thu Aug 14 13:04:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Tue Jul 8 13:11:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 23 01:30:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Sat Jun 29 16:02:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.2.0:
* Email addresses with internationalized local parts could,
with rare Unicode characters, be returned as valid but
actually be invalid in their normalized form (returned in the
`normalized` field). Local parts now re-validated after
Unicode NFC normalization to ensure that invalid characters
cannot be injected into the normalized address and that
characters with length-increasing NFC normalizations cannot
cause a local part to exceed the maximum length after
normalization.
* The length check for email addresses with internationalized
local parts is now also applied to the original address
string prior to Unicode NFC normalization, which may be
longer and could exceed the maximum email address length, to
protect callers who do not use the returned normalized
address.
* Improved error message for IDNA domains that are too long or
have invalid characters after Unicode normalization.
* A new option to parse `My Name <address@domain>` strings,
i.e. a display name plus an email address in angle brackets,
is now available. It is off by default.
* Improvements to Python typing.
* Some additional tests added.
-------------------------------------------------------------------
Wed Jun 19 07:08:36 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-email-validator
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,14 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-email-validator
Version: 2.1.2
Version: 2.2.0
Release: 0
Summary: A robust email syntax and deliverability validation library for Python
License: CC0-1.0
@@ -30,18 +35,24 @@ Patch0: ignore-urllib3-pyopenssl-warning.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module idna >= 2.0.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 5.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-dnspython >= 1.15.0
Requires: python-idna >= 2.0.0
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: python-email_validator = %{version}-%{release}
Obsoletes: python-email_validator < %{version}-%{release}
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -63,10 +74,10 @@ Key features:
%autosetup -p1 -n python-email-validator-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/email_validator
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -77,6 +88,9 @@ export RESOLV_FILE=$PWD/resolv.conf
donttest="test_caching_dns_resolver"
%pytest tests -k "not ($donttest)"
%pre
%python_libalternatives_reset_alternative email_validator
%post
%python_install_alternative email_validator
@@ -88,6 +102,6 @@ donttest="test_caching_dns_resolver"
%doc README.md
%python_alternative %{_bindir}/email_validator
%{python_sitelib}/email_validator
%{python_sitelib}/email_validator-%{version}*-info
%{python_sitelib}/email_validator-%{version}.dist-info
%changelog