From 3f950c473e10e0e34f55291470557b6fdf935d5e333c4f4c29ff0628c85c7efb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 24 Oct 2023 14:02:10 +0000 Subject: [PATCH] - update to 2.4.1: * Fix invalid escape sequence warning - add setuptools_scm to get proper versions in the metadata - Update to version 2.4 * cmd: fix check for no additional parameters * Fix APOS_SECOND possessive noun * Defer lowering all caps until recursion is done * More restrictive regex for 'Mc' * Handle `/`'s with recursion so all logic applies * Handle single letter + apostrophe better * Fix MAC/emcee/MacHine casing; add test cases OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-titlecase?expand=0&rev=13 --- python-titlecase.changes | 27 +++++++++++++++++++-------- python-titlecase.spec | 8 +++++--- titlecase-2.4.1.tar.gz | 3 +++ titlecase-2.4.tar.gz | 3 --- 4 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 titlecase-2.4.1.tar.gz delete mode 100644 titlecase-2.4.tar.gz diff --git a/python-titlecase.changes b/python-titlecase.changes index 295ad2b..46a0e2b 100644 --- a/python-titlecase.changes +++ b/python-titlecase.changes @@ -1,7 +1,18 @@ +------------------------------------------------------------------- +Tue Oct 24 14:01:36 UTC 2023 - Dirk Müller + +- update to 2.4.1: + * Fix invalid escape sequence warning + +------------------------------------------------------------------- +Tue Oct 24 14:00:34 UTC 2023 - Dirk Müller + +- add setuptools_scm to get proper versions in the metadata + ------------------------------------------------------------------- Tue Oct 11 16:00:24 UTC 2022 - Yogalakshmi Arunachalam -- Update to version 2.4 +- Update to version 2.4 * Add `preserve_blank_lines` option (#88) * Add Py3.10, Drop Py3.6 * Update unit testing framework @@ -46,20 +57,20 @@ Tue May 15 19:57:54 UTC 2018 - toddrme2178@gmail.com * More robust against unicode chars * Mark strings written by callbacks as immutable * Add various dash types - * cmd: fix check for no additional parameters + * cmd: fix check for no additional parameters * add small_first_last option * allow titlecase to be a command line utility * tests for hyphenated McName-Names * improve MAC_MC match handling * Support for hyphen and em dash delimited sub-phrases. - * Fix APOS_SECOND possessive noun + * Fix APOS_SECOND possessive noun * Add function for customizing small-word list - * Defer lowering all caps until recursion is done - * More restrictive regex for 'Mc' - * Handle `/`'s with recursion so all logic applies - * Handle single letter + apostrophe better + * Defer lowering all caps until recursion is done + * More restrictive regex for 'Mc' + * Handle `/`'s with recursion so all logic applies + * Handle single letter + apostrophe better * Allow numbers in 'ALL_CAPS' strings - * Fix MAC/emcee/MacHine casing; add test cases + * Fix MAC/emcee/MacHine casing; add test cases - Complete rewrite of spec file - Implement single-spec version diff --git a/python-titlecase.spec b/python-titlecase.spec index c1bfb11..2bdae81 100644 --- a/python-titlecase.spec +++ b/python-titlecase.spec @@ -1,7 +1,7 @@ # # spec file for package python-titlecase # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-titlecase -Version: 2.4 +Version: 2.4.1 Release: 0 Summary: Python library to capitalize strings License: MIT @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: https://github.com/ppannuto/python-titlecase Source: https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz BuildRequires: %{python_module regex >= 2020.4.4} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -68,6 +69,7 @@ York Times Manual of Style, plus some others like 'vs' and 'v'. %files %{python_files} %doc README.rst %python_alternative %{_bindir}/titlecase -%{python_sitelib}/* +%{python_sitelib}/titlecase +%{python_sitelib}/titlecase-%{version}*-info %changelog diff --git a/titlecase-2.4.1.tar.gz b/titlecase-2.4.1.tar.gz new file mode 100644 index 0000000..c5170fa --- /dev/null +++ b/titlecase-2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d83a277ccbbda11a2944e78a63e5ccaf3d32f828c594312e4862f9a07f635f5 +size 14434 diff --git a/titlecase-2.4.tar.gz b/titlecase-2.4.tar.gz deleted file mode 100644 index e4ab43f..0000000 --- a/titlecase-2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:269293cae4b1fc12fdb21224819201a2ab4b97f3ea36b334f90804799b140902 -size 14413