Пакет python3-module-fastapi: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | %define _unpackaged_files_terminate_build 1 %define pypi_name fastapi %def_with check Name: python3-module-%pypi_name Version: 0.99.1 Release: alt2 Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production License: MIT Group: Development/Python3 Url: https://pypi.org/project/fastapi Vcs: https://github.com/tiangolo/fastapi BuildArch: noarch Source0: %name-%version.tar Source1: %pyproject_deps_config_name Patch0: fastapi-0.95.1-alt-fix-databases-tests-connections.patch %pyproject_runtimedeps_metadata BuildRequires(pre): rpm-build-pyproject %pyproject_builddeps_build %if_with check %pyproject_builddeps_metadata %pyproject_builddeps_check %endif %description FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints. The key features are: - Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic). One of the fastest Python frameworks available. - Fast to code: Increase the speed to develop features by about 200%% to 300%%. - Fewer bugs: Reduce about 40%% of human (developer) induced errors. - Intuitive: Great editor support. Completion everywhere. Less time debugging. - Easy: Designed to be easy to use and learn. Less time reading docs. - Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs. - Robust: Get production-ready code. With automatic interactive documentation. - Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema. %prep %setup %autopatch -p1 %pyproject_deps_resync_build %pyproject_deps_resync_metadata %if_with check %pyproject_deps_resync_check_pipreqfile requirements-tests.txt %endif %build %pyproject_build %install %pyproject_install %check # test_async_sql_databases/test_tutorial001.py::test_create_read: # Due to too new sqlalchemy databases' sqlite backend is broken. # Temporary skip this test. # # tests/test_dependency_normal_exceptions.py::test_dependency_gets_exception: # fastapi requires starlette < 0.28, but we have one == 0.28 in sisyphus now. # Upstream has decided to change behavior in package for updating to new # starlette. # See https://github.com/tiangolo/fastapi/pull/9636#discussion_r1224626560. # Temporary skip this test. %pyproject_run_pytest -vra -Wignore \ --deselect='tests/test_tutorial/test_async_sql_databases/test_tutorial001.py::test_create_read' \ --deselect='tests/test_dependency_normal_exceptions.py::test_dependency_gets_exception' \ tests %files %doc README.* %python3_sitelibdir/%pypi_name/ %python3_sitelibdir/%{pyproject_distinfo %pypi_name} %changelog * Thu Jul 27 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.99.1-alt2 - Skipped a dependency_gets_exception test to fix FTBFS - Stopped packaging of useless files * Mon Jul 03 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.99.1-alt1 - 0.99.0 -> 0.99.1 * Sat Jul 01 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.99.0-alt1 - 0.98.0 -> 0.99.0 * Thu Jun 29 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.98.0-alt1 - 0.97.0 -> 0.98.0 * Mon Jun 12 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.97.0-alt1 - 0.96.1 -> 0.97.0 * Sun Jun 11 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.96.1-alt1 - 0.96.0 -> 0.96.1 * Sat Jun 03 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.96.0-alt1 - 0.95.2 -> 0.96.0 * Tue May 16 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.95.2-alt1 - 0.95.1 -> 0.95.2 * Wed May 10 2023 Alexandr Shashkin <dutyrok@altlinux.org> 0.95.1-alt1 - 0.90.1 -> 0.95.1 - reformat description - add Vcs tag - do not ship MIT license file - temporary ignore problematic tests * Fri Feb 10 2023 Anton Zhukharev <ancieg@altlinux.org> 0.90.1-alt1 - 0.87.0 -> 0.90.1 * Tue Nov 15 2022 Anton Zhukharev <ancieg@altlinux.org> 0.87.0-alt1 - 0.85.0 -> 0.87.0 * Sat Sep 18 2022 Anton Zhukharev <ancieg@altlinux.org> 0.85.0-alt1 - Initial build for sisyphus (thanks Alexandr Shashkin <dutyrok@altlinux.org>) |