forked from pool/python-titlecase
		
	Accepting request 607700 from devel:languages:python:misc
Python library to capitalize strings OBS-URL: https://build.opensuse.org/request/show/607700 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-titlecase?expand=0&rev=1
This commit is contained in:
		
							
								
								
									
										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 | ||||
							
								
								
									
										31
									
								
								python-titlecase.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								python-titlecase.changes
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Tue May 15 19:57:54 UTC 2018 - toddrme2178@gmail.com | ||||
|  | ||||
| - Update to 0.12.0 | ||||
|   * Use unicode_literals for Py2 compatibility | ||||
|   * Handle case of `str` in python 2. | ||||
|   * More robust against unicode chars | ||||
|   * Mark strings written by callbacks as immutable | ||||
|   * Add various dash types | ||||
|   * 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  | ||||
|   * 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  | ||||
|   * Allow numbers in 'ALL_CAPS' strings | ||||
|   * Fix MAC/emcee/MacHine casing; add test cases  | ||||
| - Complete rewrite of spec file | ||||
| - Implement single-spec version | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Wed Jun 29 17:42:51 UTC 2011 - hvogel@novell.com | ||||
|  | ||||
| - Initial package, version 0.5.1 | ||||
|  | ||||
							
								
								
									
										63
									
								
								python-titlecase.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								python-titlecase.spec
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,63 @@ | ||||
| # | ||||
| # spec file for package python-titlecase | ||||
| # | ||||
| # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. | ||||
| # | ||||
| # 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 http://bugs.opensuse.org/ | ||||
|  | ||||
|  | ||||
| %{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||||
| Name:           python-titlecase | ||||
| Version:        0.12.0 | ||||
| Release:        0 | ||||
| License:        MIT | ||||
| Summary:        Python library to capitalize strings | ||||
| Url:            https://github.com/ppannuto/python-titlecase | ||||
| Group:          Development/Languages/Python | ||||
| Source:         https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz | ||||
| BuildRequires:  %{python_module devel} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| BuildRequires:  fdupes | ||||
| BuildRequires:  python-rpm-macros | ||||
| # SECTION test requirements | ||||
| BuildRequires:  %{python_module nose >= 1.0} | ||||
| # /SECTION | ||||
| BuildArch:      noarch | ||||
|  | ||||
| %python_subpackages | ||||
|  | ||||
| %description | ||||
| This filter changes all words to Title Caps, and attempts to be | ||||
| clever about SMALL words like a/an/the in the input. | ||||
|  | ||||
| The list of "SMALL words" which are not capped comes from the New | ||||
| York Times Manual of Style, plus some others like 'vs' and 'v'. | ||||
|  | ||||
| %prep | ||||
| %setup -q -n titlecase-%{version} | ||||
|  | ||||
| %build | ||||
| %python_build | ||||
|  | ||||
| %install | ||||
| %python_install | ||||
| %python_expand %fdupes %{buildroot}%{$python_sitelib} | ||||
|  | ||||
| %check | ||||
| %python_exec setup.py test | ||||
|  | ||||
| %files %{python_files} | ||||
| %doc README.rst | ||||
| %python3_only %{_bindir}/titlecase | ||||
| %{python_sitelib}/* | ||||
|  | ||||
| %changelog | ||||
							
								
								
									
										3
									
								
								titlecase-0.12.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								titlecase-0.12.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:84de7a97fb702c400e5ba11c6b30849944b39db12e20fbf4515a23c7538a0611 | ||||
| size 7030 | ||||
		Reference in New Issue
	
	Block a user