From 3c42b0194bd539afa4a8b63f5de3e0fd641905af5bd21e1a4fd8c90508a26856 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 14 Nov 2024 14:15:46 +0000 Subject: [PATCH] - update to 7.4.0: * Handle a single apostrophe more gracefully. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=23 --- .gitattributes | 23 +++++ .gitignore | 1 + inflect-7.0.0.tar.gz | 3 + inflect-7.3.1.tar.gz | 3 + inflect-7.4.0.tar.gz | 3 + python-inflect.changes | 161 ++++++++++++++++++++++++++++++++ python-inflect.spec | 66 +++++++++++++ typing_extensions-version.patch | 16 ++++ 8 files changed, 276 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 inflect-7.0.0.tar.gz create mode 100644 inflect-7.3.1.tar.gz create mode 100644 inflect-7.4.0.tar.gz create mode 100644 python-inflect.changes create mode 100644 python-inflect.spec create mode 100644 typing_extensions-version.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/inflect-7.0.0.tar.gz b/inflect-7.0.0.tar.gz new file mode 100644 index 0000000..e290faf --- /dev/null +++ b/inflect-7.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63da9325ad29da81ec23e055b41225795ab793b4ecb483be5dc1fa363fd4717e +size 70963 diff --git a/inflect-7.3.1.tar.gz b/inflect-7.3.1.tar.gz new file mode 100644 index 0000000..ec0104d --- /dev/null +++ b/inflect-7.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edd785148a673b0c6dfef1a7d80cc1bcb2dd6d041cdb313b60032e464fd4e808 +size 71980 diff --git a/inflect-7.4.0.tar.gz b/inflect-7.4.0.tar.gz new file mode 100644 index 0000000..e57ae12 --- /dev/null +++ b/inflect-7.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:904baa17cc2cb74827a6c27b95692e95670dadc72b208b3e8c1c05aeed47026b +size 72730 diff --git a/python-inflect.changes b/python-inflect.changes new file mode 100644 index 0000000..0f4e945 --- /dev/null +++ b/python-inflect.changes @@ -0,0 +1,161 @@ +------------------------------------------------------------------- +Thu Nov 14 14:14:05 UTC 2024 - Dirk Müller + +- update to 7.4.0: + * Handle a single apostrophe more gracefully. +- drop typing_extensions-version.patch (upstream) + +------------------------------------------------------------------- +Sat Sep 7 00:08:11 UTC 2024 - Matej Cepl + +- Clean up the SPEC file. +- Add typing_extensions-version.patch cleaning up problematic + handling with Annotated type on different versions of Pythons. + +------------------------------------------------------------------- +Wed Sep 4 12:42:21 UTC 2024 - Frantisek Simorda + +- update to 7.3.1: + * Set minimum version of more-itertools to 8.5 (#215) +- version 7.3.0: + * Restricted typing_extensions to Python 3.8. (#211) +- version 7.2.1: + * Refactored number_to_words toward reduced complexity. +- version 7.2.0: + * Replace pydantic with typeguard (#195) +- version 7.1.0: + * Now handle 'pair of x' in pl_sb_uninflected_complete (#188) + +------------------------------------------------------------------- +Tue Nov 7 14:57:37 UTC 2023 - Dirk Müller + +- update to 7.0.0: + * Refine type hint for ``singular_noun`` to indicate a literal + return type for ``False``. (#186) + * Removed methods renamed in 0.2.0. + * Project now supports Pydantic 2 while retaining support for + Pydantic 1. (#187) + * Added validation of user-defined words and amended the type + declarations to match, allowing for null values but not empty + strings. (#187) + * ``ordinal`` now handles float types correctly without first + coercing them to strings. (#178) + * Require Python 3.8 or later. + +------------------------------------------------------------------- +Tue Nov 7 14:56:14 UTC 2023 - Dirk Müller + +- update to 6.0.5: + * Pin to Pydantic 1 to avoid breaking in Pydantic 2. + +------------------------------------------------------------------- +Wed May 10 06:42:21 UTC 2023 - Dirk Müller + +- update to 6.0.4: + * Internal cleanup. + * A/an support now more correctly honors leading + * capitalized words and abbreviations. + * Improve support for ordinals for floats. + * Require pydantic 1.9.1 to avoid ``ValueError``. + * Minor tweaks and packaging refresh. + * ``compare`` methods now validate their inputs + and will raise a more meaningful exception if an + empty string or None is passed. This expectation is now + documented. + * Many public methods now perform validation on arguments. + * An empty string is no longer allowed for words or text. + * #15: Fixes to plural edge case handling. + * Packaging refresh and docs update. + * #153: Internal refactor to simplify and unify + ``_plnoun`` and ``_sinoun``. + * Fixed badges. + * Rewrite to satisfy type checkers. + * #147: Enhanced type annotations. + * Add a ``py.typed`` file so mypy recognizes type + annotations. + * Misc fixes in #128, #134, #135, #137, #138, #139, #140, #142, + * #143, #144. + * Require Python 3.7 or later. + * Add support for pluralizing open compound nouns. + * Modernized the codebase. Added a lot of type + annotations. + * Add support for uncountable nouns. + * Refreshed package metadata. + +------------------------------------------------------------------- +Fri Apr 21 12:26:52 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:42:04 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Tue Mar 15 08:04:50 UTC 2022 - Stephan Kulow + +- use %python_expand for %fdupes + +------------------------------------------------------------------- +Wed Jan 20 15:12:07 UTC 2021 - John Vandenberg + +- Update URL to https://github.com/jaraco/inflect +- Update to v5.0.2 + * Inflect withdraws from Jazzband organisation + in order to continue to participate in sustained maintenance + and enterprise support through Tidelift. + The project continues to honor the guidelines and principles + behind Jazzband and welcomes contributors openly +- from v5.0.1 + * Identical release validating release process +- from v5.0.0 + * Module no longer exposes a ``__version__`` attribute. + Instead to query the version installed, use + importlib.metadata or its backport +- from v4.1.1 + * Refreshed package metadata + +------------------------------------------------------------------- +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 + +- update to version 2.1.0 + * Relicensed under the more permissive MIT License. + * fix inconsistencies with the inflect method + * Improved unicode handling. + * Fix capitalization issues in processes where more than one word + is involved. + * fix extraneous close parentheses. + * Dropped support for Python 3.3. + * Moved hosting to jazzband. + +------------------------------------------------------------------- +Tue Jul 4 18:37:00 UTC 2017 - aloisio@gmx.com + +- Converted to singlespec +- Enabled tests + +------------------------------------------------------------------- +Tue Aug 2 13:24:18 UTC 2016 - sor.alexei@meowr.ru + +- Switch to Python2. + +------------------------------------------------------------------- +Sun May 8 07:09:10 UTC 2016 - arun@gmx.de + +- specfile: + * updated source url to files.pythonhosted.org + +------------------------------------------------------------------- +Sat Feb 14 21:14:47 UTC 2015 - arun@gmx.de + +- initial version diff --git a/python-inflect.spec b/python-inflect.spec new file mode 100644 index 0000000..3b97468 --- /dev/null +++ b/python-inflect.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-inflect +# +# 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-inflect +Version: 7.4.0 +Release: 0 +Summary: Methods for working on numbers and nouns +License: MIT +Group: Development/Languages/Python +URL: https://github.com/jaraco/inflect +Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz +BuildRequires: %{python_module devel >= 3.8} +BuildRequires: %{python_module more-itertools >= 8.5.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module typeguard} +BuildRequires: %{python_module typing_extensions if %python-base < 3.9} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: %{python_module typeguard} +Requires: python-more-itertools >= 8.5.0 +BuildArch: noarch +%python_subpackages + +%description +Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words. + +%prep +%setup -q -n inflect-%{version} +# sed -i 's/addopts=--doctest-modules --flake8 --black --cov/addopts=--doctest-modules/g' pytest.ini + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests/ + +%files %{python_files} +%license LICENSE +%doc NEWS.rst README.rst +%{python_sitelib}/inflect +%{python_sitelib}/inflect-%{version}*-info + +%changelog diff --git a/typing_extensions-version.patch b/typing_extensions-version.patch new file mode 100644 index 0000000..c86b3a1 --- /dev/null +++ b/typing_extensions-version.patch @@ -0,0 +1,16 @@ +--- + inflect/compat/py38.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/inflect/compat/py38.py ++++ b/inflect/compat/py38.py +@@ -1,7 +1,7 @@ + import sys + + +-if sys.version_info >= (3, 9): ++try: + from typing import Annotated +-else: # pragma: no cover ++except ImportError: + from typing_extensions import Annotated # noqa: F401