python-flask-restx/python-flask-restx.spec
John Vandenberg 055ec68828 Accepting request 908460 from home:seanmarlow:branches:devel:languages:python:flask
- Update to v0.5.0
  + Fix Marshaled nested wildcard field with ordered=True
  + Fix Float Field Handling of None
  + Fix Werkzeug and Flask > 2.0 issues
  + Hotfix package.json
  + Stop calling got_request_exception when handled explicitly
  + Structure demo zoo app
  + Update Contributing.rst
  + Upgrade swagger-ui
- Update to v0.4.0
  + Fix Namespace error handlers when propogate_exceptions=True
  + pin flask and werkzeug due to breaking changes
  + The Flask/Blueprint API moved to the Scaffold base class
  + added specs-url-scheme option for API
- Update to v0.3.0
  + Make error handlers order of registration respected when
    handling errors
  + add prefix to config setting
  + Use relative path for `api.specs_url`
  + Allow example=False
  + Add support for recursive models
  + generate choices schema without collectionFormat
  + Catch TypeError in marshalling
  + Unable to access nested list propert
  + allow strict mode when validating model fields
  + Make it possible to include "unused" models in the generated
    swagger documentation

OBS-URL: https://build.opensuse.org/request/show/908460
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-flask-restx?expand=0&rev=7
2021-07-28 14:19:55 +00:00

83 lines
2.7 KiB
RPMSpec

#
# spec file for package python-flask-restx
#
# 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-%{**}}
%bcond_without python2
Name: python-flask-restx
Version: 0.5.0
Release: 0
Summary: Framework for fast, easy and documented API development with Flask
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/python-restx/flask-restx
Source: https://github.com/python-restx/flask-restx/archive/%{version}.tar.gz
BuildRequires: %{python_module Faker}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module aniso8601}
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest < 6}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest-flask}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tzlocal}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with python2}
BuildRequires: python2-enum34
%endif
Requires: python-Flask
Requires: python-aniso8601
Requires: python-jsonschema
Requires: python-pytz
%ifpython2
Requires: python2-enum34
%endif
BuildArch: noarch
%python_subpackages
%description
Flask-RESTX is a community driven fork of Flask-RESTPlus. It is an extension for Flask
that adds support for quickly building REST APIs. It encourages best practices with
minimal setup. If you are familiar with Flask, Flask-RESTX should be easy to pick up.
It provides a coherent collection of decorators and tools to describe your API and expose
its documentation properly using Swagger.
%prep
%setup -q -n flask-restx-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k 'not URLTest and not EmailTest and not test_handle_non_api_error'
%files %{python_files}
%doc README.rst CONTRIBUTING.rst
%license LICENSE
%{python_sitelib}/*
%changelog