14
0
forked from pool/python-sgqlc
2023-06-23 03:31:12 +00:00
committed by Git OBS Bridge
commit 0318d587e0
6 changed files with 120 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

13
no-coverage.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: sgqlc-16.3/pyproject.toml
===================================================================
--- sgqlc-16.3.orig/pyproject.toml
+++ sgqlc-16.3/pyproject.toml
@@ -5,7 +5,7 @@ target-version = ['py37']
force-exclude = '/(doc/|examples/.*(schema|operations)[.]py)'
[tool.pytest.ini_options]
-addopts = '--import-mode=importlib --doctest-modules --cov=sgqlc --cov-fail-under=100 --cov-report=term-missing --cov-report=xml --cov-report=html:cover'
+addopts = '--import-mode=importlib --doctest-modules'
python_files = ['test-*.py', 'test_*.py']
testpaths = [
'sgqlc',

4
python-sgqlc.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Jun 23 03:30:31 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Initial release of 16.3

76
python-sgqlc.spec Normal file
View File

@@ -0,0 +1,76 @@
#
# spec file for package python-sgqlc
#
# Copyright (c) 2023 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-sgqlc
Version: 16.3
Release: 0
Summary: Simple GraphQL Client
License: ISC
URL: http://github.com/profusion/sgqlc
Source: https://files.pythonhosted.org/packages/source/s/sgqlc/sgqlc-%{version}.tar.gz
# PATCH-FIX-OPENSUSE No coverage options in pyproject.toml
Patch0: no-coverage.patch
BuildRequires: %{python_module graphql-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module websocket-client}
BuildRequires: python-rpm-macros
Requires: python-graphql-core
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-requests
Recommends: python-websocket-client
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
This package offers an easy to use GraphQL client. GraphQL is a query
language for APIs and a runtime for fulfilling those queries with your
existing data.
%prep
%autosetup -p1 -n sgqlc-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/sgqlc-codegen
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative sgqlc-codegen
%postun
%python_uninstall_alternative sgqlc-codegen
%files %{python_files}
%doc AUTHORS README.rst
%license LICENSE
%python_alternative %{_bindir}/sgqlc-codegen
%{python_sitelib}/sgqlc
%{python_sitelib}/sgqlc-%{version}.dist-info
%changelog

3
sgqlc-16.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be08857775aa3e65ef7b2c1f0cdcc65dd5794907b162b393c189187fee664558
size 241264