Blame SPECS/python-websockets.spec

5c2b46
%global pypi_name websockets
5c2b46
5c2b46
%ifarch x86_64
5c2b46
%bcond_without tests
5c2b46
%endif
5c2b46
5c2b46
Name:           python-%{pypi_name}
5c2b46
Version:        14.1
5c2b46
Release:        2%{?dist}
5c2b46
Summary:        Implementation of the WebSocket Protocol for Python
5c2b46
5c2b46
License:        BSD-3-Clause
5c2b46
URL:            https://github.com/aaugustin/websockets
5c2b46
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
5c2b46
5c2b46
BuildRequires:  gcc
5c2b46
5c2b46
%if %{with tests}
5c2b46
BuildRequires:  python3dist(pytest)
5c2b46
%endif
5c2b46
5c2b46
%global _description %{expand:
5c2b46
websockets is a library for developing WebSocket servers and clients in
5c2b46
Python. It implements RFC 6455 with a focus on correctness and simplicity. It
5c2b46
passes the Autobahn Testsuite.
5c2b46
5c2b46
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it
5c2b46
provides an API based on coroutines, making it easy to write highly concurrent
5c2b46
applications.}
5c2b46
5c2b46
%description %{_description}
5c2b46
5c2b46
%package -n     python3-%{pypi_name}
5c2b46
Summary:        %{summary}
5c2b46
BuildRequires:  python3-devel
5c2b46
5c2b46
%description -n python3-%{pypi_name} %{_description}
5c2b46
5c2b46
%prep
5c2b46
%autosetup -n %{pypi_name}-%{version} -p1
5c2b46
5c2b46
%generate_buildrequires
5c2b46
%pyproject_buildrequires
5c2b46
5c2b46
%build
5c2b46
%pyproject_wheel
5c2b46
5c2b46
%install
5c2b46
%pyproject_install
5c2b46
%pyproject_save_files websockets
5c2b46
5c2b46
%check
5c2b46
%pyproject_check_import
5c2b46
5c2b46
%if %{with tests}
5c2b46
# Skip some tests that require network connectivity and/or a running daemon.
5c2b46
# Investigate: test_server_shuts_down_* tests hang or fail on Python 3.12
5c2b46
%pytest -v --ignore compliance --ignore tests/sync -k "not test_explicit_host_port and not test_server_shuts_down and not test_keepalive_is_enabled and not test_close_waits and not test_close_server_keeps_handlers_running and not test_keepalive and not test_keepalive_times_out and not test_close_server_keeps_connections_open"
5c2b46
%endif
5c2b46
5c2b46
5c2b46
%files -n python3-%{pypi_name} -f %{pyproject_files}
5c2b46
%doc README.rst
5c2b46
5c2b46
%changelog
5c2b46
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 14.1-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
5c2b46
5c2b46
* Sun Nov 17 2024 Fabian Affolter <mail@fabian-affolter.ch> - 14.1-1
5c2b46
- Update to latest upstream release (closes rhbz#2314017)
5c2b46
5c2b46
* Wed Nov 13 2024 Fabian Affolter <mail@fabian-affolter.ch> - 14.0-1
5c2b46
- Update to latest upstream release (closes rhbz#2314017)
5c2b46
5c2b46
* Tue Nov 05 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 13.1-2
5c2b46
- Add packit configuration
5c2b46
5c2b46
* Tue Nov 05 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 13.1-1
5c2b46
- Update to 13.1 - Closes rhbz#2314017
5c2b46
5c2b46
* Mon Sep 16 2024 Fabian Affolter <mail@fabian-affolter.ch> - 13.0.1-2
5c2b46
- Disable a couple of tests which are failing on koji
5c2b46
5c2b46
* Mon Sep 16 2024 Fabian Affolter <mail@fabian-affolter.ch> - 13.0.1-1
5c2b46
- Update to latest upstream release 13.0.1 (closes rhbz#2306101)
5c2b46
5c2b46
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-5
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
5c2b46
5c2b46
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 12.0-4
5c2b46
- Rebuilt for Python 3.13
5c2b46
5c2b46
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-3
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5c2b46
5c2b46
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5c2b46
5c2b46
* Wed Jan 03 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 12.0-1
5c2b46
- Update to 12.0 rhbz#2245452
5c2b46
5c2b46
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 11.0.3-4
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5c2b46
5c2b46
* Tue Jul 04 2023 Python Maint <python-maint@redhat.com> - 11.0.3-3
5c2b46
- Rebuilt for Python 3.12
5c2b46
5c2b46
* Wed Jun 28 2023 Major Hayden <major@redhat.com> - 11.0.3-2
5c2b46
- Switch to GitHub source to get tests
5c2b46
- Replace tox with pytest
5c2b46
- Add pyproject_check_import
5c2b46
5c2b46
* Wed Jun 28 2023 Major Hayden <major@redhat.com> - 11.0.3-1
5c2b46
- Update to 11.0.3
5c2b46
5c2b46
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 11.0.2-2
5c2b46
- Rebuilt for Python 3.12
5c2b46
5c2b46
* Tue Apr 25 2023 Julien Enselme <jujens@jujens.eu> - 11.0.2-1
5c2b46
- Update to 11.0.2
5c2b46
5c2b46
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 10.4-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
5c2b46
5c2b46
* Wed Dec 07 2022 Rommel Layco <rj.layco@gmail.com> - 10.4-1
5c2b46
- Update to 10.4
5c2b46
5c2b46
* Fri Aug 12 2022 Julien Enselme <jujens@jujens.eu> - 10.3-3
5c2b46
- Rebuild to update Python bytecode files.
5c2b46
5c2b46
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.3-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5c2b46
5c2b46
* Sat Jul 09 2022 Fabian Affolter <mail@fabian-affolter.ch> - 10.3-1
5c2b46
- Update to latest upstream release 10.3 (closes rhbz#2076066)
5c2b46
5c2b46
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 10.2-2
5c2b46
- Rebuilt for Python 3.11
5c2b46
5c2b46
* Tue Feb 22 2022 Fabian Affolter <mail@fabian-affolter.ch> - 10.2-1
5c2b46
- Update to latest upstream release 10.2 (closes rhbz#2056433)
5c2b46
5c2b46
* Thu Feb 03 2022 Carl George <carl@george.computer> - 10.1-1
5c2b46
- Latest upstream rhbz#2023114
5c2b46
- Only run tests on x86 architectures
5c2b46
5c2b46
* Wed Feb 02 2022 Carl George <carl@george.computer> - 10.0-3
5c2b46
- Convert to pyproject macros
5c2b46
- Run test suite in %%check
5c2b46
5c2b46
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.0-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5c2b46
5c2b46
* Fri Sep 10 2021 Tomas Hrnciar <thrnciar@redhat.com> - 10.0-1
5c2b46
- Update to 10.0
5c2b46
- Fixes: rhbz#2002542
5c2b46
5c2b46
* Mon Jul 19 2021 Carl George <carl@george.computer> - 9.1-1
5c2b46
- Latest upstream
5c2b46
- Resolves: rhbz#1955976
5c2b46
5c2b46
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 8.1-4
5c2b46
- Rebuilt for Python 3.10
5c2b46
5c2b46
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.1-3
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5c2b46
5c2b46
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.1-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5c2b46
5c2b46
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 8.1-1
5c2b46
- Update to 8.1
5c2b46
5c2b46
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 8.0.2-5
5c2b46
- Rebuilt for Python 3.9
5c2b46
5c2b46
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.2-4
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5c2b46
5c2b46
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.2-3
5c2b46
- Rebuilt for Python 3.8.0rc1 (#1748018)
5c2b46
5c2b46
* Wed Aug 21 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.2-2
5c2b46
- Rebuilt for Python 3.8
5c2b46
5c2b46
* Tue Aug 20 2019 Julien Enselme <jujens@jujens> - 8.0.2-1
5c2b46
- Update to 8.0.2
5c2b46
5c2b46
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0-4
5c2b46
- Rebuilt for Python 3.8
5c2b46
5c2b46
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-3
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5c2b46
5c2b46
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 8.0-2
5c2b46
- 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.
5c2b46
5c2b46
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 8.0-1
5c2b46
- Update to 8.0
5c2b46
5c2b46
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5c2b46
5c2b46
* Fri Jul 20 2018 Julien Enselme <jujens@jujens.eu> - 6.0
5c2b46
- Update to 6.0
5c2b46
5c2b46
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-3
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5c2b46
5c2b46
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.0.1-2
5c2b46
- Rebuilt for Python 3.7
5c2b46
5c2b46
* Sat Jun 02 2018 Julien Enselme <jujens@jujens.eu> - 5.0.1-1
5c2b46
- Update to 5.0.1
5c2b46
5c2b46
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5c2b46
5c2b46
* Mon Nov 06 2017 Julien Enselme <jujens@jujens.eu> - 4.0.1-1
5c2b46
- Update to 4.0.1
5c2b46
5c2b46
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 3.4-2
5c2b46
- Remove tests with timeouts
5c2b46
5c2b46
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 3.4-1
5c2b46
- Update to 3.4
5c2b46
5c2b46
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5c2b46
5c2b46
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 3.3-1
5c2b46
- Update to 3.3
5c2b46
5c2b46
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-4
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5c2b46
5c2b46
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.2-3
5c2b46
- Rebuild for Python 3.6
5c2b46
5c2b46
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 3.2-2
5c2b46
- Correct tests on Python 3.5.2
5c2b46
5c2b46
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 3.2-1
5c2b46
- Update to 3.2
5c2b46
5c2b46
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
5c2b46
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5c2b46
5c2b46
* Tue Jun 21 2016 Julien Enselme <jujens@jujens.eu> - 3.1-1
5c2b46
- Update to 3.1
5c2b46
5c2b46
* Sun Feb 14 2016 Julien Enselme <jujens@jujens.eu> - 3.0-1
5c2b46
- Update to 3.0
5c2b46
- Correct build on rawhide
5c2b46
5c2b46
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5c2b46
5c2b46
* Sun Nov 22 2015 Julien Enselme <jujens@jujens.eu> - 2.7-1
5c2b46
- Update to 2.7
5c2b46
5c2b46
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 2.6-2
5c2b46
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5c2b46
5c2b46
* Wed Aug 26 2015 Julien Enselme <jujens@jujens.eu> - 2.6-1
5c2b46
- Initial package