From 94498868ac776dfeea2ccc211424b47b234e7511 Mon Sep 17 00:00:00 2001 From: Itamar Reis Peixoto Date: Oct 05 2020 15:05:35 +0000 Subject: initial import --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..910e6c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fastapi-0.61.1.tar.gz diff --git a/python-fastapi.spec b/python-fastapi.spec new file mode 100644 index 0000000..9769ddc --- /dev/null +++ b/python-fastapi.spec @@ -0,0 +1,69 @@ +%global pypi_name fastapi + +Name: python-%{pypi_name} +Version: 0.61.1 +Release: 1%{?dist} +Summary: FastAPI - High Performance, Easy to Learn, Fast to Code, Production Ready + +License: MIT +URL: https://github.com/tiangolo/fastapi +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-cov) +BuildRequires: python3dist(pytest-asyncio) +BuildRequires: python3dist(starlette) +BuildRequires: python3dist(pydantic) +BuildRequires: python3dist(httpx) +BuildRequires: python3dist(python-jose) +BuildRequires: python3dist(passlib) +BuildRequires: python3dist(bcrypt) +BuildRequires: python3dist(peewee) +BuildRequires: python3dist(sqlalchemy) +BuildRequires: python3dist(flask) +#BuildRequires: python3dist(orjson) + +%description +FastAPI framework, high performance, easy to learn, fast to code, +ready for production + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +FastAPI framework, high performance, easy to learn, fast to code, +ready for production + +%prep +%autosetup -n %{pypi_name}-%{version} +#disable these tests for now +rm tests/test_tutorial/test_custom_response/test_tutorial001b.py +rm tests/test_tutorial/test_async_sql_databases/test_tutorial001.py +rm tests/test_default_response_class.py +rm tests/test_security_oauth2.py +rm tests/test_validate_response_recursive.py + + +%build +%py3_build + +%install +%py3_install + +%check +%pytest + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Wed Sep 30 2020 Itamar Reis Peixoto - 0.61.1-1 +- Initial package. +- Fix license TAG. \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..6dcf1b5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fastapi-0.61.1.tar.gz) = 5c3e3204ed8dd4d058cf0b19660004ac3e868b54ad3b7fd81d7765f82a7f552b6d8ef1eef82f38bb6d648d8d51814ee27c47f90b9eef8da5a5c1ed68eba6ecf6