From ca5a2d82528e5b03db537f795dfb63347eabd56274974d6f6d38dbcbf2fbe6e8 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 31 Mar 2020 05:52:58 +0000 Subject: [PATCH] - Update to 2.2.0: * Added + Disambiguate naturaldate return: only append year if more than + ~5 months away (#107) @hugovk + Add scientific notation to string support (#110) @Thx3r @hugovk + Add micro- and millisecond units to naturaldelta and + naturaltime (#104) @hugovk + Add ndigits option to intcomma (#123) @hugovk + Show more than bytes for negative file sizes (#122) @hugovk * Fixed + Fix: AP style for 0 is 'zero' (#121) @hugovk * Changed + Disambiguate naturaldate return: only append year if more than ~5 months away (#107) @hugovk + Convert remaining tests to use pytest.mark.parametrize (#109) @hugovk + Refactor some tests to use pytest.mark.parametrize (#108) @hugovk * Removed + Drop support for EOL Python 2 (#102) @hugovk - Fiddle with BuildRequires, adding new modules that are needed - Switch to pypi source tarball, required for setuptools_scm OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanize?expand=0&rev=12 --- 0.5.1.tar.gz | 3 --- humanize-2.2.0.tar.gz | 3 +++ python-humanize.changes | 23 +++++++++++++++++++++++ python-humanize.spec | 13 ++++++++----- 4 files changed, 34 insertions(+), 8 deletions(-) delete mode 100644 0.5.1.tar.gz create mode 100644 humanize-2.2.0.tar.gz diff --git a/0.5.1.tar.gz b/0.5.1.tar.gz deleted file mode 100644 index adc1589..0000000 --- a/0.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3f3ac75e647f75eec48c3950385ab7585c1c1cde2a6c1479c1f58e055a3e868 -size 20507 diff --git a/humanize-2.2.0.tar.gz b/humanize-2.2.0.tar.gz new file mode 100644 index 0000000..147e02f --- /dev/null +++ b/humanize-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de8ef6ffee618a9d369b3d1fb1359780ccaa2cc76a0e777c6ff21f04d19a0eb8 +size 42776 diff --git a/python-humanize.changes b/python-humanize.changes index 8be854c..26fe2d1 100644 --- a/python-humanize.changes +++ b/python-humanize.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Tue Mar 31 05:49:52 UTC 2020 - steven.kowalik@suse.com + +- Update to 2.2.0: + * Added + + Disambiguate naturaldate return: only append year if more than + + ~5 months away (#107) @hugovk + + Add scientific notation to string support (#110) @Thx3r @hugovk + + Add micro- and millisecond units to naturaldelta and + + naturaltime (#104) @hugovk + + Add ndigits option to intcomma (#123) @hugovk + + Show more than bytes for negative file sizes (#122) @hugovk + * Fixed + + Fix: AP style for 0 is 'zero' (#121) @hugovk + * Changed + + Disambiguate naturaldate return: only append year if more than ~5 months away (#107) @hugovk + + Convert remaining tests to use pytest.mark.parametrize (#109) @hugovk + + Refactor some tests to use pytest.mark.parametrize (#108) @hugovk + * Removed + + Drop support for EOL Python 2 (#102) @hugovk +- Fiddle with BuildRequires, adding new modules that are needed +- Switch to pypi source tarball, required for setuptools_scm + ------------------------------------------------------------------- Wed Jun 5 08:03:04 UTC 2019 - Petr Gajdos diff --git a/python-humanize.spec b/python-humanize.spec index 981615a..9540ed2 100644 --- a/python-humanize.spec +++ b/python-humanize.spec @@ -1,7 +1,7 @@ # # spec file for package python-humanize # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +17,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 %global modname humanize Name: python-humanize -Version: 0.5.1 +Version: 2.2.0 Release: 0 Summary: Python humanize utilities License: MIT Group: Development/Languages/Python URL: http://github.com/jmoiron/humanize -Source: https://github.com/jmoiron/humanize/archive/%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/h/humanize/humanize-%{version}.tar.gz +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module mock} +BuildRequires: %{python_module freezegun} +BuildRequires: %{python_module pytest} # /SECTION BuildArch: noarch %python_subpackages @@ -55,7 +58,7 @@ readable size or throughput. %files %{python_files} %license LICENCE -%doc README.rst +%doc README.md %{python_sitelib}/* %{python_sitelib}/humanize/locale/*