commit 0318d587e016a00d7b8eff28827751f1376cf8dc4771d96a6672f0a691e0868e Author: Steve Kowalik Date: Fri Jun 23 03:31:12 2023 +0000 - Initial release of 16.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sgqlc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/no-coverage.patch b/no-coverage.patch new file mode 100644 index 0000000..9bacb78 --- /dev/null +++ b/no-coverage.patch @@ -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', diff --git a/python-sgqlc.changes b/python-sgqlc.changes new file mode 100644 index 0000000..db3d9a2 --- /dev/null +++ b/python-sgqlc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 23 03:30:31 UTC 2023 - Steve Kowalik + +- Initial release of 16.3 diff --git a/python-sgqlc.spec b/python-sgqlc.spec new file mode 100644 index 0000000..520bbff --- /dev/null +++ b/python-sgqlc.spec @@ -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 diff --git a/sgqlc-16.3.tar.gz b/sgqlc-16.3.tar.gz new file mode 100644 index 0000000..8d0595c --- /dev/null +++ b/sgqlc-16.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be08857775aa3e65ef7b2c1f0cdcc65dd5794907b162b393c189187fee664558 +size 241264