Hello community, here is the log from the commit of package python-inflection for openSUSE:Factory checked in at 2020-08-04 20:24:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-inflection (Old) and /work/SRC/openSUSE:Factory/.python-inflection.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-inflection" Tue Aug 4 20:24:55 2020 rev:4 rq:824332 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-inflection/python-inflection.changes 2020-04-14 16:30:49.748083196 +0200 +++ /work/SRC/openSUSE:Factory/.python-inflection.new.3592/python-inflection.changes 2020-08-04 20:25:19.817041228 +0200 @@ -1,0 +2,6 @@ +Tue Jul 28 12:05:16 UTC 2020 - Sebastian Wagner <sebix+novell....@sebix.at> + +- update to version 0.5.0: + - Add type hints (#45) + +------------------------------------------------------------------- Old: ---- inflection-0.4.0.tar.gz New: ---- inflection-0.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-inflection.spec ++++++ --- /var/tmp/diff_new_pack.jzNRpQ/_old 2020-08-04 20:25:21.757041882 +0200 +++ /var/tmp/diff_new_pack.jzNRpQ/_new 2020-08-04 20:25:21.761041883 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-inflection -Version: 0.4.0 +Version: 0.5.0 Release: 0 Summary: A port of Ruby on Rails inflector to Python License: MIT ++++++ inflection-0.4.0.tar.gz -> inflection-0.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.4.0/PKG-INFO new/inflection-0.5.0/PKG-INFO --- old/inflection-0.4.0/PKG-INFO 2020-04-06 21:28:11.525230400 +0200 +++ new/inflection-0.5.0/PKG-INFO 2020-06-06 10:04:19.762203500 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: inflection -Version: 0.4.0 +Version: 0.5.0 Summary: A port of Ruby on Rails inflector to Python Home-page: https://github.com/jpvanhal/inflection Author: Janne Vanhala Binary files old/inflection-0.4.0/docs/__pycache__/conf.cpython-38.pyc and new/inflection-0.5.0/docs/__pycache__/conf.cpython-38.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.4.0/docs/conf.py new/inflection-0.5.0/docs/conf.py --- old/inflection-0.4.0/docs/conf.py 2020-04-06 21:15:59.000000000 +0200 +++ new/inflection-0.5.0/docs/conf.py 2020-06-06 09:58:38.000000000 +0200 @@ -13,6 +13,8 @@ import sys, os +from typing import Dict + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -124,7 +126,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -182,7 +184,7 @@ # Additional stuff for the LaTeX preamble. #'preamble': '', -} +} # type: Dict[str, str] # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.4.0/inflection.egg-info/PKG-INFO new/inflection-0.5.0/inflection.egg-info/PKG-INFO --- old/inflection-0.4.0/inflection.egg-info/PKG-INFO 2020-04-06 21:28:11.000000000 +0200 +++ new/inflection-0.5.0/inflection.egg-info/PKG-INFO 2020-06-06 10:04:19.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: inflection -Version: 0.4.0 +Version: 0.5.0 Summary: A port of Ruby on Rails inflector to Python Home-page: https://github.com/jpvanhal/inflection Author: Janne Vanhala diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.4.0/inflection.py new/inflection-0.5.0/inflection.py --- old/inflection-0.4.0/inflection.py 2020-04-06 21:15:47.000000000 +0200 +++ new/inflection-0.5.0/inflection.py 2020-06-06 09:58:44.000000000 +0200 @@ -12,7 +12,7 @@ import re import unicodedata -__version__ = '0.4.0' +__version__ = '0.5.0' PLURALS = [ (r"(?i)(quiz)$", r'\1zes'), @@ -88,7 +88,7 @@ 'species'} -def _irregular(singular, plural): +def _irregular(singular: str, plural: str) -> None: """ A convenience function to add appropriate rules to plurals and singular for irregular words. @@ -96,7 +96,7 @@ :param singular: irregular word in singular form :param plural: irregular word in plural form """ - def caseinsensitive(string): + def caseinsensitive(string: str) -> str: return ''.join('[' + char + char.upper() + ']' for char in string) if singular[0].upper() == plural[0].upper(): @@ -141,7 +141,7 @@ )) -def camelize(string, uppercase_first_letter=True): +def camelize(string: str, uppercase_first_letter: bool = True) -> str: """ Convert strings to CamelCase. @@ -168,7 +168,7 @@ return string[0].lower() + camelize(string)[1:] -def dasherize(word): +def dasherize(word: str) -> str: """Replace underscores with dashes in the string. Example:: @@ -180,7 +180,7 @@ return word.replace('_', '-') -def humanize(word): +def humanize(word: str) -> str: """ Capitalize the first word and turn underscores into spaces and strip a trailing ``"_id"``, if any. Like :func:`titleize`, this is meant for @@ -201,7 +201,7 @@ return word -def ordinal(number): +def ordinal(number: int) -> str: """ Return the suffix that should be added to a number to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. @@ -233,7 +233,7 @@ }.get(number % 10, "th") -def ordinalize(number): +def ordinalize(number: int) -> str: """ Turn a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. @@ -257,7 +257,7 @@ return "{}{}".format(number, ordinal(number)) -def parameterize(string, separator='-'): +def parameterize(string: str, separator: str = '-') -> str: """ Replace special characters in a string so that it may be used as part of a 'pretty' URL. @@ -281,7 +281,7 @@ return string.lower() -def pluralize(word): +def pluralize(word: str) -> str: """ Return the plural form of a word. @@ -306,7 +306,7 @@ return word -def singularize(word): +def singularize(word: str) -> str: """ Return the singular form of a word, the reverse of :func:`pluralize`. @@ -334,7 +334,7 @@ return word -def tableize(word): +def tableize(word: str) -> str: """ Create the name of a table like Rails does for models to table names. This method uses the :func:`pluralize` method on the last word in the string. @@ -351,7 +351,7 @@ return pluralize(underscore(word)) -def titleize(word): +def titleize(word: str) -> str: """ Capitalize all the words and replace some characters in the string to create a nicer looking title. :func:`titleize` is meant for creating pretty @@ -376,7 +376,7 @@ ) -def transliterate(string): +def transliterate(string: str) -> str: """ Replace non-ASCII characters with an ASCII approximation. If no approximation exists, the non-ASCII character is ignored. The string must @@ -394,7 +394,7 @@ return normalized.encode('ascii', 'ignore').decode('ascii') -def underscore(word): +def underscore(word: str) -> str: """ Make an underscored, lowercase form from the expression in the string. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.4.0/setup.cfg new/inflection-0.5.0/setup.cfg --- old/inflection-0.4.0/setup.cfg 2020-04-06 21:28:11.525918200 +0200 +++ new/inflection-0.5.0/setup.cfg 2020-06-06 10:04:19.762830500 +0200 @@ -10,6 +10,28 @@ [metadata] license_file = LICENSE +[mypy] +disallow_any_decorated = True +disallow_any_explicit = True +warn_unreachable = True +warn_unused_configs = True +disallow_any_generics = True +disallow_subclassing_any = True +disallow_untyped_calls = True +disallow_untyped_defs = True +disallow_incomplete_defs = True +check_untyped_defs = True +disallow_untyped_decorators = True +no_implicit_optional = True +warn_redundant_casts = True +warn_unused_ignores = True +warn_return_any = True +no_implicit_reexport = True +strict_equality = True + +[mypy-test_inflection] +ignore_errors = True + [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.4.0/setup.py new/inflection-0.5.0/setup.py --- old/inflection-0.4.0/setup.py 2020-04-06 21:06:42.000000000 +0200 +++ new/inflection-0.5.0/setup.py 2020-06-06 09:58:38.000000000 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from setuptools import setup +from setuptools import setup # type: ignore import inflection @@ -15,6 +15,7 @@ url='https://github.com/jpvanhal/inflection', license='MIT', py_modules=['inflection'], + package_data={'inflection': ['py.typed']}, zip_safe=False, python_requires='>=3.5', classifiers=[