Hello community, here is the log from the commit of package python-inflection for openSUSE:Leap:15.2 checked in at 2020-04-17 13:37:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-inflection (Old) and /work/SRC/openSUSE:Leap:15.2/.python-inflection.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-inflection" Fri Apr 17 13:37:14 2020 rev:12 rq:794233 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-inflection/python-inflection.changes 2020-03-09 18:06:32.372852484 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-inflection.new.2738/python-inflection.changes 2020-04-17 13:37:15.128206735 +0200 @@ -1,0 +2,27 @@ +Tue Apr 7 07:42:02 UTC 2020 - Sebastian Wagner <[email protected]> + +- Disable Python2 build, upstream says they stopped support for it. + +------------------------------------------------------------------- +Tue Apr 7 07:39:01 UTC 2020 - Sebastian Wagner <[email protected]> + +- update to version 0.4.0: + - BREAKING CHANGES + - Drop support for Python 2.6 and 3.3 (2dfa5f6) + - Drop support for Python 2.7 (a826dac) + - Drop support for Python 3.4 (351a0f5) + - Drop support for PyPy (88a0a5f) + - Features + - Include docs in releases (4c85b45) + - Add universal wheel distribution (2daa3c7) + - Add support for Python 3.5 and 3.6 (2dfa5f6) + - Add support for Python 3.7 and 3.8 (09efb13) + - Add support for PyPy 3 (2d2d379) + - Move Changelog to GitHub releases (5181192) + - Bug Fixes + - Fix typo in camelize docs (5f44276) + - Fix doctest blocks in docstrings (1d6c78f) (#11) + - Fix "passerby" pluralized as "passerbys" and not "passersby (1969b3a) (#40) + - Fix titleize() capitalizing only words starting with A-Z (e32443b) (#33) + +------------------------------------------------------------------- Old: ---- inflection-0.3.1.tar.gz New: ---- inflection-0.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-inflection.spec ++++++ --- /var/tmp/diff_new_pack.2sMzBS/_old 2020-04-17 13:37:15.540207045 +0200 +++ /var/tmp/diff_new_pack.2sMzBS/_new 2020-04-17 13:37:15.540207045 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-inflection # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-inflection -Version: 0.3.1 +Version: 0.4.0 Release: 0 Summary: A port of Ruby on Rails inflector to Python License: MIT Group: Development/Languages/Python -Url: http://github.com/jpvanhal/inflection +URL: http://github.com/jpvanhal/inflection Source: https://files.pythonhosted.org/packages/source/i/inflection/inflection-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -54,7 +55,7 @@ %python_exec setup.py test %files %{python_files} -%doc CHANGES.rst README.rst +%doc README.rst %%license LICENSE %{python_sitelib}/* ++++++ inflection-0.3.1.tar.gz -> inflection-0.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/CHANGES.rst new/inflection-0.4.0/CHANGES.rst --- old/inflection-0.3.1/CHANGES.rst 2015-05-03 10:06:13.000000000 +0200 +++ new/inflection-0.4.0/CHANGES.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -Changelog ---------- - -Here you can see the full list of changes between each Inflection release. - -0.3.1 (May 3, 2015) -^^^^^^^^^^^^^^^^^^^ - -- Fixed trove classifiers not showing up on PyPI. -- Fixed "human" pluralized as "humen" and not "humans". -- Fixed "potato" pluralized as "potatos" and not "potatoes". - -0.3.0 (March 1, 2015) -+++++++++++++++++++++ - -- Added `tableize()` function. - -0.2.1 (September 3, 2014) -+++++++++++++++++++++++++ - -- Added Python 2, Python 3 and Python 3.4 trove classifiers. - -0.2.0 (June 15, 2013) -+++++++++++++++++++++ - -- Added initial support for Python 3. -- Dropped Python 2.5 support. - -0.1.2 (March 13, 2012) -++++++++++++++++++++++ - -- Added Python 2.5 support. - -0.1.1 (February 24, 2012) -+++++++++++++++++++++++++ - -- Fixed some files not included in the distribution package. - -0.1.0 (February 24, 2012) -+++++++++++++++++++++++++ - -- Initial public release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/LICENSE new/inflection-0.4.0/LICENSE --- old/inflection-0.3.1/LICENSE 2015-03-01 18:29:02.000000000 +0100 +++ new/inflection-0.4.0/LICENSE 2020-04-06 21:15:38.000000000 +0200 @@ -1,4 +1,4 @@ -Copyright (C) 2012-2015 Janne Vanhala +Copyright (C) 2012-2020 Janne Vanhala Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/MANIFEST.in new/inflection-0.4.0/MANIFEST.in --- old/inflection-0.3.1/MANIFEST.in 2013-06-15 16:41:29.000000000 +0200 +++ new/inflection-0.4.0/MANIFEST.in 2020-04-06 21:06:22.000000000 +0200 @@ -1,2 +1,3 @@ -include README.rst LICENSE CHANGES.rst test_inflection.py - +include README.rst LICENSE test_inflection.py +graft docs +prune docs/_build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/PKG-INFO new/inflection-0.4.0/PKG-INFO --- old/inflection-0.3.1/PKG-INFO 2015-05-03 10:08:12.000000000 +0200 +++ new/inflection-0.4.0/PKG-INFO 2020-04-06 21:28:11.525230400 +0200 @@ -1,8 +1,8 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: inflection -Version: 0.3.1 +Version: 0.4.0 Summary: A port of Ruby on Rails inflector to Python -Home-page: http://github.com/jpvanhal/inflection +Home-page: https://github.com/jpvanhal/inflection Author: Janne Vanhala Author-email: [email protected] License: MIT @@ -11,7 +11,7 @@ |build status|_ - .. |build status| image:: https://secure.travis-ci.org/jpvanhal/inflection.png?branch=master + .. |build status| image:: https://travis-ci.org/jpvanhal/inflection.svg?branch=master :alt: Build Status .. _build status: http://travis-ci.org/jpvanhal/inflection @@ -25,66 +25,23 @@ Resources --------- - - `Documentation <http://inflection.readthedocs.org/>`_ + - `Documentation <https://inflection.readthedocs.io/>`_ - `Issue Tracker <http://github.com/jpvanhal/inflection/issues>`_ - `Code <http://github.com/jpvanhal/inflection>`_ - `Development Version <http://github.com/jpvanhal/inflection/zipball/master#egg=Inflection-dev>`_ - - Changelog - --------- - - Here you can see the full list of changes between each Inflection release. - - 0.3.1 (May 3, 2015) - ^^^^^^^^^^^^^^^^^^^ - - - Fixed trove classifiers not showing up on PyPI. - - Fixed "human" pluralized as "humen" and not "humans". - - Fixed "potato" pluralized as "potatos" and not "potatoes". - - 0.3.0 (March 1, 2015) - +++++++++++++++++++++ - - - Added `tableize()` function. - - 0.2.1 (September 3, 2014) - +++++++++++++++++++++++++ - - - Added Python 2, Python 3 and Python 3.4 trove classifiers. - - 0.2.0 (June 15, 2013) - +++++++++++++++++++++ - - - Added initial support for Python 3. - - Dropped Python 2.5 support. - - 0.1.2 (March 13, 2012) - ++++++++++++++++++++++ - - - Added Python 2.5 support. - - 0.1.1 (February 24, 2012) - +++++++++++++++++++++++++ - - - Fixed some files not included in the distribution package. - - 0.1.0 (February 24, 2012) - +++++++++++++++++++++++++ - - - Initial public release - Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Developers Classifier: Natural Language :: English Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.6 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy +Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/README.rst new/inflection-0.4.0/README.rst --- old/inflection-0.3.1/README.rst 2013-06-15 16:41:29.000000000 +0200 +++ new/inflection-0.4.0/README.rst 2020-04-06 19:21:09.000000000 +0200 @@ -3,7 +3,7 @@ |build status|_ -.. |build status| image:: https://secure.travis-ci.org/jpvanhal/inflection.png?branch=master +.. |build status| image:: https://travis-ci.org/jpvanhal/inflection.svg?branch=master :alt: Build Status .. _build status: http://travis-ci.org/jpvanhal/inflection @@ -17,7 +17,7 @@ Resources --------- -- `Documentation <http://inflection.readthedocs.org/>`_ +- `Documentation <https://inflection.readthedocs.io/>`_ - `Issue Tracker <http://github.com/jpvanhal/inflection/issues>`_ - `Code <http://github.com/jpvanhal/inflection>`_ - `Development Version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/docs/Makefile new/inflection-0.4.0/docs/Makefile --- old/inflection-0.3.1/docs/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ new/inflection-0.4.0/docs/Makefile 2020-04-06 19:21:09.000000000 +0200 @@ -0,0 +1,153 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext + +help: + @echo "Please use \`make <target>' where <target> is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + +clean: + -rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/inflection.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/inflection.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/inflection" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/inflection" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." Binary files old/inflection-0.3.1/docs/__pycache__/conf.cpython-38.pyc and new/inflection-0.4.0/docs/__pycache__/conf.cpython-38.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/docs/conf.py new/inflection-0.4.0/docs/conf.py --- old/inflection-0.3.1/docs/conf.py 1970-01-01 01:00:00.000000000 +0100 +++ new/inflection-0.4.0/docs/conf.py 2020-04-06 21:15:59.000000000 +0200 @@ -0,0 +1,246 @@ +# -*- coding: utf-8 -*- +# +# inflection documentation build configuration file, created by +# sphinx-quickstart on Wed Feb 22 22:51:13 2012. +# +# This file is execfile()d with the current directory set to its containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys, os + +# 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. +sys.path.insert(0, os.path.abspath('..')) +from inflection import __version__ + +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + + +# -- General configuration ----------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be extensions +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage', 'sphinx.ext.viewcode'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'inflection' +copyright = u'2012-2020, Janne Vanhala' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = __version__ +# The full version, including alpha/beta/rc tags. +release = version + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build'] + +# The reST default role (used for this markup: `text`) to use for all documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + + +# -- Options for HTML output --------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'default' if on_rtd else 'nature' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# "<project> v<release> documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# 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'] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a <link> tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'inflectiondoc' + + +# -- Options for LaTeX output -------------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +#'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +#'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, documentclass [howto/manual]). +latex_documents = [ + ('index', 'inflection.tex', u'inflection Documentation', + u'Janne Vanhala', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output -------------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', 'inflection', u'inflection Documentation', + [u'Janne Vanhala'], 1) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------------ + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ('index', 'inflection', u'inflection Documentation', + u'Janne Vanhala', 'inflection', 'One line description of project.', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/docs/index.rst new/inflection-0.4.0/docs/index.rst --- old/inflection-0.3.1/docs/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/inflection-0.4.0/docs/index.rst 2020-04-06 21:14:14.000000000 +0200 @@ -0,0 +1,60 @@ +Inflection +========== + +Inflection is a string transformation library. It singularizes and pluralizes +English words, and transforms strings from CamelCase to underscored_string. +Inflection is a port of `Ruby on Rails`_' `inflector`_ to Python. + +.. _Ruby on Rails: http://rubyonrails.org +.. _inflector: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html + + +Installation +------------ + +Use pip to install from PyPI:: + + pip install inflection + + +Contributing +------------ + +To contribute to Inflector `create a fork`_ on GitHub. Clone your fork, make +some changes, and submit a pull request. + +.. _create a fork: https://github.com/jpvanhal/inflection/fork_select + + +API Documentation +----------------- + +.. module:: inflection + +.. autofunction:: camelize +.. autofunction:: dasherize +.. autofunction:: humanize +.. autofunction:: ordinal +.. autofunction:: ordinalize +.. autofunction:: parameterize +.. autofunction:: pluralize +.. autofunction:: singularize +.. autofunction:: tableize +.. autofunction:: titleize +.. autofunction:: transliterate +.. autofunction:: underscore + + +Changelog +--------- + +You you can see the full list of changes between each Inflection release in +`GitHub releases page`_. + +.. _GitHub releases page: https://github.com/jpvanhal/inflection/releases + + +License +------- + +.. include:: ../LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/inflection.egg-info/PKG-INFO new/inflection-0.4.0/inflection.egg-info/PKG-INFO --- old/inflection-0.3.1/inflection.egg-info/PKG-INFO 2015-05-03 10:08:11.000000000 +0200 +++ new/inflection-0.4.0/inflection.egg-info/PKG-INFO 2020-04-06 21:28:11.000000000 +0200 @@ -1,8 +1,8 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: inflection -Version: 0.3.1 +Version: 0.4.0 Summary: A port of Ruby on Rails inflector to Python -Home-page: http://github.com/jpvanhal/inflection +Home-page: https://github.com/jpvanhal/inflection Author: Janne Vanhala Author-email: [email protected] License: MIT @@ -11,7 +11,7 @@ |build status|_ - .. |build status| image:: https://secure.travis-ci.org/jpvanhal/inflection.png?branch=master + .. |build status| image:: https://travis-ci.org/jpvanhal/inflection.svg?branch=master :alt: Build Status .. _build status: http://travis-ci.org/jpvanhal/inflection @@ -25,66 +25,23 @@ Resources --------- - - `Documentation <http://inflection.readthedocs.org/>`_ + - `Documentation <https://inflection.readthedocs.io/>`_ - `Issue Tracker <http://github.com/jpvanhal/inflection/issues>`_ - `Code <http://github.com/jpvanhal/inflection>`_ - `Development Version <http://github.com/jpvanhal/inflection/zipball/master#egg=Inflection-dev>`_ - - Changelog - --------- - - Here you can see the full list of changes between each Inflection release. - - 0.3.1 (May 3, 2015) - ^^^^^^^^^^^^^^^^^^^ - - - Fixed trove classifiers not showing up on PyPI. - - Fixed "human" pluralized as "humen" and not "humans". - - Fixed "potato" pluralized as "potatos" and not "potatoes". - - 0.3.0 (March 1, 2015) - +++++++++++++++++++++ - - - Added `tableize()` function. - - 0.2.1 (September 3, 2014) - +++++++++++++++++++++++++ - - - Added Python 2, Python 3 and Python 3.4 trove classifiers. - - 0.2.0 (June 15, 2013) - +++++++++++++++++++++ - - - Added initial support for Python 3. - - Dropped Python 2.5 support. - - 0.1.2 (March 13, 2012) - ++++++++++++++++++++++ - - - Added Python 2.5 support. - - 0.1.1 (February 24, 2012) - +++++++++++++++++++++++++ - - - Fixed some files not included in the distribution package. - - 0.1.0 (February 24, 2012) - +++++++++++++++++++++++++ - - - Initial public release - Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Developers Classifier: Natural Language :: English Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.6 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy +Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/inflection.egg-info/SOURCES.txt new/inflection-0.4.0/inflection.egg-info/SOURCES.txt --- old/inflection-0.3.1/inflection.egg-info/SOURCES.txt 2015-05-03 10:08:12.000000000 +0200 +++ new/inflection-0.4.0/inflection.egg-info/SOURCES.txt 2020-04-06 21:28:11.000000000 +0200 @@ -1,4 +1,3 @@ -CHANGES.rst LICENSE MANIFEST.in README.rst @@ -6,6 +5,10 @@ setup.cfg setup.py test_inflection.py +docs/Makefile +docs/conf.py +docs/index.rst +docs/__pycache__/conf.cpython-38.pyc inflection.egg-info/PKG-INFO inflection.egg-info/SOURCES.txt inflection.egg-info/dependency_links.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/inflection.py new/inflection-0.4.0/inflection.py --- old/inflection-0.3.1/inflection.py 2015-05-03 10:06:18.000000000 +0200 +++ new/inflection-0.4.0/inflection.py 2020-04-06 21:15:47.000000000 +0200 @@ -5,14 +5,14 @@ A port of Ruby on Rails' inflector to Python. - :copyright: (c) 2012-2015 by Janne Vanhala + :copyright: (c) 2012-2020 by Janne Vanhala :license: MIT, see LICENSE for more details. """ import re import unicodedata -__version__ = '0.3.1' +__version__ = '0.4.0' PLURALS = [ (r"(?i)(quiz)$", r'\1zes'), @@ -20,6 +20,7 @@ (r"(?i)^(ox)$", r'\1en'), (r"(?i)(m|l)ice$", r'\1ice'), (r"(?i)(m|l)ouse$", r'\1ice'), + (r"(?i)(passer)s?by$", r'\1sby'), (r"(?i)(matr|vert|ind)(?:ix|ex)$", r'\1ices'), (r"(?i)(x|ch|ss|sh)$", r'\1es'), (r"(?i)([^aeiouy]|qu)y$", r'\1ies'), @@ -44,6 +45,7 @@ (r"(?i)(quiz)zes$", r'\1'), (r"(?i)(matr)ices$", r'\1ix'), (r"(?i)(vert|ind)ices$", r'\1ex'), + (r"(?i)(passer)sby$", r'\1by'), (r"(?i)^(ox)en", r'\1'), (r"(?i)(alias|status)(es)?$", r'\1'), (r"(?i)(octop|vir)(us|i)$", r'\1us'), @@ -74,7 +76,7 @@ (r"(?i)s$", ''), ] -UNCOUNTABLES = set([ +UNCOUNTABLES = { 'equipment', 'fish', 'information', @@ -83,8 +85,7 @@ 'rice', 'series', 'sheep', - 'species', -]) + 'species'} def _irregular(singular, plural): @@ -100,40 +101,42 @@ if singular[0].upper() == plural[0].upper(): PLURALS.insert(0, ( - r"(?i)(%s)%s$" % (singular[0], singular[1:]), + r"(?i)({}){}$".format(singular[0], singular[1:]), r'\1' + plural[1:] )) PLURALS.insert(0, ( - r"(?i)(%s)%s$" % (plural[0], plural[1:]), + r"(?i)({}){}$".format(plural[0], plural[1:]), r'\1' + plural[1:] )) SINGULARS.insert(0, ( - r"(?i)(%s)%s$" % (plural[0], plural[1:]), + r"(?i)({}){}$".format(plural[0], plural[1:]), r'\1' + singular[1:] )) else: PLURALS.insert(0, ( - r"%s%s$" % (singular[0].upper(), caseinsensitive(singular[1:])), + r"{}{}$".format(singular[0].upper(), + caseinsensitive(singular[1:])), plural[0].upper() + plural[1:] )) PLURALS.insert(0, ( - r"%s%s$" % (singular[0].lower(), caseinsensitive(singular[1:])), + r"{}{}$".format(singular[0].lower(), + caseinsensitive(singular[1:])), plural[0].lower() + plural[1:] )) PLURALS.insert(0, ( - r"%s%s$" % (plural[0].upper(), caseinsensitive(plural[1:])), + r"{}{}$".format(plural[0].upper(), caseinsensitive(plural[1:])), plural[0].upper() + plural[1:] )) PLURALS.insert(0, ( - r"%s%s$" % (plural[0].lower(), caseinsensitive(plural[1:])), + r"{}{}$".format(plural[0].lower(), caseinsensitive(plural[1:])), plural[0].lower() + plural[1:] )) SINGULARS.insert(0, ( - r"%s%s$" % (plural[0].upper(), caseinsensitive(plural[1:])), + r"{}{}$".format(plural[0].upper(), caseinsensitive(plural[1:])), singular[0].upper() + singular[1:] )) SINGULARS.insert(0, ( - r"%s%s$" % (plural[0].lower(), caseinsensitive(plural[1:])), + r"{}{}$".format(plural[0].lower(), caseinsensitive(plural[1:])), singular[0].lower() + singular[1:] )) @@ -145,15 +148,15 @@ Examples:: >>> camelize("device_type") - "DeviceType" + 'DeviceType' >>> camelize("device_type", False) - "deviceType" + 'deviceType' - :func:`camelize` can be though as a inverse of :func:`underscore`, although - there are some cases where that does not hold:: + :func:`camelize` can be thought of as a inverse of :func:`underscore`, + although there are some cases where that does not hold:: >>> camelize(underscore("IOError")) - "IoError" + 'IoError' :param uppercase_first_letter: if set to `True` :func:`camelize` converts strings to UpperCamelCase. If set to `False` :func:`camelize` produces @@ -171,7 +174,7 @@ Example:: >>> dasherize("puni_puni") - "puni-puni" + 'puni-puni' """ return word.replace('_', '-') @@ -186,9 +189,9 @@ Examples:: >>> humanize("employee_salary") - "Employee salary" + 'Employee salary' >>> humanize("author_id") - "Author" + 'Author' """ word = re.sub(r"_id$", "", word) @@ -206,17 +209,17 @@ Examples:: >>> ordinal(1) - "st" + 'st' >>> ordinal(2) - "nd" + 'nd' >>> ordinal(1002) - "nd" + 'nd' >>> ordinal(1003) - "rd" + 'rd' >>> ordinal(-11) - "th" + 'th' >>> ordinal(-1021) - "st" + 'st' """ number = abs(int(number)) @@ -238,20 +241,20 @@ Examples:: >>> ordinalize(1) - "1st" + '1st' >>> ordinalize(2) - "2nd" + '2nd' >>> ordinalize(1002) - "1002nd" + '1002nd' >>> ordinalize(1003) - "1003rd" + '1003rd' >>> ordinalize(-11) - "-11th" + '-11th' >>> ordinalize(-1021) - "-1021st" + '-1021st' """ - return "%s%s" % (number, ordinal(number)) + return "{}{}".format(number, ordinal(number)) def parameterize(string, separator='-'): @@ -273,7 +276,7 @@ # No more than one of the separator in a row. string = re.sub(r'%s{2,}' % re_sep, separator, string) # Remove leading/trailing separator. - string = re.sub(r"(?i)^%(sep)s|%(sep)s$" % {'sep': re_sep}, '', string) + string = re.sub(r"(?i)^{sep}|{sep}$".format(sep=re_sep), '', string) return string.lower() @@ -284,14 +287,14 @@ Examples:: - >>> pluralize("post") - "posts" + >>> pluralize("posts") + 'posts' >>> pluralize("octopus") - "octopi" + 'octopi' >>> pluralize("sheep") - "sheep" + 'sheep' >>> pluralize("CamelOctopus") - "CamelOctopi" + 'CamelOctopi' """ if not word or word.lower() in UNCOUNTABLES: @@ -310,15 +313,15 @@ Examples:: >>> singularize("posts") - "post" + 'post' >>> singularize("octopi") - "octopus" + 'octopus' >>> singularize("sheep") - "sheep" + 'sheep' >>> singularize("word") - "word" + 'word' >>> singularize("CamelOctopi") - "CamelOctopus" + 'CamelOctopus' """ for inflection in UNCOUNTABLES: @@ -339,11 +342,11 @@ Examples:: >>> tableize('RawScaledScorer') - "raw_scaled_scorers" + 'raw_scaled_scorers' >>> tableize('egg_and_ham') - "egg_and_hams" + 'egg_and_hams' >>> tableize('fancyCategory') - "fancy_categories" + 'fancy_categories' """ return pluralize(underscore(word)) @@ -357,19 +360,19 @@ Examples:: >>> titleize("man from the boondocks") - "Man From The Boondocks" + 'Man From The Boondocks' >>> titleize("x-men: the last stand") - "X Men: The Last Stand" + 'X Men: The Last Stand' >>> titleize("TheManWithoutAPast") - "The Man Without A Past" + 'The Man Without A Past' >>> titleize("raiders_of_the_lost_ark") - "Raiders Of The Lost Ark" + 'Raiders Of The Lost Ark' """ return re.sub( - r"\b('?[a-z])", + r"\b('?\w)", lambda match: match.group(1).capitalize(), - humanize(underscore(word)) + humanize(underscore(word)).title() ) @@ -381,10 +384,10 @@ Examples:: - >>> transliterate(u'älämölö') - u'alamolo' - >>> transliterate(u'Ærøskøbing') - u'rskbing' + >>> transliterate('älämölö') + 'alamolo' + >>> transliterate('Ærøskøbing') + 'rskbing' """ normalized = unicodedata.normalize('NFKD', string) @@ -398,13 +401,13 @@ Example:: >>> underscore("DeviceType") - "device_type" + 'device_type' As a rule of thumb you can think of :func:`underscore` as the inverse of :func:`camelize`, though there are cases where that does not hold:: >>> camelize(underscore("IOError")) - "IoError" + 'IoError' """ word = re.sub(r"([A-Z]+)([A-Z][a-z])", r'\1_\2', word) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/setup.cfg new/inflection-0.4.0/setup.cfg --- old/inflection-0.3.1/setup.cfg 2015-05-03 10:08:12.000000000 +0200 +++ new/inflection-0.4.0/setup.cfg 2020-04-06 21:28:11.525918200 +0200 @@ -4,8 +4,13 @@ [isort] skip = .tox,docs +[bdist_wheel] +universal = 1 + +[metadata] +license_file = LICENSE + [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/setup.py new/inflection-0.4.0/setup.py --- old/inflection-0.3.1/setup.py 2015-05-03 09:58:00.000000000 +0200 +++ new/inflection-0.4.0/setup.py 2020-04-06 21:06:42.000000000 +0200 @@ -9,28 +9,26 @@ name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", - long_description=( - open('README.rst').read() + '\n\n' + - open('CHANGES.rst').read() - ), + long_description=open('README.rst').read(), author='Janne Vanhala', author_email='[email protected]', - url='http://github.com/jpvanhal/inflection', + url='https://github.com/jpvanhal/inflection', license='MIT', py_modules=['inflection'], zip_safe=False, + python_requires='>=3.5', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Natural Language :: English', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inflection-0.3.1/test_inflection.py new/inflection-0.4.0/test_inflection.py --- old/inflection-0.3.1/test_inflection.py 2015-05-03 09:58:57.000000000 +0200 +++ new/inflection-0.4.0/test_inflection.py 2020-04-06 21:02:46.000000000 +0200 @@ -70,6 +70,7 @@ ("perspective", "perspectives"), ("ox", "oxen"), + ("passerby", "passersby"), ("photo", "photos"), ("buffalo", "buffaloes"), ("tomato", "tomatoes"), @@ -190,6 +191,8 @@ ("david's code", "David's Code"), ("David's code", "David's Code"), ("david's Code", "David's Code"), + ("ana índia", "Ana Índia"), + ("Ana Índia", "Ana Índia"), )
