17
0
Files
python-Flask-Babel/python-Flask-Babel.spec
Steve Kowalik a070e6a92b - Update to 3.1.0:
* Don't return the default locale twice.
  * Fix tests breaking against babel 12.2, which changed localized times to
    use non-breaking-spaces.
  * Relax version requirements for dependencies.
  * Dropped support for end-of-life Python 3.5 and 3.6, added tests for 3.10
    and 3.11.
  * Jinja version 3 or greater is now required.
  * Removed Babel._date_formats, use the public Babel.date_formats instead.
  * list_translations() always returns the default locale, even if it does
    not exist.
  * Babel.locale_selector and Babel.timezone_selector no longer exist.
  * Most configuration options can be passed directly through init_app().

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-Babel?expand=0&rev=10
2023-06-15 07:04:41 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package python-Flask-Babel
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2014 Dr. Axel Braun
#
# 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/
#
Name: python-Flask-Babel
Version: 3.1.0
Release: 0
Summary: i18n and l10n support for Flask
License: BSD-3-Clause
URL: https://github.com/python-babel/flask-babel
Source: https://github.com/python-babel/flask-babel/archive/refs/tags/v%{version}.tar.gz#/Flask-Babel-%{version}.tar.gz
BuildRequires: %{python_module Babel >= 2.12}
BuildRequires: %{python_module Flask >= 2.0}
BuildRequires: %{python_module Jinja2 >= 3.1}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz >= 2022.7}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Babel >= 2.12
Requires: python-Flask >= 2.0
Requires: python-Jinja2 >= 3.1
Requires: python-pytz >= 2022.7
BuildArch: noarch
%python_subpackages
%description
This module implements i18n and l10n support for Flask. It is based on
the Python babel module as well as pytz.
%prep
%autosetup -p1 -n flask-babel-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/flask_babel
%{python_sitelib}/flask_babel-%{version}.dist-info
%changelog