- Do not (ever) use %python_modules on runtime requires: it pulls
in all python flavors. Change to Requires: python-typeguard which will be rewritten by the python singlespec machinery. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=25
This commit is contained in:
commit
97fb2bd72b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
BIN
inflect-7.0.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
inflect-7.0.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
inflect-7.3.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
inflect-7.3.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
inflect-7.4.0.tar.gz
Normal file
3
inflect-7.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:904baa17cc2cb74827a6c27b95692e95670dadc72b208b3e8c1c05aeed47026b
|
||||||
|
size 72730
|
168
python-inflect.changes
Normal file
168
python-inflect.changes
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 19 15:09:13 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Do not (ever) use %python_modules on runtime requires: it pulls
|
||||||
|
in all python flavors. Change to Requires: python-typeguard which
|
||||||
|
will be rewritten by the python singlespec machinery.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 14 14:14:05 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- 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 <frantisek.simorda@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 13 22:42:04 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make calling of %{sle15modernpython} optional.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 15 08:04:50 UTC 2022 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- use %python_expand for %fdupes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 20 15:12:07 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- 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 <info@paolostivanin.com>
|
||||||
|
|
||||||
|
- 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 <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- 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
|
66
python-inflect.spec
Normal file
66
python-inflect.spec
Normal file
@ -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-more-itertools >= 8.5.0
|
||||||
|
Requires: python-typeguard
|
||||||
|
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
|
16
typing_extensions-version.patch
Normal file
16
typing_extensions-version.patch
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user