From aa72c3311535698d38a8ff827de746aba25046a1ba79b1369bd5a3070e0f42cc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 6 Aug 2022 14:08:09 +0000 Subject: [PATCH] Accepting request 993406 from home:jayvdb:py-submit https://github.com/tiangolo/fastapi - 48k stars OBS-URL: https://build.opensuse.org/request/show/993406 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + fastapi-0.79.0.tar.gz | 3 ++ python-fastapi.changes | 14 ++++++++ python-fastapi.spec | 81 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fastapi-0.79.0.tar.gz create mode 100644 python-fastapi.changes create mode 100644 python-fastapi.spec 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/fastapi-0.79.0.tar.gz b/fastapi-0.79.0.tar.gz new file mode 100644 index 0000000..2caf5d2 --- /dev/null +++ b/fastapi-0.79.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf0ff6db25b91d321050c4112baab0908c90f19b40bf257f9591d2f9780d1f22 +size 7123609 diff --git a/python-fastapi.changes b/python-fastapi.changes new file mode 100644 index 0000000..d304117 --- /dev/null +++ b/python-fastapi.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Fri Aug 5 05:28:18 UTC 2022 - John Vandenberg + +- Update to 0.79.0 + +------------------------------------------------------------------- +Sat Nov 28 23:42:11 UTC 2020 - John Vandenberg + +- Update to v0.61.2 + +------------------------------------------------------------------- +Sat Jul 25 04:29:21 PM UTC 2020 - John Vandenberg + +- Initial spec for v0.60.1 diff --git a/python-fastapi.spec b/python-fastapi.spec new file mode 100644 index 0000000..f3a1f92 --- /dev/null +++ b/python-fastapi.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-fastapi +# +# Copyright (c) 2022 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-%{**}} +Name: python-fastapi +Version: 0.79.0 +Release: 0 +Summary: FastAPI framework +License: MIT +Group: Development/Languages/Python +URL: https://github.com/tiangolo/fastapi +Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz +BuildRequires: %{python_module flit} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pydantic >= 1.0.0 +Requires: python-starlette >= 0.13.6 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Flask >= 1.1.2} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module SQLAlchemy >= 1.3.18} +BuildRequires: %{python_module aiosqlite} +BuildRequires: %{python_module anyio >= 3.2.1} +BuildRequires: %{python_module databases} +BuildRequires: %{python_module email_validator >= 1.1.1} +BuildRequires: %{python_module httpx >= 0.14.0} +BuildRequires: %{python_module passlib} +BuildRequires: %{python_module peewee >= 3.13.0} +BuildRequires: %{python_module pydantic >= 1.0.0} +BuildRequires: %{python_module pytest >= 5.4.3} +BuildRequires: %{python_module python-jose} +BuildRequires: %{python_module python-multipart >= 0.0.5} +BuildRequires: %{python_module requests >= 2.24.0} +BuildRequires: %{python_module starlette >= 0.13.6} +BuildRequires: %{python_module trio} +# /SECTION +%python_subpackages + +%description +Python FastAPI framework. + +%prep +%setup -q -n fastapi-%{version} + +# Requires orjson +rm tests/test_default_response_class.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# These two tests require orjson +%pytest -rs -W ignore::DeprecationWarning -k 'not (test_get_custom_response and (test_tutorial001 or test_tutorial001b))' tests + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/*fastapi*/ + +%changelog