Sync from SUSE:SLFO:Main python-inflect revision 6ea793b8d4f9c4203d371de8b3d1a7c2
This commit is contained in:
commit
735cbdbc65
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
|
BIN
inflect-6.0.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
inflect-6.0.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
111
python-inflect.changes
Normal file
111
python-inflect.changes
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
63
python-inflect.spec
Normal file
63
python-inflect.spec
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user