commit 735cbdbc65d0693a3faef11ca32d2ceaad321725e1f1972098dfc42e5b416588 Author: Adrian Schröter Date: Fri May 3 21:03:34 2024 +0200 Sync from SUSE:SLFO:Main python-inflect revision 6ea793b8d4f9c4203d371de8b3d1a7c2 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/inflect-6.0.4.tar.gz b/inflect-6.0.4.tar.gz new file mode 100644 index 0000000..65fa290 --- /dev/null +++ b/inflect-6.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1842649a17b6cad66812a5c9bdfacb6310e1e7b6dd8a31f026766df1b62612eb +size 71131 diff --git a/python-inflect.changes b/python-inflect.changes new file mode 100644 index 0000000..c1d289a --- /dev/null +++ b/python-inflect.changes @@ -0,0 +1,111 @@ +------------------------------------------------------------------- +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..e019e44 --- /dev/null +++ b/python-inflect.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-inflect +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-inflect +Version: 6.0.4 +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.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pydantic >= 1.9.1} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module toml} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pydantic >= 1.9.1 +Requires: python-toml +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 CHANGES.rst README.rst +%{python_sitelib}/* + +%changelog