From 81888c75f8b8c6563824bb7aa937b0d5fe8c157ffed066b4ca6555233ab4537a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 4 Feb 2025 13:58:58 +0000 Subject: [PATCH 1/2] - Update to 3.2.6 * Alpha release GraphQL-core v3.3.0a7, based on GraphQL.js v17.0.0a3. * Notable improvements since the last alpha release: + This release also supports Python 3.13 + New incremental response format using id and subPath and pending notifications + OneOf Input Objects via @oneOf directive + Speedup sorting and building/extending schema + Support for fourfold nested lists in introspection + Transform input objects used as default values (#206) + Support deep copy of schema with directive with arg of custom type (#210) + Allow injecting custom data to custom execution context (#226) + ValidationAbortedError can now be imported (#227) + Benchmarking with CodSpeed (#230) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphql-core?expand=0&rev=16 --- .gitattributes | 23 ++++++ .gitignore | 1 + graphql-core-3.2.3.tar.gz | 3 + graphql_core-3.2.5.tar.gz | 3 + graphql_core-3.2.6.tar.gz | 3 + python-graphql-core.changes | 135 ++++++++++++++++++++++++++++++++++++ python-graphql-core.spec | 60 ++++++++++++++++ 7 files changed, 228 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 graphql-core-3.2.3.tar.gz create mode 100644 graphql_core-3.2.5.tar.gz create mode 100644 graphql_core-3.2.6.tar.gz create mode 100644 python-graphql-core.changes create mode 100644 python-graphql-core.spec 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/graphql-core-3.2.3.tar.gz b/graphql-core-3.2.3.tar.gz new file mode 100644 index 0000000..4879b8b --- /dev/null +++ b/graphql-core-3.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06d2aad0ac723e35b1cb47885d3e5c45e956a53bc1b209a9fc5369007fe46676 +size 529552 diff --git a/graphql_core-3.2.5.tar.gz b/graphql_core-3.2.5.tar.gz new file mode 100644 index 0000000..d12af33 --- /dev/null +++ b/graphql_core-3.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e671b90ed653c808715645e3998b7ab67d382d55467b7e2978549111bbabf8d5 +size 504664 diff --git a/graphql_core-3.2.6.tar.gz b/graphql_core-3.2.6.tar.gz new file mode 100644 index 0000000..aa0c6c5 --- /dev/null +++ b/graphql_core-3.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c08eec22f9e40f0bd61d805907e3b3b1b9a320bc606e23dc145eebca07c8fbab +size 505353 diff --git a/python-graphql-core.changes b/python-graphql-core.changes new file mode 100644 index 0000000..34ab353 --- /dev/null +++ b/python-graphql-core.changes @@ -0,0 +1,135 @@ +------------------------------------------------------------------- +Tue Feb 4 11:15:23 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.2.6 + * Alpha release GraphQL-core v3.3.0a7, based on GraphQL.js v17.0.0a3. + * Notable improvements since the last alpha release: + + This release also supports Python 3.13 + + New incremental response format using id and subPath and pending notifications + + OneOf Input Objects via @oneOf directive + + Speedup sorting and building/extending schema + + Support for fourfold nested lists in introspection + + Transform input objects used as default values (#206) + + Support deep copy of schema with directive with arg of custom type (#210) + + Allow injecting custom data to custom execution context (#226) + + ValidationAbortedError can now be imported (#227) + + Benchmarking with CodSpeed (#230) + +------------------------------------------------------------------- +Wed Nov 13 11:03:21 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 3.2.5 + * Patch-release GraphQL-core v3.2.5, based on GraphQL.js v16.8.2. + * This patch-release supports Python 3.6 to 3.13. +- from version 3.2.4 + * Patch-release GraphQL-core v3.2.4, based on GraphQL.js v16.8.2. + * This patch-release supports Python 3.6 to 3.12 and includes these changes: + + Fix invalid original_error propagation in custom scalars + + Fix performance degradation in OverlappingFieldsCanBeMergedRule + + Support fourfold nested lists in introspection + + Avoid various deprecation warnings with newer Python versions +- Adjust upstream source name in spec file + +------------------------------------------------------------------- +Tue Jun 13 12:09:58 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Oct 28 17:25:12 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 3.2.3 + Patch-release GraphQL-core v3.2.3, based on GraphQL.js v16.6.0. + This patch-releases includes only one change in GraphQL.js v16.6.0: + The parser now allows to limit the number of tokens + Thanks to all who are sponsoring me (@Cito) for maintaining this project. + +- Update to 3.2.2 + Patch-release GraphQL-core v3.2.2, based on GraphQL.js v16.4.0. + This patch-releases includes the changes in GraphQL.js v16.4.0, and the following fixes: + Require typing extensions when needed + Recommend using poetry instead of pipenv in the docs (#161) + Cast error message to string to handle proxy objects (#175) + Remove newline in description (#180) + +------------------------------------------------------------------- +Wed Sep 28 21:51:38 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 3.2.1 + Patch-release GraphQL-core v3.2.1, based on GraphQL.js v16.3.0. + This patch-releases includes the changes in GraphQL.js v16.3.0, and the following fix: + Serialize with maximum precision when converting float to FloatValue (#164) + Thanks to @bennyweise for contributing and all who are sponsoring me (@Cito) for maintaining this project. + +- Update to 3.2.0 + Final release of GraphQL-core v3.2.0, based on GraphQL.js v16.2.0. + See v3.2.0rc1, v3.2.0rc2, v3.2.0rc3, v3.2.0rc4, v3.2.0rc5 and the changelog of GraphQL.js for a complete list of changes. + Thanks to all who contributed and are sponsoring me (@Cito) for maintaining this project. + +------------------------------------------------------------------- +Sun May 22 13:59:41 UTC 2022 - Ferdinand Thiessen + +- Update to 3.1.7 + * Patch based on GraphQL.js v15.8.0. + * Set enum value values to value names in build_client_schema + * Fix camel to snake case conversion with digits + * Preserve deprecation_reason on GraphQLInputFields + * Add missing __Directive.args(includeDeprecated) + * Fix original_error.extensions overriding extensions argument +- Update to 3.1.6 + * Patch release based on GraphQL.js v15.5.1. +- Update to 3.1.5 + * Default parse_literal of GraphQLScalarType now handles variables + * build_ast_schema now matches order of default types and directives + * Return formatted errors in formatted execution result + * The is_deprecated property is now deprecated itself + * Input fields and arguments can now be marked as deprecated + * Handle case when MapAsyncIterator is cancelled + * Improve return type for complete_list_value + * Replace resolved types in lexicographic schema sort + * EventEmitter helper class has been replaces by SimplePubSub + * print_ast now breaks arguments over multiple lines +- Update to 3.1.4 + * Fix enum values +- Update to 3.1.3 + * Python 3.9 is now officially suported by GraphQL-core. + * build_schema: allow to reference introspection types + * Custom validation rules for "no schema introspection" and "no deprecated" + * Added execute_sync() as synchronous version of execute() + * Support deep copy of GraphQL schema + * build_ast_schema now sets internal enum values + * Do not double-wrap resolver errors any more + * Use newer Sphinx version, fix for various autodoc issues + * Fix example in docstring of GraphQLUnionType + * Let default resolver check for Mapping instead of dict + +------------------------------------------------------------------- +Mon Jan 25 02:15:12 UTC 2021 - John Vandenberg + +- Update to v3.1.2 + * match GrapqhQL.js v15.1.0 + * Use proper type hints for serializers + * Add @SpecifiedBy directive + * Simplify get_operation_type_node function + * Simplify monkey-patching the did_you_mean function + * Add enum type for visitor return values + * Add all missing type definitions + * Switch to SDL for validation tests + * Support visitors with class and static methods + * block_string: print multi line for trailing backslash + * test_block_string: add fuzzing test for 'print_block_string' + * Simplify gen_fuzz_strings using itertools + * Make documentation for get_field_def more accurate + * Lists in AST nodes should not be optional + * Add test for custom scalars + * build_ast_schema: pass empty schema as literal + +------------------------------------------------------------------- +Sat Jun 6 07:24:00 UTC 2020 - John Vandenberg + +- Update to v3.1.1 + +------------------------------------------------------------------- +Tue Jan 7 09:18:44 AM UTC 2020 - John Vandenberg + +- Initial spec for v3.0.1 diff --git a/python-graphql-core.spec b/python-graphql-core.spec new file mode 100644 index 0000000..d016157 --- /dev/null +++ b/python-graphql-core.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-graphql-core +# +# Copyright (c) 2025 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/ +# + + +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-graphql-core +Version: 3.2.6 +Release: 0 +Summary: GraphQL implementation for Python +License: MIT +Group: Development/Languages/Python +URL: https://github.com/graphql-python/graphql-core +Source: https://files.pythonhosted.org/packages/source/g/graphql_core/graphql_core-%{version}.tar.gz +BuildRequires: %{python_module pytest-asyncio >= 0.14} +BuildRequires: %{python_module pytest-benchmark >= 3.2} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Conflicts: python-graphql +BuildArch: noarch +%python_subpackages + +%description +GraphQL implementation for Python, a port of GraphQL.js, +the JavaScript reference implementation for GraphQL. + +%prep +%setup -q -n graphql_core-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog From 646e3c6795fdbc980322f46c9821f0a127bf6dda8489b650ea556410c31e5459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 4 Feb 2025 14:08:58 +0000 Subject: [PATCH 2/2] modernize packaging OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphql-core?expand=0&rev=17 --- python-graphql-core.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python-graphql-core.spec b/python-graphql-core.spec index d016157..d163e5f 100644 --- a/python-graphql-core.spec +++ b/python-graphql-core.spec @@ -16,7 +16,6 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-graphql-core Version: 3.2.6 @@ -26,9 +25,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/graphql-python/graphql-core Source: https://files.pythonhosted.org/packages/source/g/graphql_core/graphql_core-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module pytest-asyncio >= 0.14} BuildRequires: %{python_module pytest-benchmark >= 3.2} -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Conflicts: python-graphql @@ -43,10 +43,10 @@ the JavaScript reference implementation for GraphQL. %setup -q -n graphql_core-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +55,7 @@ the JavaScript reference implementation for GraphQL. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/graphql +%{python_sitelib}/graphql_core-%{version}*info %changelog