public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-awscrt] rawhide: Conditionalize websockets dependency
@ 2026-10-12 6:44 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-12 6:44 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-12 6:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 6:44 [rpms/python-awscrt] rawhide: Conditionalize websockets dependency Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox