From 548f5cf3cf9ff45dd425da6493e26ad2f5ca7d620b4057b49e8ff7f4d92ca3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:33:24 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-validate_email?expand=0&rev=10 --- python-validate_email.changes | 5 +++++ python-validate_email.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-validate_email.changes b/python-validate_email.changes index fbee67e..2f5eca9 100644 --- a/python-validate_email.changes +++ b/python-validate_email.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 12:33:09 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Apr 21 12:38:28 UTC 2023 - Dirk Müller diff --git a/python-validate_email.spec b/python-validate_email.spec index 7035f68..630ee33 100644 --- a/python-validate_email.spec +++ b/python-validate_email.spec @@ -1,7 +1,7 @@ # # spec file for package python-validate_email # -# Copyright (c) 2023 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-validate_email Version: 1.3 @@ -26,7 +25,9 @@ License: LGPL-3.0-or-later Group: Development/Languages/Python URL: https://github.com/syrusakbary/validate_email Source: https://files.pythonhosted.org/packages/source/v/validate_email/validate_email-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,15 +41,17 @@ properly formatted and really exists. %setup -q -n validate_email-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/validate_email.py +%pycache_only %{python_sitelib}/__pycache__/validate_email* +%{python_sitelib}/validate_email-%{version}*-info %changelog