forked from pool/python-email-validator
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
91eec5183c | |||
da4717b14a | |||
7321842902 | |||
f03e0795aa |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@@ -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,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-email-validator
|
||||
Version: 2.2.0
|
||||
@@ -30,15 +31,16 @@ 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: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
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
|
||||
@@ -63,10 +65,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,17 +79,14 @@ export RESOLV_FILE=$PWD/resolv.conf
|
||||
donttest="test_caching_dns_resolver"
|
||||
%pytest tests -k "not ($donttest)"
|
||||
|
||||
%post
|
||||
%python_install_alternative email_validator
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative email_validator
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative email_validator
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%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
|
||||
|
Reference in New Issue
Block a user