From e194c33b1b958514a169b1a6a9603b48ee50b85a03ac267fa6f34c2a10dff437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 13 Oct 2020 09:32:40 +0000 Subject: [PATCH] Accepting request 841065 from home:jayvdb:py-submit Dependency of httpx OBS-URL: https://build.opensuse.org/request/show/841065 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvicorn?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + python-uvicorn.changes | 14 +++++++ python-uvicorn.spec | 90 ++++++++++++++++++++++++++++++++++++++++++ uvicorn-0.12.1.tar.gz | 3 ++ 5 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-uvicorn.changes create mode 100644 python-uvicorn.spec create mode 100644 uvicorn-0.12.1.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-uvicorn.changes b/python-uvicorn.changes new file mode 100644 index 0000000..a1acb00 --- /dev/null +++ b/python-uvicorn.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Sun Oct 11 14:58:51 UTC 2020 - John Vandenberg + +- Update to v0.12.1 + +------------------------------------------------------------------- +Sat Jul 25 18:38:16 UTC 2020 - John Vandenberg + +- Update to v0.11.6 + +------------------------------------------------------------------- +Tue Oct 8 09:08:25 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.9.0 diff --git a/python-uvicorn.spec b/python-uvicorn.spec new file mode 100644 index 0000000..c14937c --- /dev/null +++ b/python-uvicorn.spec @@ -0,0 +1,90 @@ +# +# spec file for package python-uvicorn +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-uvicorn +Version: 0.12.1 +Release: 0 +Summary: The lightning-fast ASGI server +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/encode/uvicorn +Source: https://github.com/encode/uvicorn/archive/%{version}.tar.gz#/uvicorn-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-click >= 7.0 +Requires: python-h11 >= 0.8.0 +Requires: python-httptools >= 0.0.13 +Requires: python-typing_extensions +Requires: python-websockets >= 8.0 +Recommends: python-PyYAML +Suggests: python-uvloop >= 0.14.0 +Suggests: python-watchgod +Suggests: python-wsproto +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module click >= 7.0} +BuildRequires: %{python_module h11 >= 0.8.0} +BuildRequires: %{python_module httptools >= 0.0.13} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module typing_extensions} +BuildRequires: %{python_module uvloop >= 0.14.0} +BuildRequires: %{python_module watchgod >= 0.6} +BuildRequires: %{python_module websockets >= 8.0} +BuildRequires: %{python_module wsproto >= 0.13.0} +# /SECTION +%python_subpackages + +%description +The lightning-fast ASGI server. + +%prep +%setup -q -n uvicorn-%{version} +rm setup.cfg + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/uvicorn +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative uvicorn + +%postun +%python_uninstall_alternative uvicorn + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE.md +%python_alternative %{_bindir}/uvicorn +%{python_sitelib}/* + +%changelog diff --git a/uvicorn-0.12.1.tar.gz b/uvicorn-0.12.1.tar.gz new file mode 100644 index 0000000..2f7e5a5 --- /dev/null +++ b/uvicorn-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33772c1c3b7e2e208744f69ab3615b676923183f09e27a89fab7574b384b6e28 +size 504451