Hello community, here is the log from the commit of package python-stevedore for openSUSE:Factory checked in at 2017-04-24 09:49:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-stevedore (Old) and /work/SRC/openSUSE:Factory/.python-stevedore.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-stevedore" Mon Apr 24 09:49:03 2017 rev:26 rq:489584 version:1.20.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-stevedore/python-stevedore.changes 2016-10-13 11:32:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-stevedore.new/python-stevedore.changes 2017-04-24 09:49:04.981417914 +0200 @@ -1,0 +2,16 @@ +Fri Feb 10 14:23:46 UTC 2017 - [email protected] + +- update to version 1.20.0: + - extension: add entry_point_names method + - Add Constraints support + - Fix typos in exception.py + - Updated from global requirements + - extension: expose _find_entry_points as list_entry_points + - Show team and repo badges on README + - Remove reference to non-existing page + - Allow suppression of warnings from DriverManager + - Add Apache 2.0 license to source file + - Add reno for release notes management + - Broken link at stevedore developer documentation + +------------------------------------------------------------------- Old: ---- stevedore-1.17.1.tar.gz New: ---- stevedore-1.20.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-stevedore.spec ++++++ --- /var/tmp/diff_new_pack.FQl1xU/_old 2017-04-24 09:49:06.469207489 +0200 +++ /var/tmp/diff_new_pack.FQl1xU/_new 2017-04-24 09:49:06.473206923 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-stevedore # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -18,7 +18,7 @@ %global pypi_name stevedore Name: python-stevedore -Version: 1.17.1 +Version: 1.20.0 Release: 0 Summary: Manage dynamic plugins for Python applications License: Apache-2.0 @@ -29,9 +29,9 @@ BuildRequires: python-devel BuildRequires: python-mock >= 2.0 BuildRequires: python-oslotest >= 1.10.0 -BuildRequires: python-pbr >= 1.6 +BuildRequires: python-pbr >= 1.8 BuildRequires: python-setuptools >= 16.0 -Requires: python-pbr >= 1.6 +Requires: python-pbr >= 1.8 Requires: python-six >= 1.9.0 BuildArch: noarch @@ -50,7 +50,7 @@ Summary: Documentation for %{name} Group: Documentation BuildRequires: python-Sphinx -BuildRequires: python-oslosphinx >= 2.5.0 +BuildRequires: python-oslosphinx >= 4.7.0 %description doc Python makes loading code dynamically easy, allowing you to configure @@ -66,7 +66,8 @@ This package contains documentation in HTML format. %prep -%setup -q -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} +%py_req_cleanup %build %py2_build ++++++ _service ++++++ --- /var/tmp/diff_new_pack.FQl1xU/_old 2017-04-24 09:49:06.525199570 +0200 +++ /var/tmp/diff_new_pack.FQl1xU/_new 2017-04-24 09:49:06.525199570 +0200 @@ -1,8 +1,10 @@ <services> <service mode="disabled" name="renderspec"> - <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/newton/openstack/stevedore/stevedore.spec.j2</param> + <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/ocata/openstack/stevedore/stevedore.spec.j2</param> <param name="output-name">python-stevedore.spec</param> - <param name="requirements">https://raw.githubusercontent.com/openstack/requirements/stable/newton/global-requirements.txt</param> + <param name="requirements">https://raw.githubusercontent.com/openstack/requirements/stable/ocata/global-requirements.txt</param> + <param name="changelog-email">[email protected]</param> + <param name="changelog-provider">gh,openstack,stevedore</param> </service> <service mode="disabled" name="download_files"> <param name="changesgenerate">enable</param> ++++++ stevedore-1.17.1.tar.gz -> stevedore-1.20.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/AUTHORS new/stevedore-1.20.0/AUTHORS --- old/stevedore-1.17.1/AUTHORS 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/AUTHORS 2017-01-18 15:12:13.000000000 +0100 @@ -1,5 +1,7 @@ Abhishek Chanda <[email protected]> +Andreas Jaeger <[email protected]> Bernhard M. Wiedemann <[email protected]> +Cao Xuan Hoang <[email protected]> ChangBo Guo(gcb) <[email protected]> Chris Yeoh <[email protected]> Cleber Rosa <[email protected]> @@ -10,19 +12,24 @@ Doug Hellmann <[email protected]> Doug Hellmann <[email protected]> Doug Hellmann <[email protected]> +Flavio Percoco <[email protected]> Jamie Lennox <[email protected]> Jeremy Stanley <[email protected]> Joshua Harlow <[email protected]> Joshua Harlow <[email protected]> Julien Danjou <[email protected]> +Kevin Benton <[email protected]> Louis Taylor <[email protected]> Marc Koderer <[email protected]> +Marianne Linhares <[email protected]> Philip Tzou <[email protected]> Ricardo Kirkner <[email protected]> Ryan Petrello <[email protected]> Swapnil Kulkarni (coolsvap) <[email protected]> Thomas Goirand <[email protected]> +Tony Breeds <[email protected]> Wes Turner <[email protected]> +Yvonne Stachowski <[email protected]> Zhao Lei <[email protected]> caoyue <[email protected]> liangjingtao <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/ChangeLog new/stevedore-1.20.0/ChangeLog --- old/stevedore-1.17.1/ChangeLog 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/ChangeLog 2017-01-18 15:12:13.000000000 +0100 @@ -1,6 +1,35 @@ CHANGES ======= +1.20.0 +------ + +* extension: add entry_point_names method +* extension: expose _find_entry_points as list_entry_points +* Allow suppression of warnings from DriverManager +* Show team and repo badges on README +* Add Constraints support + +1.19.1 +------ + +* Broken link at stevedore developer documentation + +1.19.0 +------ + +* Add Apache 2.0 license to source file +* Updated from global requirements +* Add reno for release notes management +* Updated from global requirements +* Remove reference to non-existing page + +1.18.0 +------ + +* Updated from global requirements +* Fix typos in exception.py + 1.17.1 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/PKG-INFO new/stevedore-1.20.0/PKG-INFO --- old/stevedore-1.17.1/PKG-INFO 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/PKG-INFO 2017-01-18 15:12:14.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: stevedore -Version: 1.17.1 +Version: 1.20.0 Summary: Manage dynamic plugins for Python applications Home-page: http://docs.openstack.org/developer/stevedore/ Author: OpenStack @@ -18,6 +18,9 @@ :target: https://pypi.python.org/pypi/stevedore/ :alt: Downloads + .. image:: http://governance.openstack.org/badges/stevedore.svg + :target: http://governance.openstack.org/reference/tags/index.html + Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extensions ("*plugins*") at runtime. Many applications implement their own diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/README.rst new/stevedore-1.20.0/README.rst --- old/stevedore-1.17.1/README.rst 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/README.rst 2017-01-18 15:10:03.000000000 +0100 @@ -10,6 +10,9 @@ :target: https://pypi.python.org/pypi/stevedore/ :alt: Downloads +.. image:: http://governance.openstack.org/badges/stevedore.svg + :target: http://governance.openstack.org/reference/tags/index.html + Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extensions ("*plugins*") at runtime. Many applications implement their own diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/doc/source/index.rst new/stevedore-1.20.0/doc/source/index.rst --- old/stevedore-1.17.1/doc/source/index.rst 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/doc/source/index.rst 2017-01-18 15:10:03.000000000 +0100 @@ -31,11 +31,10 @@ history -.. _setuptools entry points: http://packages.python.org/setuptools/pkg_resources.html#convenience-api +.. _setuptools entry points: http://setuptools.readthedocs.io/en/latest/pkg_resources.html?#entry-points Indices and tables ================== * :ref:`genindex` -* :ref:`modindex` * :ref:`search` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/releasenotes/notes/add-reno-996dd44974d53238.yaml new/stevedore-1.20.0/releasenotes/notes/add-reno-996dd44974d53238.yaml --- old/stevedore-1.17.1/releasenotes/notes/add-reno-996dd44974d53238.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/stevedore-1.20.0/releasenotes/notes/add-reno-996dd44974d53238.yaml 2017-01-18 15:10:03.000000000 +0100 @@ -0,0 +1,3 @@ +--- +other: + - Introduce reno for deployer release notes. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/releasenotes/source/conf.py new/stevedore-1.20.0/releasenotes/source/conf.py --- old/stevedore-1.17.1/releasenotes/source/conf.py 1970-01-01 01:00:00.000000000 +0100 +++ new/stevedore-1.20.0/releasenotes/source/conf.py 2017-01-18 15:10:03.000000000 +0100 @@ -0,0 +1,276 @@ +# -*- coding: utf-8 -*- +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# 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. + +# 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('.')) + +# -- 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 = [ + 'oslosphinx', + 'reno.sphinxext', +] + +# 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'stevedore Release Notes' +copyright = u'2016, stevedore Developers' + +# 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. +# The full version, including alpha/beta/rc tags. +import pkg_resources +release = pkg_resources.get_distribution('stevedore').version +# The short X.Y version. +version = release + +# 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 = [] + +# 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 = [] + +# If true, keep warnings as "system message" paragraphs in the built documents. +# keep_warnings = False + + +# -- 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' + +# 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'] + +# Add any extra paths that contain custom files (such as robots.txt or +# .htaccess) here, relative to this directory. These files are copied +# directly to the root of the documentation. +# html_extra_path = [] + +# 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 = 'stevedoreReleaseNotesDoc' + + +# -- 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, or own class]). +latex_documents = [ + ('index', 'stevedoreReleaseNotes.tex', + u'stevedore Release Notes Documentation', + u'stevedore Developers', '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', 'stevedoreReleaseNotes', + u'stevedore Release Notes Documentation', + [u'stevedore Developers'], 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', 'stevedoreReleaseNotes', + u'stevedore Release Notes Documentation', + u'stevedore Developers', 'stevedoreReleaseNotes', + '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' + +# If true, do not generate a @detailmenu in the "Top" node's menu. +# texinfo_no_detailmenu = False + +# -- Options for Internationalization output ------------------------------ +locale_dirs = ['locale/'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/releasenotes/source/index.rst new/stevedore-1.20.0/releasenotes/source/index.rst --- old/stevedore-1.17.1/releasenotes/source/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/stevedore-1.20.0/releasenotes/source/index.rst 2017-01-18 15:10:03.000000000 +0100 @@ -0,0 +1,8 @@ +========================= + stevedore Release Notes +========================= + + .. toctree:: + :maxdepth: 1 + + unreleased diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/releasenotes/source/unreleased.rst new/stevedore-1.20.0/releasenotes/source/unreleased.rst --- old/stevedore-1.17.1/releasenotes/source/unreleased.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/stevedore-1.20.0/releasenotes/source/unreleased.rst 2017-01-18 15:10:03.000000000 +0100 @@ -0,0 +1,5 @@ +============================== + Current Series Release Notes +============================== + +.. release-notes:: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/requirements.txt new/stevedore-1.20.0/requirements.txt --- old/stevedore-1.17.1/requirements.txt 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/requirements.txt 2017-01-18 15:10:03.000000000 +0100 @@ -2,5 +2,5 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -pbr>=1.6 # Apache-2.0 +pbr>=1.8 # Apache-2.0 six>=1.9.0 # MIT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/setup.cfg new/stevedore-1.20.0/setup.cfg --- old/stevedore-1.17.1/setup.cfg 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/setup.cfg 2017-01-18 15:12:14.000000000 +0100 @@ -50,5 +50,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/dispatch.py new/stevedore-1.20.0/stevedore/dispatch.py --- old/stevedore-1.17.1/stevedore/dispatch.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/dispatch.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import logging from .enabled import EnabledExtensionManager diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/driver.py new/stevedore-1.20.0/stevedore/driver.py --- old/stevedore-1.17.1/stevedore/driver.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/driver.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from .exception import NoMatches, MultipleMatches from .named import NamedExtensionManager @@ -28,12 +40,14 @@ :param verify_requirements: Use setuptools to enforce the dependencies of the plugin(s) being loaded. Defaults to False. :type verify_requirements: bool + :type warn_on_missing_entrypoint: bool """ def __init__(self, namespace, name, invoke_on_load=False, invoke_args=(), invoke_kwds={}, on_load_failure_callback=None, - verify_requirements=False): + verify_requirements=False, + warn_on_missing_entrypoint=True): on_load_failure_callback = on_load_failure_callback \ or self._default_on_load_failure super(DriverManager, self).__init__( @@ -44,6 +58,7 @@ invoke_kwds=invoke_kwds, on_load_failure_callback=on_load_failure_callback, verify_requirements=verify_requirements, + warn_on_missing_entrypoint=warn_on_missing_entrypoint ) @staticmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/enabled.py new/stevedore-1.20.0/stevedore/enabled.py --- old/stevedore-1.17.1/stevedore/enabled.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/enabled.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import logging from .extension import ExtensionManager diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/exception.py new/stevedore-1.20.0/stevedore/exception.py --- old/stevedore-1.17.1/stevedore/exception.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/exception.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,9 +1,22 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + class NoUniqueMatch(RuntimeError): - """There was more that one on no extensions matching the query.""" + """There was more than one extension, or none, that matched the query.""" class NoMatches(NoUniqueMatch): - """There were no extensions with the diver name found.""" + """There were no extensions with the driver name found.""" class MultipleMatches(NoUniqueMatch): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/extension.py new/stevedore-1.20.0/stevedore/extension.py --- old/stevedore-1.17.1/stevedore/extension.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/extension.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,6 +1,19 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """ExtensionManager """ +import operator import pkg_resources import logging @@ -144,16 +157,26 @@ ENTRY_POINT_CACHE = {} - def _find_entry_points(self, namespace): - if namespace not in self.ENTRY_POINT_CACHE: - eps = list(pkg_resources.iter_entry_points(namespace)) - self.ENTRY_POINT_CACHE[namespace] = eps - return self.ENTRY_POINT_CACHE[namespace] + def list_entry_points(self): + """Return the list of entry points for this namespace. + + The entry points are not actually loaded, their list is just read and + returned. + + """ + if self.namespace not in self.ENTRY_POINT_CACHE: + eps = list(pkg_resources.iter_entry_points(self.namespace)) + self.ENTRY_POINT_CACHE[self.namespace] = eps + return self.ENTRY_POINT_CACHE[self.namespace] + + def entry_points_names(self): + """Return the list of entry points names for this namespace.""" + return list(map(operator.attrgetter("name"), self.list_entry_points())) def _load_plugins(self, invoke_on_load, invoke_args, invoke_kwds, verify_requirements): extensions = [] - for ep in self._find_entry_points(self.namespace): + for ep in self.list_entry_points(): LOG.debug('found extension %r', ep) try: ext = self._load_one_plugin(ep, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/hook.py new/stevedore-1.20.0/stevedore/hook.py --- old/stevedore-1.17.1/stevedore/hook.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/hook.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from .named import NamedExtensionManager diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/named.py new/stevedore-1.20.0/stevedore/named.py --- old/stevedore-1.17.1/stevedore/named.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/named.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import logging from .extension import ExtensionManager diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/manager.py new/stevedore-1.20.0/stevedore/tests/manager.py --- old/stevedore-1.17.1/stevedore/tests/manager.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/manager.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """TestExtensionManager Extension manager used only for testing. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_callback.py new/stevedore-1.20.0/stevedore/tests/test_callback.py --- old/stevedore-1.17.1/stevedore/tests/test_callback.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_callback.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """Tests for failure loading callback """ from testtools.matchers import GreaterThan diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_dispatch.py new/stevedore-1.20.0/stevedore/tests/test_dispatch.py --- old/stevedore-1.17.1/stevedore/tests/test_dispatch.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_dispatch.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from stevedore.tests import utils from stevedore import dispatch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_driver.py new/stevedore-1.20.0/stevedore/tests/test_driver.py --- old/stevedore-1.17.1/stevedore/tests/test_driver.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_driver.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """Tests for stevedore.extension """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_enabled.py new/stevedore-1.20.0/stevedore/tests/test_enabled.py --- old/stevedore-1.17.1/stevedore/tests/test_enabled.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_enabled.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from stevedore import enabled from stevedore.tests import utils diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_example_fields.py new/stevedore-1.20.0/stevedore/tests/test_example_fields.py --- old/stevedore-1.17.1/stevedore/tests/test_example_fields.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_example_fields.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """Tests for stevedore.example2.fields """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_example_simple.py new/stevedore-1.20.0/stevedore/tests/test_example_simple.py --- old/stevedore-1.17.1/stevedore/tests/test_example_simple.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_example_simple.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """Tests for stevedore.example.simple """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_extension.py new/stevedore-1.20.0/stevedore/tests/test_extension.py --- old/stevedore-1.17.1/stevedore/tests/test_extension.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_extension.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,6 +1,20 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + """Tests for stevedore.extension """ +import operator + import mock from stevedore import exception @@ -37,6 +51,19 @@ e = em['t1'] self.assertEqual(e.name, 't1') + def test_list_entry_points(self): + em = extension.ExtensionManager('stevedore.test.extension') + n = em.list_entry_points() + self.assertEqual(set(['e1', 'e2', 't1', 't2']), + set(map(operator.attrgetter("name"), n))) + self.assertEqual(4, len(n)) + + def test_list_entry_points_names(self): + em = extension.ExtensionManager('stevedore.test.extension') + names = em.entry_points_names() + self.assertEqual(set(['e1', 'e2', 't1', 't2']), set(names)) + self.assertEqual(4, len(names)) + def test_contains_by_name(self): em = extension.ExtensionManager('stevedore.test.extension') self.assertEqual('t1' in em, True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_hook.py new/stevedore-1.20.0/stevedore/tests/test_hook.py --- old/stevedore-1.17.1/stevedore/tests/test_hook.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_hook.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from stevedore import hook from stevedore.tests import utils diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_named.py new/stevedore-1.20.0/stevedore/tests/test_named.py --- old/stevedore-1.17.1/stevedore/tests/test_named.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_named.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from stevedore import named from stevedore.tests import utils diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/test_test_manager.py new/stevedore-1.20.0/stevedore/tests/test_test_manager.py --- old/stevedore-1.17.1/stevedore/tests/test_test_manager.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/test_test_manager.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from mock import Mock, sentinel from stevedore import (ExtensionManager, NamedExtensionManager, HookManager, DriverManager, EnabledExtensionManager) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore/tests/utils.py new/stevedore-1.20.0/stevedore/tests/utils.py --- old/stevedore-1.17.1/stevedore/tests/utils.py 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/stevedore/tests/utils.py 2017-01-18 15:10:03.000000000 +0100 @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + from oslotest import base as test_base diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore.egg-info/PKG-INFO new/stevedore-1.20.0/stevedore.egg-info/PKG-INFO --- old/stevedore-1.17.1/stevedore.egg-info/PKG-INFO 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/stevedore.egg-info/PKG-INFO 2017-01-18 15:12:13.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: stevedore -Version: 1.17.1 +Version: 1.20.0 Summary: Manage dynamic plugins for Python applications Home-page: http://docs.openstack.org/developer/stevedore/ Author: OpenStack @@ -18,6 +18,9 @@ :target: https://pypi.python.org/pypi/stevedore/ :alt: Downloads + .. image:: http://governance.openstack.org/badges/stevedore.svg + :target: http://governance.openstack.org/reference/tags/index.html + Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extensions ("*plugins*") at runtime. Many applications implement their own diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore.egg-info/SOURCES.txt new/stevedore-1.20.0/stevedore.egg-info/SOURCES.txt --- old/stevedore-1.17.1/stevedore.egg-info/SOURCES.txt 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/stevedore.egg-info/SOURCES.txt 2017-01-18 15:12:14.000000000 +0100 @@ -38,6 +38,12 @@ doc/source/tutorial/loading.rst doc/source/tutorial/naming.rst doc/source/tutorial/testing.rst +releasenotes/notes/add-reno-996dd44974d53238.yaml +releasenotes/source/conf.py +releasenotes/source/index.rst +releasenotes/source/unreleased.rst +releasenotes/source/_static/.placeholder +releasenotes/source/_templates/.placeholder stevedore/__init__.py stevedore/dispatch.py stevedore/driver.py @@ -78,4 +84,5 @@ stevedore/tests/test_named.py stevedore/tests/test_sphinxext.py stevedore/tests/test_test_manager.py -stevedore/tests/utils.py \ No newline at end of file +stevedore/tests/utils.py +tools/tox_install.sh \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore.egg-info/pbr.json new/stevedore-1.20.0/stevedore.egg-info/pbr.json --- old/stevedore-1.17.1/stevedore.egg-info/pbr.json 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/stevedore.egg-info/pbr.json 2017-01-18 15:12:13.000000000 +0100 @@ -1 +1 @@ -{"is_release": true, "git_version": "62398ed"} \ No newline at end of file +{"is_release": true, "git_version": "6d56b58"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/stevedore.egg-info/requires.txt new/stevedore-1.20.0/stevedore.egg-info/requires.txt --- old/stevedore-1.17.1/stevedore.egg-info/requires.txt 2016-08-18 19:40:14.000000000 +0200 +++ new/stevedore-1.20.0/stevedore.egg-info/requires.txt 2017-01-18 15:12:13.000000000 +0100 @@ -1,2 +1,2 @@ -pbr>=1.6 +pbr>=1.8 six>=1.9.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/test-requirements.txt new/stevedore-1.20.0/test-requirements.txt --- old/stevedore-1.17.1/test-requirements.txt 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/test-requirements.txt 2017-01-18 15:10:03.000000000 +0100 @@ -3,9 +3,10 @@ # process, which may cause wedges in the gate later. Pillow>=2.4.0 # PIL License -sphinx!=1.3b1,<1.3,>=1.2.1 # BSD +sphinx!=1.3b1,<1.4,>=1.2.1 # BSD mock>=2.0 # BSD -coverage>=3.6 # Apache-2.0 +coverage>=4.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD oslotest>=1.10.0 # Apache-2.0 -oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0 +oslosphinx>=4.7.0 # Apache-2.0 +reno>=1.8.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/tools/tox_install.sh new/stevedore-1.20.0/tools/tox_install.sh --- old/stevedore-1.17.1/tools/tox_install.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/stevedore-1.20.0/tools/tox_install.sh 2017-01-18 15:10:03.000000000 +0100 @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +# Client constraint file contains this client version pin that is in conflict +# with installing the client from source. We should remove the version pin in +# the constraints file before applying it for from-source installation. + +CONSTRAINTS_FILE="$1" +shift 1 + +set -e + +# NOTE(tonyb): Place this in the tox enviroment's log dir so it will get +# published to logs.openstack.org for easy debugging. +localfile="$VIRTUAL_ENV/log/upper-constraints.txt" + +if [[ "$CONSTRAINTS_FILE" != http* ]]; then + CONSTRAINTS_FILE="file://$CONSTRAINTS_FILE" +fi +# NOTE(tonyb): need to add curl to bindep.txt if the project supports bindep +curl "$CONSTRAINTS_FILE" --insecure --progress-bar --output "$localfile" + +pip install -c"$localfile" openstack-requirements + +# This is the main purpose of the script: Allow local installation of +# the current repo. It is listed in constraints file and thus any +# install will be constrained and we need to unconstrain it. +edit-constraints "$localfile" -- "$CLIENT_NAME" + +pip install -c"$localfile" -U "$@" +exit $? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/stevedore-1.17.1/tox.ini new/stevedore-1.20.0/tox.ini --- old/stevedore-1.17.1/tox.ini 2016-08-18 19:38:10.000000000 +0200 +++ new/stevedore-1.20.0/tox.ini 2017-01-18 15:10:03.000000000 +0100 @@ -1,7 +1,13 @@ [tox] +minversion = 2.0 envlist = py35,py34,py27,pep8,docs [testenv] +setenv = + VIRTUAL_ENV={envdir} + BRANCH_NAME=master + CLIENT_NAME=stevedore +install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} deps = -r{toxinidir}/test-requirements.txt distribute = False @@ -22,3 +28,6 @@ ignore = E251 show-source = True exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build + +[testenv:releasenotes] +commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
