python-humanize/python-humanize.spec
Dirk Mueller e704decb5b - update to 4.4.0:
* Add installation instructions (#56) @hugovk
  * Internationalise the decimal separator in intcomma() (#53) @Luflosi
  * Internationalise intcomma for de_DE locale (#49) @Luflosi
  * Replace short scale with long scale for Polish numbers (#54) @mjmikulski
  * Fix intcomma() failing with a string as input when ndigits is not None
    (#52) @Luflosi
  * Fix some pylint findings (#42) @hugovk
  * Fix "ValueError: math domain error" for metric(0) (#47) @liukun
  * Add Greek translation (#46) @waseigo
  * Polish: Added thousand, fixed big numbers (#43) @dejurin
  * Fix intword for negative numbers (#41) @vishket
  * Update annotations, docs, and tests: naturaltime can also accept a
    timedelta (#31) @nuztalgia
  * Update annotations: naturadelta and naturaltime can also accept a float
    (#29) @hugovk
  * Rename Arabic locale from ar_SA to ar to enable fallbacks (#27) @hugovk
  * Use %d for year translations, convert to string for intcomma after (#23)
    @carterbox
  * Fix intcomma with ndigits=0 (#26) @hugovk
  * Add humanize.metric() for converting big/small numbers to SI units (#22)
  * Add type hints (#15) @hugovk
  * Fix scientific() on small positive numbers (#22) @bwoodsend
  * Remove redundant wheel dependency from pyproject.toml (#16) @mgorny
  * Support Python 3.11 (#13) @hugovk
  * Add Arabic language (jmoiron/humanize#256) @AYMENJD
  * Docs: add dark mode toggle and default to system preference
    (jmoiron/humanize#255) @hugovk
  * Documentation improvements (jmoiron/humanize#254) @mondeja
  * Update repo links (#2) @hugovk

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanize?expand=0&rev=23
2023-01-04 20:04:44 +00:00

67 lines
2.0 KiB
RPMSpec

#
# spec file for package python-humanize
#
# Copyright (c) 2023 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
%global modname humanize
Name: python-humanize
Version: 4.4.0
Release: 0
Summary: Python humanize utilities
License: MIT
Group: Development/Languages/Python
URL: https://github.com/python-humanize/humanize
Source: https://files.pythonhosted.org/packages/source/h/humanize/humanize-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
This modest package contains various common humanization utilities, like turning
a number into a fuzzy human readable duration ('3 minutes ago') or into a human
readable size or throughput.
%prep
%setup -q -n %{modname}-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENCE
%doc README.md
%{python_sitelib}/*
%{python_sitelib}/humanize/locale/*
%changelog