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: relaxed the pin in %prep + fix F46FTBFS
Date: Sat, 07 Nov 2026 21:07:12 GMT	[thread overview]
Message-ID: <179408563297.1.1165337446051378927.rpms-python-sgqlc-21bcd24f7acb@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-sgqlc
Branch : rawhide
Commit : 21bcd24f7acbffb1d782aee4f464b4f26822dd56
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-11-07T15:11:34-03:00
Stats  : +36/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-sgqlc/c/21bcd24f7acbffb1d782aee4f464b4f26822dd56?branch=rawhide

Log:
relaxed the pin in %prep + fix F46FTBFS

---
diff --git a/0001-handle-None-arguments-in-codegen.patch b/0001-handle-None-arguments-in-codegen.patch
new file mode 100644
index 0000000..44f820c
--- /dev/null
+++ b/0001-handle-None-arguments-in-codegen.patch
@@ -0,0 +1,33 @@
+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 1923c0b..bf26800 100644
--- a/python-sgqlc.spec
+++ b/python-sgqlc.spec
@@ -12,6 +12,8 @@ License:        ISC
 URL:            %forgeurl
 Source:         %forgesource
 
+Patch1:         0001-handle-None-arguments-in-codegen.patch
+
 BuildArch:      noarch
 BuildRequires:  python3-devel
 # For tests
@@ -42,6 +44,7 @@ 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-07 21:07 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=179408563297.1.1165337446051378927.rpms-python-sgqlc-21bcd24f7acb@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