From 646e3c6795fdbc980322f46c9821f0a127bf6dda8489b650ea556410c31e5459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 4 Feb 2025 14:08:58 +0000 Subject: [PATCH] modernize packaging OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphql-core?expand=0&rev=17 --- python-graphql-core.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python-graphql-core.spec b/python-graphql-core.spec index d016157..d163e5f 100644 --- a/python-graphql-core.spec +++ b/python-graphql-core.spec @@ -16,7 +16,6 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-graphql-core Version: 3.2.6 @@ -26,9 +25,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/graphql-python/graphql-core Source: https://files.pythonhosted.org/packages/source/g/graphql_core/graphql_core-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module pytest-asyncio >= 0.14} BuildRequires: %{python_module pytest-benchmark >= 3.2} -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Conflicts: python-graphql @@ -43,10 +43,10 @@ the JavaScript reference implementation for GraphQL. %setup -q -n graphql_core-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +55,7 @@ the JavaScript reference implementation for GraphQL. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/graphql +%{python_sitelib}/graphql_core-%{version}*info %changelog