python-flufl.i18n/python-flufl.i18n.spec

68 lines
2.0 KiB
RPMSpec

#
# spec file for package python-flufl.i18n
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-flufl.i18n
Version: 5.0.2
Release: 0
Summary: High level API for internationalizing Python libraries and applications
License: Apache-2.0
URL: https://gitlab.com/warsaw/flufl.i18n
Source: https://files.pythonhosted.org/packages/source/f/flufl.i18n/flufl_i18n-%{version}.tar.gz
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module atpublic}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sybil}
BuildRequires: %{python_module typing_extensions}
# /SECTION
BuildRequires: fdupes
Requires: python-atpublic
Suggests: python-typing_extensions
BuildArch: noarch
%python_subpackages
%description
High level API for internationalizing Python libraries and applications.
%prep
%autosetup -n flufl_i18n-%{version} -p1
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%dir %{python_sitelib}/flufl
%{python_sitelib}/flufl/i18n*
%{python_sitelib}/flufl_i18n-%{version}.dist-info
%changelog