15
0
forked from pool/python-gql

Accepting request 1295408 from devel:languages:python

- Add patch support-new-pytest-asyncio.patch:
  * Support changes required by pytest-asyncio >= 0.25.
- Convert to using libalternatives.

OBS-URL: https://build.opensuse.org/request/show/1295408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gql?expand=0&rev=3
This commit is contained in:
2025-07-24 16:46:40 +00:00
committed by Git OBS Bridge
3 changed files with 2745 additions and 14 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jul 24 02:45:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-new-pytest-asyncio.patch:
* Support changes required by pytest-asyncio >= 0.25.
- Convert to using libalternatives.
-------------------------------------------------------------------
Fri May 30 07:37:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -16,17 +16,23 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-gql
Version: 3.5.3
Release: 0
Summary: GraphQL client for Python
License: MIT
Group: Development/Languages/Python
URL: https://gql.readthedocs.io
Source: https://github.com/graphql-python/gql/archive/refs/tags/v%{version}.tar.gz#/gql-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Based on gh#graphql-python/gql#504
Patch0: fix-tests.patch
# PATCH-FIX-UPSTREAM Based on gh#graphql-python/gql#537
Patch1: support-new-pytest-asyncio.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
@@ -40,7 +46,6 @@ BuildRequires: %{python_module flake8}
BuildRequires: %{python_module graphql-core >= 3.2 with %python-graphql-core < 3.4}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module parse}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycodestyle}
BuildRequires: %{python_module pylama}
BuildRequires: %{python_module pytest-asyncio}
@@ -51,15 +56,13 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests-toolbelt}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module websockets}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module yarl}
# /SECTION
Requires: alts
Requires: python-anyio
Requires: python-backoff >= 1.11.1
Requires: python-yarl >= 1.6
Requires: (python-graphql-core >= 3.2 with python-graphql-core < 3.4)
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -67,8 +70,7 @@ BuildArch: noarch
GraphQL client for Python.
%prep
%setup -q -n gql-%{version}
%autopatch -p1
%autosetup -p1 -n gql-%{version}
# remove not needed gql-checker subproject
rm -Rf gql-checker
@@ -85,13 +87,8 @@ rm -Rf gql-checker
# skip some non-functional tests
%pytest -k "not (test_aiohttp_using_cli_ep or test_cli_ep_version or test_httpx_using_cli_ep or test_async_client_validation)"
%files %{python_files}
%post
%python_install_alternative gql-cli
%postun
%python_uninstall_alternative gql-cli
%pre
%python_libalternatives_reset_alternative gql-cli
%files %{python_files}
%license LICENSE

File diff suppressed because it is too large Load Diff