diff --git a/python-uvicorn.spec b/python-uvicorn.spec new file mode 100644 index 0000000000000000000000000000000000000000..f2568496fae30e3aabade3858e72116c1ff31959 --- /dev/null +++ b/python-uvicorn.spec @@ -0,0 +1,58 @@ +%global pkgname uvicorn + +Name: python-%{pkgname} +Version: 0.23.1 +Release: 1 +Summary: The lightning-fast ASGI server +License: BSD +URL: https://www.uvicorn.org +Source0: https://files.pythonhosted.org/packages/46/b7/b97c7ad40f2433a4986c8786cb188f0bc42f3d0e6d826940c1dc3bd6c4f5/%{pkgname}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-httptools +BuildRequires: python3-dotenv +BuildRequires: python3-PyYAML +BuildRequires: python3-uvloop +BuildRequires: python3-websockets + +%description +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're now able to start building a common set of tooling +usable across all async frameworks. +Uvicorn supports HTTP/1.1 and WebSockets. + +%package -n python3-%{pkgname} +Summary: %{summary} + +%description -n python3-%{pkgname} +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're now able to start building a common set of tooling +usable across all async frameworks. +Uvicorn supports HTTP/1.1 and WebSockets. + +%prep +%autosetup -n uvicorn-%{version} -p 1 + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pkgname} +%license LICENSE.md +%doc README.md +%{_bindir}/uvicorn +%{python3_sitelib}/uvicorn*.dist-info/ +%{python3_sitelib}/uvicorn + +%changelog +* Tue Jul 25 2023 ysliu - 0.23.1-1 +- Initial package. diff --git a/uvicorn-0.23.1.tar.gz b/uvicorn-0.23.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..41126b98f4937996ea4d48b70a1ef94574eea714 Binary files /dev/null and b/uvicorn-0.23.1.tar.gz differ