You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
159 lines
5.1 KiB
159 lines
5.1 KiB
## START: Set by rpmautospec
|
|
## (rpmautospec version 0.6.5)
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
release_number = 3;
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
print(release_number + base_release_number - 1);
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
## END: Set by rpmautospec
|
|
|
|
Name: python-uvicorn
|
|
Version: 0.29.0
|
|
Release: %autorelease
|
|
Summary: The lightning-fast ASGI server
|
|
License: BSD-3-Clause
|
|
URL: https://www.uvicorn.org
|
|
# PyPI tarball doesn't have tests
|
|
Source: https://github.com/encode/uvicorn/archive/%{version}/uvicorn-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
# Compatibility with httpx 0.27.0
|
|
Patch: https://github.com/encode/uvicorn/commit/95fa1a.patch
|
|
|
|
%global common_description %{expand:
|
|
Uvicorn is an ASGI web server implementation for Python. Until recently Python
|
|
has lacked a minimal low-level server/application interface for async
|
|
frameworks. The ASGI specification fills this gap, and means we are now able
|
|
to start building a common set of tooling usable across all async frameworks.
|
|
Uvicorn supports HTTP/1.1 and WebSockets.}
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
%package -n python3-uvicorn
|
|
Summary: %{summary}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-pytest-mock
|
|
BuildRequires: python3-a2wsgi
|
|
BuildRequires: python3-cryptography
|
|
BuildRequires: python3-httpx
|
|
BuildRequires: python3-trustme
|
|
BuildRequires: python3-watchgod
|
|
BuildRequires: python3-wsproto
|
|
|
|
|
|
%description -n python3-uvicorn %{common_description}
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-uvicorn standard
|
|
|
|
|
|
%prep
|
|
%autosetup -p 1 -n uvicorn-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -x standard
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files uvicorn
|
|
|
|
|
|
%check
|
|
%pytest --verbose \
|
|
-k 'not test_run_startup_failure and not test_fragmentation and not test_send_binary_data_to_server_bigger_than_default_on_websockets'
|
|
|
|
|
|
%files -n python3-uvicorn -f %{pyproject_files}
|
|
%doc README.md
|
|
%{_bindir}/uvicorn
|
|
|
|
|
|
%changelog
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.29.0-3
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
## START: Generated by rpmautospec
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 0.29.0-2
|
|
- Rebuilt for Python 3.13
|
|
|
|
* Mon Apr 15 2024 Lumir Balhar <lbalhar@redhat.com> - 0.29.0-1
|
|
- Update to 0.29.0 (rhbz#2247942)
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Tue Sep 26 2023 Carl George <carlwgeorge@fedoraproject.org> - 0.23.2-1
|
|
- Update to version 0.23.2, resolves rhbz#2030302
|
|
- Convert to pyproject macros
|
|
- Switch license field to SPDX identifier
|
|
- Skip tests that fail on Python 3.12
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Thu Jul 14 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.15.0-3
|
|
- Do not treat a DeprecationWarning in the tests as an error (fix RHBZ#2099139)
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Fri Sep 10 2021 Tomas Hrnciar - 0.15.0-1
|
|
- Update to 0.15.0
|
|
- Fixes: rhbz#1966531
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Fri Jul 23 2021 Lumír Balhar <lbalhar@redhat.com> - 0.14.0-1
|
|
- Update to 0.14.0
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.13.4-2
|
|
- Rebuilt for Python 3.10
|
|
|
|
* Sat Mar 20 2021 Carl George <carl@george.computer> - 0.13.4-1
|
|
- Latest upstream
|
|
- Fixes: rhbz#1940231
|
|
|
|
* Fri Feb 05 2021 Carl George <carl@george.computer> - 0.13.3-1
|
|
- Latest upstream
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Mon Nov 09 2020 Carl George <carl@george.computer> - 0.12.2-1
|
|
- Latest upstream
|
|
- Add uvicorn[standard] subpackage
|
|
|
|
* Tue Aug 18 2020 Carl George <carl@george.computer> - 0.11.8-1
|
|
- Latest upstream
|
|
|
|
* Thu Jun 04 2020 Carl George <carl@george.computer> - 0.11.5-1
|
|
- Initial package
|
|
|
|
## END: Generated by rpmautospec
|