python-starlette/python-starlette.spec
Dirk Mueller 2e87c7aed6 Accepting request 939953 from home:Simmphonie:python
- update to version 0.17.1
  * Fix IndexError in authentication requires when wrapped function
     arguments are distributed between *args and **kwargs #1335.
- version 17.0
  * Added
    - Response.delete_cookie now accepts the same parameters as
      Response.set_cookie #1228.
    - Update the Jinja2Templates constructor to allow PathLike #1292.
  * Fixed
    - Fix BadSignature exception handling in SessionMiddleware #1264.
    - Change HTTPConnection.__getitem__ return type from str to
      typing.Any #1118.
    - Change ImmutableMultiDict.getlist return type from typing.List[str]
      to typing.List[typing.Any] #1235.
    - Handle OSError exceptions on StaticFiles #1220.
    - Fix StaticFiles 404.html in HTML mode #1314.
    - Prevent anyio.ExceptionGroup in error views under a
      BaseHTTPMiddleware #1262.
  *Removed
    - Remove GraphQL support #1198.
- Remove py39-ignore-loop-deprecation.patch

OBS-URL: https://build.opensuse.org/request/show/939953
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=5
2021-12-11 23:54:17 +00:00

82 lines
2.7 KiB
RPMSpec

#
# spec file for package python-starlette
#
# Copyright (c) 2021 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-starlette
Version: 0.17.1
Release: 0
Summary: Lightweight ASGI framework/toolkit
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/encode/starlette
Source: https://github.com/encode/starlette/archive/refs/tags/%{version}.tar.gz#/starlette-%{version}.tar.gz
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module aiofiles}
BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module anyio}
BuildRequires: %{python_module contextlib2}
BuildRequires: %{python_module databases}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module graphene}
BuildRequires: %{python_module itsdangerous}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-multipart}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module trio}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: (python3-aiocontextvars if python3-base < 3.7)
BuildRequires: (python36-aiocontextvars if python36-base)
BuildArch: noarch
%python_subpackages
%description
Starlette is a lightweight ASGI framework/toolkit, which is ideal for
building high performance asyncio services.
%prep
%autosetup -n starlette-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Deprecate built-in GraphQL support gh#encode/starlette#1135
# rm tests/test_graphql.py
# Remove unrecognized arguments: --strict-config --strict-markers
sed -i "s|--strict-config||" setup.cfg
sed -i "s|--strict-markers||" setup.cfg
%pytest
%files %{python_files}
%doc README.md
%license LICENSE.md
%{python_sitelib}/starlette
%{python_sitelib}/starlette-%{version}*-info
%changelog