From 0219d1eeea9f872a09d4c2dffb1e0fc06bc3888f0f43e5cec9541dacbe367112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 14 Apr 2020 14:30:46 +0000 Subject: [PATCH] Accepting request 793901 from home:polslinux:branches:devel:languages:python - Update to 4.1.0 * Certain operations now allow ignore arbitrary leading words. * Require Python 3.6 or later. * Drop support for Python 3.4. * Project now builds on jaraco/skeleton for shared package management. OBS-URL: https://build.opensuse.org/request/show/793901 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=6 --- inflect-2.1.0.tar.gz | 3 --- inflect-4.1.0.tar.gz | 3 +++ python-inflect.changes | 9 +++++++++ python-inflect.spec | 16 +++++++++++----- 4 files changed, 23 insertions(+), 8 deletions(-) delete mode 100644 inflect-2.1.0.tar.gz create mode 100644 inflect-4.1.0.tar.gz diff --git a/inflect-2.1.0.tar.gz b/inflect-2.1.0.tar.gz deleted file mode 100644 index 90b5173..0000000 --- a/inflect-2.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4ded1b2a6fcf0fc0397419c7727f131a93b67b80d899f2973be7758628e12b73 -size 98767 diff --git a/inflect-4.1.0.tar.gz b/inflect-4.1.0.tar.gz new file mode 100644 index 0000000..72298d9 --- /dev/null +++ b/inflect-4.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:def6f3791be9181f0c01e0bf5949304007ec6e04c6674fbef7cc49c657b8a9a5 +size 72200 diff --git a/python-inflect.changes b/python-inflect.changes index 77f221a..1305df0 100644 --- a/python-inflect.changes +++ b/python-inflect.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Apr 14 11:03:28 UTC 2020 - Paolo Stivanin + +- Update to 4.1.0 + * Certain operations now allow ignore arbitrary leading words. + * Require Python 3.6 or later. + * Drop support for Python 3.4. + * Project now builds on jaraco/skeleton for shared package management. + ------------------------------------------------------------------- Tue Jun 11 08:38:40 UTC 2019 - Marketa Calabkova diff --git a/python-inflect.spec b/python-inflect.spec index d8157af..425270a 100644 --- a/python-inflect.spec +++ b/python-inflect.spec @@ -1,7 +1,7 @@ # # spec file for package python-inflect # -# 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 @@ -16,19 +16,24 @@ # +%define skip_python2 1 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-inflect -Version: 2.1.0 +Version: 4.1.0 Release: 0 Summary: Methods for working on numbers and nouns License: MIT Group: Development/Languages/Python URL: https://github.com/jazzband/inflect Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz -BuildRequires: %{python_module nose} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module toml} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-toml BuildArch: noarch %python_subpackages @@ -38,6 +43,7 @@ Correctly generate plurals, singular nouns, ordinals, indefinite articles; conve %prep %setup -q -n inflect-%{version} rm -rf inflect.egg-info +sed -i 's/addopts=--doctest-modules --flake8 --black --cov/addopts=--doctest-modules/g' pytest.ini %build %python_build @@ -47,11 +53,11 @@ rm -rf inflect.egg-info %python_exec %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand nosetests-%{$python_bin_suffix} +%pytest tests/ %files %{python_files} %license LICENSE -%doc CHANGES.txt README.rst +%doc CHANGES.rst README.rst %{python_sitelib}/* %changelog