From 6a8954965a2291865f1c0c778c450522caf5d40e5797147df169b98e6687b6e0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 3 Sep 2024 09:49:40 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPika?expand=0&rev=2 --- python-PyPika.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/python-PyPika.spec b/python-PyPika.spec index f794620..12f8ed8 100644 --- a/python-PyPika.spec +++ b/python-PyPika.spec @@ -15,23 +15,24 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %{?sle15_python_module_pythons} Name: python-PyPika Version: 0.48.9 Release: 0 Summary: A SQL query builder API for Python License: Apache-2.0 -URL: https://github.com/kayak/pypika Group: Development/Libraries/Python +URL: https://github.com/kayak/pypika Source0: https://files.pythonhosted.org/packages/source/P/PyPika/PyPika-%{version}.tar.gz -Source1: https://github.com/kayak/pypika/archive/refs/tags/v%{version}.tar.gz -BuildRequires: python-rpm-macros +Source1: https://github.com/kayak/pypika/archive/refs/tags/v%{version}.tar.gz +BuildRequires: %{python_module parameterized} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module parameterized} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -42,9 +43,10 @@ A SQL query builder API for Python. The motivation behind PyPika is to provide a %autosetup -p1 -n PyPika-%{version} # tests are not included in the tarball from pypi (cd ..; tar xf %{SOURCE1} pypika-%{version}/pypika/tests) - -%build + cp -r ../pypika-%{version}/pypika/tests ./pypika + +%build %pyproject_wheel %install