public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-sgqlc] rawhide: Update to python-sgqlc-19 rhbz#2576064
@ 2026-11-26 20:23 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-26 20:23 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-sgqlc
            Branch : rawhide
            Commit : 3fa051b5c1b44b5d4a3f82e1e9f2974142587d88
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-11-26T20:16:24+00:00
            Stats  : +0/-35 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-sgqlc/c/3fa051b5c1b44b5d4a3f82e1e9f2974142587d88?branch=rawhide

            Log:
            Update to python-sgqlc-19 rhbz#2576064

Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>

---
diff --git a/0001-handle-None-arguments-in-codegen.patch b/0001-handle-None-arguments-in-codegen.patch
deleted file mode 100644
index 44f820c..0000000
--- a/0001-handle-None-arguments-in-codegen.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-Subject: [PATCH] Handle None arguments in codegen for graphql-core 3.3
-
-github.com/profusion/sgqlc pull request: #
-
-github.com/graphql-python/graphql-core
-
-graphql-core 3.3 leaves FieldNode.arguments as None when a field has no
-arguments, instead of an empty list. Guard the two iteration sites so
-codegen does not crash with "TypeError: 'NoneType' object is not iterable".
-
----
-diff --git a/sgqlc/codegen/operation.py b/sgqlc/codegen/operation.py
-index 8523b15..cf5aa73 100644
---- a/sgqlc/codegen/operation.py
-+++ b/sgqlc/codegen/operation.py
-@@ -687,7 +687,7 @@ def fragment_%(name)s():
-             if is_value_required(a):
-                 required.add(a['name'])
- 
--        for name, _ in node.arguments:
-+        for name, _ in node.arguments or ():
-             if name in required:
-                 required.remove(name)
- 
-@@ -700,7 +700,7 @@ def fragment_%(name)s():
-     def leave_field(self, node, *_args):
-         self.validate_required_arguments(node)
- 
--        args = node.arguments
-+        args = node.arguments or []
-         alias = ''
-         if node.alias:
-             alias = to_python_name(node.alias)

diff --git a/python-sgqlc.spec b/python-sgqlc.spec
index 819f9d0..d1b9d63 100644
--- a/python-sgqlc.spec
+++ b/python-sgqlc.spec
@@ -12,7 +12,6 @@ License:        ISC
 URL:            %forgeurl
 Source:         %forgesource
 
-Patch1:         0001-handle-None-arguments-in-codegen.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel
@@ -44,7 +43,6 @@ sed -r \
     -e "s/--cov.* //g" \
     -e "s/ --cov.*'/'/" \
     -e "s/ --doctest.*'/'/" \
-    -e "s/graphql-core~=3.2.6/graphql-core>=3.2.6/" \
     -i pyproject.toml
 
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 20:23 [rpms/python-sgqlc] rawhide: Update to python-sgqlc-19 rhbz#2576064 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox