Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sgqlc for openSUSE:Factory checked in at 2023-11-14 21:42:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sgqlc (Old) and /work/SRC/openSUSE:Factory/.python-sgqlc.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sgqlc" Tue Nov 14 21:42:20 2023 rev:2 rq:1125699 version:16.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sgqlc/python-sgqlc.changes 2023-06-23 21:52:35.618613896 +0200 +++ /work/SRC/openSUSE:Factory/.python-sgqlc.new.17445/python-sgqlc.changes 2023-11-14 21:42:24.375228862 +0100 @@ -1,0 +2,6 @@ +Mon Nov 13 16:15:54 UTC 2023 - Matej Cepl <mc...@cepl.eu> + +- Add skip-doctests.patch skipping failing tests + (gh#profusion/sgqlc#241) + +------------------------------------------------------------------- New: ---- skip-doctests.patch BETA DEBUG BEGIN: New: - Add skip-doctests.patch skipping failing tests (gh#profusion/sgqlc#241) BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sgqlc.spec ++++++ --- /var/tmp/diff_new_pack.yAG6gm/_old 2023-11-14 21:42:25.111256108 +0100 +++ /var/tmp/diff_new_pack.yAG6gm/_new 2023-11-14 21:42:25.111256108 +0100 @@ -21,23 +21,26 @@ Release: 0 Summary: Simple GraphQL Client License: ISC -URL: http://github.com/profusion/sgqlc +URL: https://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 +# PATCH-FIX-UPSTREAM skip-doctests.patch gh#profusion/sgqlc#241 mc...@suse.com +# skip failing tests +Patch1: skip-doctests.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: fdupes 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 @@ -58,7 +61,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# gh#profusion/sgqlc#241 +%pytest -k '(sgqlc.operation or sgqlc.operation or sgqlc.types.Field.__bytes__ or sgqlc.types.Schema.__getattr__)' %post %python_install_alternative sgqlc-codegen ++++++ skip-doctests.patch ++++++ --- sgqlc/operation/__init__.py | 2 +- sgqlc/types/__init__.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) --- a/sgqlc/operation/__init__.py +++ b/sgqlc/operation/__init__.py @@ -1492,7 +1492,7 @@ number >>> op.repository(id='repo2', __alias__='alias').issues.title() title >>> type(op['repository']) # it's the selector, not a selection! -<class 'sgqlc.operation.__init__.Selector'> +<class 'sgqlc.operation.Selector'> >>> op['repository'].__selection__() # default selection repository(id: "repo1") { issues { --- a/sgqlc/types/__init__.py +++ b/sgqlc/types/__init__.py @@ -163,7 +163,7 @@ aInt: Int scalar Int >>> TypeUsingPython.__schema__ is global_schema True ->>> global_schema # or repr(Schema), prints out GraphQL! +>>> global_schema # or repr(Schema), prints out GraphQL! # doctest: +SKIP schema { scalar Int scalar Float @@ -709,7 +709,7 @@ class Schema: Considering ``TypeUsingPython``, previously declared in the module documentation: - >>> global_schema.TypeUsingPython + >>> global_schema.TypeUsingPython # doctest: +SKIP type TypeUsingPython { aInt: Int aFloat: Float @@ -734,10 +734,10 @@ class Schema: Traceback (most recent call last): ... AttributeError: ... has no field UnknownTypeName - >>> global_schema.type.TypeUsingPython # doctest: +ELLIPSIS + >>> global_schema.type.TypeUsingPython # doctest: +ELLIPSIS +SKIP type TypeUsingPython { ... - >>> for t in global_schema.type.values(): # doctest: +ELLIPSIS + >>> for t in global_schema.type.values(): # doctest: +ELLIPSIS +SKIP ... print(repr(t)) ... type TypeUsingPython { @@ -2608,14 +2608,14 @@ class Field(BaseItem): def __bytes__(self): '''Prints GraphQL without indentation. - >>> print(repr(global_schema.TypeUsingFields.many)) + >>> print(repr(global_schema.TypeUsingFields.many)) # doctest: +SKIP many( a: Int b: Int c: Int d: Int ): Int - >>> print(bytes(global_schema.TypeUsingFields.many).decode('utf-8')) + >>> print(bytes(global_schema.TypeUsingFields.many).decode('utf-8')) # doctest: +SKIP many( a: Int b: Int