forked from pool/python-gql
Accepting request 1255013 from devel:languages:python:misc
needed by python-python-gitlab OBS-URL: https://build.opensuse.org/request/show/1255013 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gql?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
22
fix-tests.patch
Normal file
22
fix-tests.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/tests/test_client.py b/tests/test_client.py
|
||||
index ada129c..81f66db 100644
|
||||
--- a/tests/test_client.py
|
||||
+++ b/tests/test_client.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
from contextlib import suppress
|
||||
|
||||
-import mock
|
||||
+import unittest
|
||||
import pytest
|
||||
from graphql import build_ast_schema, parse
|
||||
|
||||
@@ -59,7 +59,7 @@ def test_request_async_execute_batch_not_implemented_yet():
|
||||
|
||||
|
||||
@pytest.mark.requests
|
||||
-@mock.patch("urllib3.connection.HTTPConnection._new_conn")
|
||||
+@unittest.mock.patch("urllib3.connection.HTTPConnection._new_conn")
|
||||
def test_retries_on_transport(execute_mock):
|
||||
"""Testing retries on the transport level
|
||||
|
||||
3
gql-3.5.2.tar.gz
Normal file
3
gql-3.5.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db696875155229b0b04e347b8afd0baf648a65a71d5403dd8de250e248ad75c5
|
||||
size 185202
|
||||
31
python-gql.changes
Normal file
31
python-gql.changes
Normal file
@@ -0,0 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 9 14:41:10 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- update to 3.5.2:
|
||||
* Now supporting graphql-core v3.2.4 again (See issue #534)
|
||||
- Allow graphql-core 3.2.4 by retrofitting introspection
|
||||
commits #535
|
||||
- update to 3.5.1:
|
||||
Issue #529 reported that by default the AIOHTTPTransport was not
|
||||
validating ssl certificates (a self-certificate was accepted by
|
||||
default).
|
||||
This version adds a warning to warn users (See PR #533).
|
||||
As a workaround, using ssl=True in the transport arguments fix
|
||||
the issue.
|
||||
graphql-core has been restricted to <3.2.4 to fix tests.
|
||||
A new stable version will be made shortly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 18:52:04 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Update to version 3.5.0
|
||||
- Specfile cleanup
|
||||
- Use tarball from github
|
||||
- Run tests
|
||||
- Add patch
|
||||
* fix-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 7 09:15:35 AM UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for v0.2.0
|
||||
100
python-gql.spec
Normal file
100
python-gql.spec
Normal file
@@ -0,0 +1,100 @@
|
||||
#
|
||||
# spec file for package python-gql
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-gql
|
||||
Version: 3.5.2
|
||||
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
|
||||
Patch0: fix-tests.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module aiofiles}
|
||||
BuildRequires: %{python_module aiohttp}
|
||||
BuildRequires: %{python_module anyio}
|
||||
BuildRequires: %{python_module backoff >= 1.10.0}
|
||||
BuildRequires: %{python_module botocore}
|
||||
BuildRequires: %{python_module flake8-import-order}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module graphql-core >= 3.2 with %python-graphql-core < 3.2.5}
|
||||
BuildRequires: %{python_module httpx}
|
||||
BuildRequires: %{python_module parse}
|
||||
BuildRequires: %{python_module pycodestyle}
|
||||
BuildRequires: %{python_module pylama}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest-vcr}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests-toolbelt}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module websockets}
|
||||
BuildRequires: %{python_module yarl}
|
||||
# /SECTION
|
||||
Requires: python-anyio
|
||||
Requires: python-backoff >= 1.11.1
|
||||
Requires: (python-graphql-core >= 3.2 with python-graphql-core < 3.2.5)
|
||||
Requires: python-yarl >= 1.6
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
GraphQL client for Python.
|
||||
|
||||
%prep
|
||||
%setup -q -n gql-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
# remove not needed gql-checker subproject
|
||||
rm -Rf gql-checker
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/gql-cli
|
||||
|
||||
%check
|
||||
# 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
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%python_alternative %{_bindir}/gql-cli
|
||||
%{python_sitelib}/gql
|
||||
%{python_sitelib}/gql-%{version}*-py*.egg-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user