forked from pool/python-fastapi
Compare commits
20 Commits
Author | SHA256 | Date | |
---|---|---|---|
ce9ed2108a | |||
a5fc613b34 | |||
edc2e24260 | |||
51a5f8bacc | |||
227a1c96f2 | |||
973ec18fc1 | |||
0ec657bb58 | |||
eb3a87b14a | |||
61e3dc8711 | |||
1ea5b572e9 | |||
f598bf77f9 | |||
8ae89947fe | |||
8d93db22d9 | |||
4c71b24822 | |||
be13249886 | |||
dc085a7292 | |||
d8ebe5a07d | |||
e1b9df0dd8 | |||
52706d147b | |||
701762b647 |
@@ -1,3 +0,0 @@
|
|||||||
<multibuild>
|
|
||||||
<package>test</package>
|
|
||||||
</multibuild>
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:55d1d25c2e1e0a0a50aceb1c8705cd932def273c102bff0b1c1da88b3c6eb307
|
|
||||||
size 295680
|
|
BIN
fastapi-0.115.8.tar.gz
(Stored with Git LFS)
Normal file
BIN
fastapi-0.115.8.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,44 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Aug 19 13:10:16 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives on SLE-16-based and newer systems only
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jul 8 13:26:46 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Jun 27 00:44:09 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Remove ringdisabled, switch to standard multibuild with a test flavor.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jun 24 01:53:44 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Update to 0.115.13:
|
|
||||||
* Fix truncating the model's description with form feed (\f) character
|
|
||||||
for Pydantic V2.
|
|
||||||
- Ignore more test files with ringdisabled as inline_snapshot expands
|
|
||||||
inside the testsuite.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Jun 6 05:58:54 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Add patch support-starlette-0.47.patch:
|
|
||||||
* Allow starlette 0.47.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu May 1 05:53:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Update to 0.115.12:
|
|
||||||
* Fix convert_underscores=False for header Pydantic models.
|
|
||||||
* Add docs examples and tests (support) for Annotated custom validations,
|
|
||||||
like AfterValidator.
|
|
||||||
* Update internal annotation usage for compatibility with Pydantic 2.11.
|
|
||||||
* Ensure that HTTPDigest only raises an exception when auto_error is True.
|
|
||||||
- Drop remove-classifiers.patch, no longer required.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 7 11:00:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Fri Feb 7 11:00:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@@ -16,69 +16,54 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
# Keep extra test requirements out of Ring1
|
||||||
%if "%{flavor}" == "test"
|
%bcond_with ringdisabled
|
||||||
%define psuffix -test
|
|
||||||
%bcond_without test
|
|
||||||
%else
|
|
||||||
%define psuffix %{nil}
|
|
||||||
%bcond_with test
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%bcond_without libalternatives
|
|
||||||
%else
|
|
||||||
%bcond_with libalternatives
|
|
||||||
%endif
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-fastapi%{psuffix}
|
Name: python-fastapi
|
||||||
Version: 0.115.13
|
Version: 0.115.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: FastAPI framework
|
Summary: FastAPI framework
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/tiangolo/fastapi
|
URL: https://github.com/tiangolo/fastapi
|
||||||
Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE Support starlette 0.47
|
# PATCH-FIX-OPENSUSE Remove two unknown classifiers
|
||||||
Patch0: support-starlette-0.47.patch
|
Patch0: remove-classifiers.patch
|
||||||
BuildRequires: %{python_module hatchling}
|
BuildRequires: %{python_module hatchling}
|
||||||
BuildRequires: %{python_module pdm-backend}
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pydantic-settings >= 2.0.0}
|
||||||
|
BuildRequires: %{python_module starlette >= 0.40.0 with %python-starlette < 0.46.0}
|
||||||
|
BuildRequires: %{python_module typing_extensions >= 4.8.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pydantic >= 1.8.2
|
Requires: python-pydantic >= 1.8.2
|
||||||
Requires: python-typing_extensions >= 4.8.0
|
Requires: python-typing_extensions >= 4.8.0
|
||||||
Requires: (python-starlette >= 0.40.0 with python-starlette < 0.48.0)
|
Requires: (python-starlette >= 0.40.0 with python-starlette < 0.46.0)
|
||||||
BuildArch: noarch
|
|
||||||
%if %{with libalternatives}
|
|
||||||
BuildRequires: alts
|
|
||||||
Requires: alts
|
|
||||||
%else
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%endif
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
%if %{with test}
|
BuildRequires: %{python_module pdm-backend}
|
||||||
BuildRequires: %{python_module Flask >= 1.1.2}
|
BuildRequires: %{python_module Flask >= 1.1.2}
|
||||||
BuildRequires: %{python_module PyJWT}
|
BuildRequires: %{python_module PyJWT}
|
||||||
BuildRequires: %{python_module PyYAML >= 5.3.1}
|
BuildRequires: %{python_module PyYAML >= 5.3.1}
|
||||||
BuildRequires: %{python_module SQLAlchemy}
|
BuildRequires: %{python_module SQLAlchemy}
|
||||||
BuildRequires: %{python_module aiosqlite}
|
|
||||||
BuildRequires: %{python_module anyio >= 3.2.1}
|
BuildRequires: %{python_module anyio >= 3.2.1}
|
||||||
BuildRequires: %{python_module coverage}
|
BuildRequires: %{python_module coverage}
|
||||||
BuildRequires: %{python_module databases >= 0.3.2}
|
|
||||||
BuildRequires: %{python_module dirty-equals}
|
BuildRequires: %{python_module dirty-equals}
|
||||||
BuildRequires: %{python_module email-validator >= 1.1.1}
|
|
||||||
BuildRequires: %{python_module fastapi = %{version}}
|
|
||||||
BuildRequires: %{python_module httpx >= 0.23.0}
|
BuildRequires: %{python_module httpx >= 0.23.0}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module python-multipart >= 0.0.18}
|
||||||
|
BuildRequires: %{python_module trio}
|
||||||
|
%if !%{with ringdisabled}
|
||||||
|
BuildRequires: %{python_module aiosqlite}
|
||||||
|
BuildRequires: %{python_module databases >= 0.3.2}
|
||||||
|
BuildRequires: %{python_module email-validator >= 1.1.1}
|
||||||
BuildRequires: %{python_module inline-snapshot}
|
BuildRequires: %{python_module inline-snapshot}
|
||||||
BuildRequires: %{python_module orjson >= 3.2.1}
|
BuildRequires: %{python_module orjson >= 3.2.1}
|
||||||
BuildRequires: %{python_module passlib}
|
BuildRequires: %{python_module passlib}
|
||||||
BuildRequires: %{python_module peewee >= 3.13.0}
|
BuildRequires: %{python_module peewee >= 3.13.0}
|
||||||
BuildRequires: %{python_module pydantic-settings >= 2.0.0}
|
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module python-jose >= 3.3}
|
BuildRequires: %{python_module python-jose >= 3.3}
|
||||||
BuildRequires: %{python_module python-multipart >= 0.0.18}
|
|
||||||
BuildRequires: %{python_module sqlmodel}
|
BuildRequires: %{python_module sqlmodel}
|
||||||
BuildRequires: %{python_module trio}
|
|
||||||
BuildRequires: %{python_module ujson >= 5.6}
|
BuildRequires: %{python_module ujson >= 5.6}
|
||||||
%endif
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
@@ -94,14 +79,11 @@ Python FastAPI framework.
|
|||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}/%{_bindir}/fastapi
|
%python_clone -a %{buildroot}/%{_bindir}/fastapi
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
|
||||||
# more warnings as expected
|
# more warnings as expected
|
||||||
donttest="test_warn_duplicate_operation_id"
|
donttest="test_warn_duplicate_operation_id"
|
||||||
# fails because of changed (cosmetic) body format in httpx 0.28 (technically not suppoerted yet upstream)
|
# fails because of changed (cosmetic) body format in httpx 0.28 (technically not suppoerted yet upstream)
|
||||||
@@ -109,11 +91,34 @@ donttest+=" or test_exception_handler_body_access"
|
|||||||
# python-fastapi-cli packages doesn't exists in openSUSE
|
# python-fastapi-cli packages doesn't exists in openSUSE
|
||||||
donttest+=" or test_fastapi_cli"
|
donttest+=" or test_fastapi_cli"
|
||||||
donttest+=" or test_openapi"
|
donttest+=" or test_openapi"
|
||||||
%pytest -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning -k "not ($donttest)" tests
|
%if %{with ringdisabled}
|
||||||
%endif
|
ignorefiles="$ignorefiles --ignore tests/test_default_response_class.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_async_sql_databases/test_tutorial001.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_custom_response/test_tutorial009c.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_cookie_param_models/test_tutorial001.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_cookie_param_models/test_tutorial002.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_header_param_models/test_tutorial001.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_header_param_models/test_tutorial002.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_query_param_models/test_tutorial001.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_query_param_models/test_tutorial002.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003_py310.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_py39.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_py310.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_an.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_an_py39.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_an_py310.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_sql_databases/test_tutorial001.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_sql_databases/test_tutorial002.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_sql_databases_peewee"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003_01.py"
|
||||||
|
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003_01_py310.py"
|
||||||
|
|
||||||
%pre
|
donttest="$donttest or test_orjson_response_class"
|
||||||
%python_libalternatives_reset_alternative fastapi
|
donttest="$donttest or (test_tutorial001 and test_get_custom_response)"
|
||||||
|
%endif
|
||||||
|
%pytest -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning $ignorefiles -k "not ($donttest)" tests
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative fastapi
|
%python_install_alternative fastapi
|
||||||
@@ -121,13 +126,11 @@ donttest+=" or test_openapi"
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative fastapi
|
%python_uninstall_alternative fastapi
|
||||||
|
|
||||||
%if !%{with test}
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/fastapi
|
%{python_sitelib}/fastapi
|
||||||
%{python_sitelib}/fastapi-%{version}.dist-info
|
%{python_sitelib}/fastapi-%{version}.dist-info
|
||||||
%python_alternative %{_bindir}/fastapi
|
%python_alternative %{_bindir}/fastapi
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
13
remove-classifiers.patch
Normal file
13
remove-classifiers.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff -Nru fastapi-0.115.8.orig/pyproject.toml fastapi-0.115.8/pyproject.toml
|
||||||
|
--- fastapi-0.115.8.orig/pyproject.toml 2025-01-30 15:06:26.874525500 +0100
|
||||||
|
+++ fastapi-0.115.8/pyproject.toml 2025-02-07 12:00:18.048128044 +0100
|
||||||
|
@@ -29,9 +29,6 @@
|
||||||
|
"Environment :: Web Environment",
|
||||||
|
"Framework :: AsyncIO",
|
||||||
|
"Framework :: FastAPI",
|
||||||
|
- "Framework :: Pydantic",
|
||||||
|
- "Framework :: Pydantic :: 1",
|
||||||
|
- "Framework :: Pydantic :: 2",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Programming Language :: Python :: 3 :: Only",
|
@@ -1,13 +0,0 @@
|
|||||||
Index: fastapi-0.115.12/pyproject.toml
|
|
||||||
===================================================================
|
|
||||||
--- fastapi-0.115.12.orig/pyproject.toml
|
|
||||||
+++ fastapi-0.115.12/pyproject.toml
|
|
||||||
@@ -45,7 +45,7 @@ classifiers = [
|
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
|
||||||
]
|
|
||||||
dependencies = [
|
|
||||||
- "starlette>=0.40.0,<0.47.0",
|
|
||||||
+ "starlette>=0.40.0,<0.48.0",
|
|
||||||
"pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0",
|
|
||||||
"typing-extensions>=4.8.0",
|
|
||||||
]
|
|
Reference in New Issue
Block a user