public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-awscrt] rawhide: Conditionalize websockets dependency
Date: Mon, 12 Oct 2026 06:44:55 GMT	[thread overview]
Message-ID: <179178749540.1.12621320151122568697.rpms-python-awscrt-2de0712c981e@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-awscrt
            Branch : rawhide
            Commit : 2de0712c981e7dbac7e302613ee9b5edbd5f0165
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-09T12:01:26-04:00
            Stats  : +7/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-awscrt/c/2de0712c981e7dbac7e302613ee9b5edbd5f0165?branch=rawhide

            Log:
            Conditionalize websockets dependency

websockets is used only for one test, and is otherwise not required
for awscrt or awscli2, nor anything else in RHEL.

---
diff --git a/python-awscrt.spec b/python-awscrt.spec
index 5dc99a5..e0f68f2 100644
--- a/python-awscrt.spec
+++ b/python-awscrt.spec
@@ -1,3 +1,5 @@
+%bcond test_websocket %{undefined rhel}
+
 %global desc %{expand:
 Python bindings for the AWS Common Runtime}
 
@@ -32,7 +34,9 @@ BuildRequires:  gcc-c++
 BuildRequires:  cmake
 BuildRequires:  openssl-devel
 
+%if %{with test_websocket}
 BuildRequires:  python%{python3_pkgversion}-websockets
+%endif
 
 ExcludeArch:    %{ix86}
 
@@ -51,6 +55,9 @@ Summary:        %{summary}
 
 %prep
 %autosetup -p1 -n awscrt-%{version}
+%if %{without test_websocket}
+rm -f test/test_websocket.py
+%endif
 
 # relax version requirements
 sed -i -e 's/setuptools>=75\.3\.1/setuptools/' -e 's/wheel>=0\.45\.1/wheel/' pyproject.toml

                 reply	other threads:[~2026-10-12  6:44 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=179178749540.1.12621320151122568697.rpms-python-awscrt-2de0712c981e@fedoraproject.org \
    --to=yselkowi@redhat.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