|
 |
61fe5e4 |
# what it's called on pypi
|
|
 |
61fe5e4 |
%global srcname uvicorn
|
|
 |
61fe5e4 |
# what it's imported as
|
|
 |
61fe5e4 |
%global libname %{srcname}
|
|
 |
61fe5e4 |
# name of egg info directory
|
|
 |
61fe5e4 |
%global eggname %{srcname}
|
|
 |
61fe5e4 |
# package name fragment
|
|
 |
61fe5e4 |
%global pkgname %{srcname}
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%global common_description %{expand:
|
|
 |
61fe5e4 |
Uvicorn is a lightning-fast ASGI server implementation, using uvloop and
|
|
 |
61fe5e4 |
httptools. Until recently Python has lacked a minimal low-level
|
|
 |
61fe5e4 |
server/application interface for asyncio frameworks. The ASGI specification
|
|
 |
61fe5e4 |
fills this gap, and means we are now able to start building a common set of
|
|
 |
61fe5e4 |
tooling usable across all asyncio frameworks. Uvicorn currently supports
|
|
 |
61fe5e4 |
HTTP/1.1 and WebSockets. Support for HTTP/2 is planned.}
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%bcond_without tests
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
Name: python-%{pkgname}
|
|
 |
fdc4b06 |
Version: 0.15.0
|
|
 |
e147bfc |
Release: 3%{?dist}
|
|
 |
61fe5e4 |
Summary: The lightning-fast ASGI server
|
|
 |
61fe5e4 |
License: BSD
|
|
 |
61fe5e4 |
URL: https://www.uvicorn.org
|
|
 |
61fe5e4 |
# PyPI tarball doesn't have tests
|
|
 |
61fe5e4 |
Source0: https://github.com/encode/uvicorn/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
 |
61fe5e4 |
BuildArch: noarch
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%description %{common_description}
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%package -n python3-%{pkgname}
|
|
 |
61fe5e4 |
Summary: %{summary}
|
|
 |
61fe5e4 |
BuildRequires: python3-devel
|
|
 |
61fe5e4 |
BuildRequires: %{py3_dist setuptools}
|
|
 |
61fe5e4 |
%if %{with tests}
|
|
 |
726b239 |
BuildRequires: %{py3_dist pytest pytest-mock requests trustme httpx pytest-asyncio}
|
|
 |
a99b8eb |
# from minimal requirements
|
|
 |
71f3ae8 |
BuildRequires: %{py3_dist asgiref click h11}
|
|
 |
a99b8eb |
# from extra requirements
|
|
 |
a99b8eb |
BuildRequires: %{py3_dist websockets wsproto httptools uvloop watchgod python-dotenv pyyaml}
|
|
 |
61fe5e4 |
%endif
|
|
 |
61fe5e4 |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%description -n python3-%{pkgname} %{common_description}
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
0d74e8b |
%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info standard}
|
|
 |
0d74e8b |
|
|
 |
0d74e8b |
|
|
 |
61fe5e4 |
%prep
|
|
 |
5152786 |
%autosetup -n %{srcname}-%{version} -p 1
|
|
 |
61fe5e4 |
rm -rf %{eggname}.egg-info
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%build
|
|
 |
61fe5e4 |
%py3_build
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%install
|
|
 |
61fe5e4 |
%py3_install
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%if %{with tests}
|
|
 |
61fe5e4 |
%check
|
|
 |
e147bfc |
%pytest --verbose -W 'default::DeprecationWarning'
|
|
 |
61fe5e4 |
%endif
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%files -n python3-%{pkgname}
|
|
 |
61fe5e4 |
%license LICENSE.md
|
|
 |
61fe5e4 |
%doc README.md
|
|
 |
61fe5e4 |
%{_bindir}/uvicorn
|
|
 |
61fe5e4 |
%{python3_sitelib}/%{libname}
|
|
 |
61fe5e4 |
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
%changelog
|
|
 |
e147bfc |
* Thu Jul 14 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.15.0-3
|
|
 |
e147bfc |
- Do not treat a DeprecationWarning in the tests as an error (fix RHBZ#2099139)
|
|
 |
e147bfc |
|
|
 |
7d5ca1a |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
|
|
 |
7d5ca1a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
7d5ca1a |
|
|
 |
fdc4b06 |
* Fri Sep 10 2021 Tomas Hrnciar - 0.15.0-1
|
|
 |
fdc4b06 |
- Update to 0.15.0
|
|
 |
fdc4b06 |
- Fixes: rhbz#1966531
|
|
 |
fdc4b06 |
|
|
 |
fdc4b06 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
 |
fdc4b06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
fdc4b06 |
|
|
 |
71f3ae8 |
* Fri Jul 23 2021 LumÃr Balhar <lbalhar@redhat.com> - 0.14.0-1
|
|
 |
71f3ae8 |
- Update to 0.14.0
|
|
 |
71f3ae8 |
|
|
 |
e8bfb3c |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
 |
e8bfb3c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
e8bfb3c |
|
|
 |
45807d8 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.13.4-2
|
|
 |
45807d8 |
- Rebuilt for Python 3.10
|
|
 |
45807d8 |
|
|
 |
f8b9dc5 |
* Sat Mar 20 2021 Carl George <carl@george.computer> - 0.13.4-1
|
|
 |
f8b9dc5 |
- Latest upstream
|
|
 |
f8b9dc5 |
- Fixes: rhbz#1940231
|
|
 |
f8b9dc5 |
|
|
 |
726b239 |
* Fri Feb 05 2021 Carl George <carl@george.computer> - 0.13.3-1
|
|
 |
726b239 |
- Latest upstream
|
|
 |
726b239 |
|
|
 |
be7f991 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-2
|
|
 |
be7f991 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
be7f991 |
|
|
 |
a99b8eb |
* Mon Nov 09 2020 Carl George <carl@george.computer> - 0.12.2-1
|
|
 |
a99b8eb |
- Latest upstream
|
|
 |
0d74e8b |
- Add uvicorn[standard] subpackage
|
|
 |
a99b8eb |
|
|
 |
61fe5e4 |
* Tue Aug 18 2020 Carl George <carl@george.computer> - 0.11.8-1
|
|
 |
61fe5e4 |
- Latest upstream
|
|
 |
61fe5e4 |
|
|
 |
61fe5e4 |
* Thu Jun 04 2020 Carl George <carl@george.computer> - 0.11.5-1
|
|
 |
61fe5e4 |
- Initial package
|