77a6994
%global pypi_name websockets
77a6994
8b802bb
%ifarch x86_64
b310694
%bcond_without tests
b310694
%endif
b310694
77a6994
Name:           python-%{pypi_name}
e4f0453
Version:        12.0
bf3eefa
Release:        3%{?dist}
39830c6
Summary:        Implementation of the WebSocket Protocol for Python
77a6994
4b9f8e3
License:        BSD-3-Clause
f084021
URL:            https://github.com/aaugustin/websockets
08e9535
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
77a6994
b7096b2
BuildRequires:  gcc
77a6994
08e9535
%if %{with tests}
08e9535
BuildRequires:  python3dist(pytest)
08e9535
%endif
08e9535
ae088f4
%global _description %{expand:
ae088f4
websockets is a library for developing WebSocket servers and clients in
ae088f4
Python. It implements RFC 6455 with a focus on correctness and simplicity. It
ae088f4
passes the Autobahn Testsuite.
ae088f4
ae088f4
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it
ae088f4
provides an API based on coroutines, making it easy to write highly concurrent
ae088f4
applications.}
77a6994
ca6410a
%description %{_description}
77a6994
77a6994
%package -n     python3-%{pypi_name}
b7096b2
Summary:        %{summary}
b310694
BuildRequires:  python3-devel
77a6994
ca6410a
%description -n python3-%{pypi_name} %{_description}
77a6994
77a6994
%prep
ca6410a
%autosetup -n %{pypi_name}-%{version} -p1
ae088f4
ae088f4
%generate_buildrequires
08e9535
%pyproject_buildrequires
77a6994
77a6994
%build
ae088f4
%pyproject_wheel
77a6994
77a6994
%install
ae088f4
%pyproject_install
ae088f4
%pyproject_save_files websockets
77a6994
77a6994
%check
08e9535
%pyproject_check_import
08e9535
b310694
%if %{with tests}
08e9535
# Skip some tests that require network connectivity and/or a running daemon.
6b8f125
# Investigate: test_server_shuts_down_* tests hang or fail on Python 3.12
6b8f125
%pytest -v --ignore compliance --ignore tests/sync -k "not test_explicit_host_port and not test_server_shuts_down"
b310694
%endif
27d89be
77a6994
ae088f4
%files -n python3-%{pypi_name} -f %{pyproject_files}
c97e632
%doc README.rst
77a6994
77a6994
%changelog
bf3eefa
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-3
bf3eefa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
bf3eefa
190009e
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-2
190009e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
190009e
e4f0453
* Wed Jan 03 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 12.0-1
e4f0453
- Update to 12.0 rhbz#2245452
e4f0453
92c0cc4
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 11.0.3-4
92c0cc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
92c0cc4
1eaa6d0
* Tue Jul 04 2023 Python Maint <python-maint@redhat.com> - 11.0.3-3
1eaa6d0
- Rebuilt for Python 3.12
1eaa6d0
08e9535
* Wed Jun 28 2023 Major Hayden <major@redhat.com> - 11.0.3-2
08e9535
- Switch to GitHub source to get tests
08e9535
- Replace tox with pytest
08e9535
- Add pyproject_check_import
08e9535
ed2b470
* Wed Jun 28 2023 Major Hayden <major@redhat.com> - 11.0.3-1
ed2b470
- Update to 11.0.3
ed2b470
31092ba
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 11.0.2-2
31092ba
- Rebuilt for Python 3.12
31092ba
20e4222
* Tue Apr 25 2023 Julien Enselme <jujens@jujens.eu> - 11.0.2-1
20e4222
- Update to 11.0.2
20e4222
6abea9e
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 10.4-2
6abea9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
6abea9e
2f1ce2b
* Wed Dec 07 2022 Rommel Layco <rj.layco@gmail.com> - 10.4-1
2f1ce2b
- Update to 10.4
2f1ce2b
6c612a5
* Fri Aug 12 2022 Julien Enselme <jujens@jujens.eu> - 10.3-3
6c612a5
- Rebuild to update Python bytecode files.
6c612a5
f7b3ef6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.3-2
f7b3ef6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
f7b3ef6
db460b1
* Sat Jul 09 2022 Fabian Affolter <mail@fabian-affolter.ch> - 10.3-1
db460b1
- Update to latest upstream release 10.3 (closes rhbz#2076066)
db460b1
7d6390c
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 10.2-2
7d6390c
- Rebuilt for Python 3.11
7d6390c
39830c6
* Tue Feb 22 2022 Fabian Affolter <mail@fabian-affolter.ch> - 10.2-1
39830c6
- Update to latest upstream release 10.2 (closes rhbz#2056433)
39830c6
b310694
* Thu Feb 03 2022 Carl George <carl@george.computer> - 10.1-1
b310694
- Latest upstream rhbz#2023114
b310694
- Only run tests on x86 architectures
b310694
ae088f4
* Wed Feb 02 2022 Carl George <carl@george.computer> - 10.0-3
ae088f4
- Convert to pyproject macros
ae088f4
- Run test suite in %%check
ae088f4
66cdd8b
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.0-2
66cdd8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
66cdd8b
88f0e38
* Fri Sep 10 2021 Tomas Hrnciar <thrnciar@redhat.com> - 10.0-1
88f0e38
- Update to 10.0
88f0e38
- Fixes: rhbz#2002542
88f0e38
f084021
* Mon Jul 19 2021 Carl George <carl@george.computer> - 9.1-1
f084021
- Latest upstream
f084021
- Resolves: rhbz#1955976
f084021
dcf6f26
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 8.1-4
dcf6f26
- Rebuilt for Python 3.10
dcf6f26
58321d6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.1-3
58321d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
58321d6
5680eda
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.1-2
5680eda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5680eda
044bba7
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 8.1-1
044bba7
- Update to 8.1
044bba7
a8c898e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 8.0.2-5
a8c898e
- Rebuilt for Python 3.9
a8c898e
4ea317c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.2-4
4ea317c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4ea317c
faa283f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.2-3
faa283f
- Rebuilt for Python 3.8.0rc1 (#1748018)
faa283f
7dd8179
* Wed Aug 21 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.2-2
7dd8179
- Rebuilt for Python 3.8
7dd8179
198db8f
* Tue Aug 20 2019 Julien Enselme <jujens@jujens> - 8.0.2-1
198db8f
- Update to 8.0.2
198db8f
61576d2
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0-4
61576d2
- Rebuilt for Python 3.8
61576d2
7478449
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-3
7478449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7478449
edf411b
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 8.0-2
edf411b
- Skip tests because it prevents rebuild for Python 3.8. They fail because tests check the number of deprecation warnings and more are raised on Python 3.8.
edf411b
27d89be
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 8.0-1
27d89be
- Update to 8.0
27d89be
5acc83f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-2
5acc83f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5acc83f
0c6153f
* Fri Jul 20 2018 Julien Enselme <jujens@jujens.eu> - 6.0
0c6153f
- Update to 6.0
0c6153f
6e1eeb5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-3
6e1eeb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6e1eeb5
eaa6463
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.0.1-2
eaa6463
- Rebuilt for Python 3.7
eaa6463
8d9a127
* Sat Jun 02 2018 Julien Enselme <jujens@jujens.eu> - 5.0.1-1
8d9a127
- Update to 5.0.1
8d9a127
f53376d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
f53376d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f53376d
f820f16
* Mon Nov 06 2017 Julien Enselme <jujens@jujens.eu> - 4.0.1-1
f820f16
- Update to 4.0.1
f820f16
3fc7911
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 3.4-2
3fc7911
- Remove tests with timeouts
3fc7911
4d63963
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 3.4-1
4d63963
- Update to 3.4
4d63963
2b5826a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
2b5826a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2b5826a
c97e632
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 3.3-1
c97e632
- Update to 3.3
c97e632
e1d8fca
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-4
e1d8fca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e1d8fca
9112471
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.2-3
9112471
- Rebuild for Python 3.6
9112471
7be117d
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 3.2-2
7be117d
- Correct tests on Python 3.5.2
7be117d
bbf4cb3
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 3.2-1
783fa94
- Update to 3.2
783fa94
dc1e88a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
dc1e88a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
dc1e88a
8b66dff
* Tue Jun 21 2016 Julien Enselme <jujens@jujens.eu> - 3.1-1
8b66dff
- Update to 3.1
8b66dff
ddaaa50
* Sun Feb 14 2016 Julien Enselme <jujens@jujens.eu> - 3.0-1
ddaaa50
- Update to 3.0
ddaaa50
- Correct build on rawhide
ddaaa50
7ee53ab
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-2
7ee53ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7ee53ab
c39cb50
* Sun Nov 22 2015 Julien Enselme <jujens@jujens.eu> - 2.7-1
c39cb50
- Update to 2.7
c39cb50
ea3eec4
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 2.6-2
ea3eec4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
ea3eec4
77a6994
* Wed Aug 26 2015 Julien Enselme <jujens@jujens.eu> - 2.6-1
77a6994
- Initial package