Compare commits

..

No commits in common. 'i10ce' and 'i9ce' have entirely different histories.
i10ce ... i9ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/websocket_client-1.8.0.tar.gz SOURCES/websocket-client-1.2.3.tar.gz

@ -1 +1 @@
9448fe6cbf868c5b01ae9c45fa8a62554af89f19 SOURCES/websocket_client-1.8.0.tar.gz c40b41a73a5aa7c08d28e8d6abd31eff831c295e SOURCES/websocket-client-1.2.3.tar.gz

@ -1,28 +0,0 @@
From dd3e11fbaa0705e52ac58088f543403521dfe58c Mon Sep 17 00:00:00 2001
From: Carl George <carlwgeorge@gmail.com>
Date: Fri, 30 Aug 2024 14:32:00 -0500
Subject: [PATCH] Include pytest in test extra
Fedora uses the test extra to automatically generate build-time
dependencies, so including pytest in this extra allows removal of an
explicit BuildRequires in the RPM spec file.
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 8781948..f6a31f6 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@
download_url="https://github.com/websocket-client/websocket-client/releases",
python_requires=">=3.8",
extras_require={
- "test": ["websockets"],
+ "test": ["pytest", "websockets"],
"optional": ["python-socks", "wsaccel"],
"docs": ["Sphinx >= 6.0", "sphinx_rtd_theme >= 1.1.0", "myst-parser >= 2.0.0"],
},
--
2.46.0

@ -1,3 +1,8 @@
# what it's called on pypi
%global srcname websocket-client
# what it's imported as
%global libname websocket
%global common_description %{expand: %global common_description %{expand:
websocket-client is a WebSocket client for Python. It provides access to low websocket-client is a WebSocket client for Python. It provides access to low
level APIs for WebSockets. websocket-client implements version hybi-13 of the level APIs for WebSockets. websocket-client implements version hybi-13 of the
@ -5,32 +10,34 @@ WebSocket protocol. This client does not currently support the
permessage-deflate extension from RFC 7692.} permessage-deflate extension from RFC 7692.}
Name: python-websocket-client Name: python-%{srcname}
Version: 1.8.0 Version: 1.2.3
Release: 2%{?dist} Release: 2%{?dist}
Summary: WebSocket client for python Summary: WebSocket client for python
License: Apache-2.0 License: ASL 2.0
URL: https://github.com/websocket-client/websocket-client URL: https://github.com/websocket-client/websocket-client
Source0: %pypi_source
BuildArch: noarch BuildArch: noarch
Source: %{pypi_source websocket_client}
# https://github.com/websocket-client/websocket-client/pull/998
Patch: 0001-Include-pytest-in-test-extra.patch
%description %{common_description} %description %{common_description}
%package -n python3-websocket-client %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: %{py3_dist pytest}
# https://fedoraproject.org/wiki/Packaging:Conflicts#Splitting_Packages
# wsdump moved from py2 to py3 package
Conflicts: python2-websocket-client <= 0.40.0-4
%description -n python3-websocket-client %{common_description} %description -n python3-%{srcname} %{common_description}
%prep %prep
%autosetup -p 1 -n websocket_client-%{version} %autosetup -n %{srcname}-%{version}
%generate_buildrequires %generate_buildrequires
@ -43,69 +50,22 @@ BuildRequires: python3-devel
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files -l websocket %pyproject_save_files %{libname}
%check %check
%pytest -v websocket/tests %pytest websocket/tests
%files -n python3-websocket-client -f %{pyproject_files} %files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.md ChangeLog %doc README.md ChangeLog
%{_bindir}/wsdump %{_bindir}/wsdump
%changelog %changelog
* Sun Jan 05 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.8.0-2 * Sun Jul 28 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.2.3-2
- Rebuilt for MSVSphere 10 - Rebuilt for MSVSphere 9.4
* Fri Aug 30 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.8.0-2
- Remove explicit pytest buildreq by including it in the test extra
- Remove duplicate license file
* Fri Aug 30 2024 Michel Lind <salimma@fedoraproject.org> - 1.8.0-1
- Update to 1.8.0
- Don't use macros for names
- Resolves: rhbz#2276771
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 1.7.0-4
- convert license to SPDX
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.7.0-2
- Rebuilt for Python 3.13
* Mon Apr 15 2024 Lumír Balhar <lbalhar@redhat.com> - 1.7.0-1
- Update to 1.7.0 (rhbz#2121193)
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.3.3-4
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jun 30 2022 Major Hayden <major@redhat.com> - 1.3.3-1
- Update to 1.3.3
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 1.3.2-2
- Rebuilt for Python 3.11
* Wed Apr 06 2022 Major Hayden <major@mhtx.net> - 1.3.2-1
- Update to 1.3.2
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-2 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

Loading…
Cancel
Save