|
|
6d87ca |
# what it's called on pypi
|
|
|
6d87ca |
%global srcname uvicorn
|
|
|
6d87ca |
# what it's imported as
|
|
|
6d87ca |
%global libname %{srcname}
|
|
|
6d87ca |
# name of egg info directory
|
|
|
6d87ca |
%global eggname %{srcname}
|
|
|
6d87ca |
# package name fragment
|
|
|
6d87ca |
%global pkgname %{srcname}
|
|
|
6d87ca |
|
|
|
6d87ca |
%global common_description %{expand:
|
|
|
6d87ca |
Uvicorn is a lightning-fast ASGI server implementation, using uvloop and
|
|
|
6d87ca |
httptools. Until recently Python has lacked a minimal low-level
|
|
|
6d87ca |
server/application interface for asyncio frameworks. The ASGI specification
|
|
|
6d87ca |
fills this gap, and means we are now able to start building a common set of
|
|
|
6d87ca |
tooling usable across all asyncio frameworks. Uvicorn currently supports
|
|
|
6d87ca |
HTTP/1.1 and WebSockets. Support for HTTP/2 is planned.}
|
|
|
6d87ca |
|
|
|
6d87ca |
%bcond_without tests
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
Name: python-%{pkgname}
|
|
|
6d87ca |
Version: 0.13.4
|
|
|
6d87ca |
Release: 1%{?dist}
|
|
|
6d87ca |
Summary: The lightning-fast ASGI server
|
|
|
6d87ca |
License: BSD
|
|
|
6d87ca |
URL: https://www.uvicorn.org
|
|
|
6d87ca |
# PyPI tarball doesn't have tests
|
|
|
6d87ca |
Source0: https://github.com/encode/uvicorn/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
6d87ca |
# https://github.com/encode/uvicorn/pull/892
|
|
|
6d87ca |
Patch0: 0001-Up-wsproto-to-1.0.0.patch
|
|
|
6d87ca |
BuildArch: noarch
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%description %{common_description}
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%package -n python3-%{pkgname}
|
|
|
6d87ca |
Summary: %{summary}
|
|
|
6d87ca |
BuildRequires: python3-devel
|
|
|
6d87ca |
BuildRequires: %{py3_dist setuptools}
|
|
|
6d87ca |
%if %{with tests}
|
|
|
6d87ca |
BuildRequires: %{py3_dist pytest pytest-mock requests trustme httpx pytest-asyncio}
|
|
|
6d87ca |
# from minimal requirements
|
|
|
6d87ca |
BuildRequires: %{py3_dist click h11}
|
|
|
6d87ca |
# from extra requirements
|
|
|
6d87ca |
BuildRequires: %{py3_dist websockets wsproto httptools uvloop watchgod python-dotenv pyyaml}
|
|
|
6d87ca |
%endif
|
|
|
6d87ca |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%description -n python3-%{pkgname} %{common_description}
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info standard}
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%prep
|
|
|
6d87ca |
%autosetup -n %{srcname}-%{version} -p 1
|
|
|
6d87ca |
rm -rf %{eggname}.egg-info
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%build
|
|
|
6d87ca |
%py3_build
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%install
|
|
|
6d87ca |
%py3_install
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%if %{with tests}
|
|
|
6d87ca |
%check
|
|
|
6d87ca |
%pytest --verbose
|
|
|
6d87ca |
%endif
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%files -n python3-%{pkgname}
|
|
|
6d87ca |
%license LICENSE.md
|
|
|
6d87ca |
%doc README.md
|
|
|
6d87ca |
%{_bindir}/uvicorn
|
|
|
6d87ca |
%{python3_sitelib}/%{libname}
|
|
|
6d87ca |
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
|
6d87ca |
|
|
|
6d87ca |
|
|
|
6d87ca |
%changelog
|
|
|
6d87ca |
* Sat Mar 20 2021 Carl George <carl@george.computer> - 0.13.4-1
|
|
|
6d87ca |
- Latest upstream
|
|
|
6d87ca |
- Fixes: rhbz#1940231
|
|
|
6d87ca |
|
|
|
6d87ca |
* Fri Feb 05 2021 Carl George <carl@george.computer> - 0.13.3-1
|
|
|
6d87ca |
- Latest upstream
|
|
|
6d87ca |
|
|
|
6d87ca |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-2
|
|
|
6d87ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
6d87ca |
|
|
|
6d87ca |
* Mon Nov 09 2020 Carl George <carl@george.computer> - 0.12.2-1
|
|
|
6d87ca |
- Latest upstream
|
|
|
6d87ca |
- Add uvicorn[standard] subpackage
|
|
|
6d87ca |
|
|
|
6d87ca |
* Tue Aug 18 2020 Carl George <carl@george.computer> - 0.11.8-1
|
|
|
6d87ca |
- Latest upstream
|
|
|
6d87ca |
|
|
|
6d87ca |
* Thu Jun 04 2020 Carl George <carl@george.computer> - 0.11.5-1
|
|
|
6d87ca |
- Initial package
|