forked from pool/python-graphql-core
modernize packaging
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphql-core?expand=0&rev=17
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user