public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-sgqlc] rawhide: Update to python-sgqlc-19 rhbz#2576064
Date: Thu, 26 Nov 2026 20:23:59 GMT	[thread overview]
Message-ID: <179572463946.1.7159486910937344927.rpms-python-sgqlc-3fa051b5c1b4@fedoraproject.org> (raw)

            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
 
 

                 reply	other threads:[~2026-11-26 20:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179572463946.1.7159486910937344927.rpms-python-sgqlc-3fa051b5c1b4@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox