Convert to pyproject macros and enable test suite
This commit is contained in:
parent
66cdd8b3be
commit
ae088f4b71
@ -2,7 +2,7 @@
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 10.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: An implementation of the WebSocket Protocol for python with asyncio
|
||||
|
||||
License: BSD
|
||||
@ -10,50 +10,50 @@ URL: https://github.com/aaugustin/websockets
|
||||
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
|
||||
%global _description \
|
||||
websockets is a library for developing WebSocket servers and clients in\
|
||||
Python. It implements RFC 6455 with a focus on correctness and simplicity. It\
|
||||
passes the Autobahn Testsuite.\
|
||||
\
|
||||
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it\
|
||||
provides an API based on coroutines, making it easy to write highly concurrent\
|
||||
applications.
|
||||
%global _description %{expand:
|
||||
websockets is a library for developing WebSocket servers and clients in
|
||||
Python. It implements RFC 6455 with a focus on correctness and simplicity. It
|
||||
passes the Autobahn Testsuite.
|
||||
|
||||
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it
|
||||
provides an API based on coroutines, making it easy to write highly concurrent
|
||||
applications.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel >= 3.6.1
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-devel >= 3.7
|
||||
|
||||
%description -n python3-%{pypi_name} %{_description}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version} -p1
|
||||
# Remove upstream's egg-info
|
||||
rm -vrf %{pypi_name}.egg-info
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -t
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
# Remove installed C file
|
||||
rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c
|
||||
%pyproject_install
|
||||
%pyproject_save_files websockets
|
||||
|
||||
%check
|
||||
# Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648
|
||||
# WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test
|
||||
%tox
|
||||
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
||||
%{python3_sitearch}/%{pypi_name}/
|
||||
|
||||
%changelog
|
||||
* Wed Feb 02 2022 Carl George <carl@george.computer> - 10.0-3
|
||||
- Convert to pyproject macros
|
||||
- Run test suite in %%check
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user