diff -Nru python-sphinx-feature-classification-0.3.2/debian/changelog python-sphinx-feature-classification-1.0.1/debian/changelog --- python-sphinx-feature-classification-0.3.2/debian/changelog 2020-01-31 15:29:35.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/debian/changelog 2020-05-08 09:42:16.000000000 +0000 @@ -1,3 +1,15 @@ +python-sphinx-feature-classification (1.0.1-2) unstable; urgency=medium + + * Uploading to unstable. + + -- Thomas Goirand Fri, 08 May 2020 11:42:16 +0200 + +python-sphinx-feature-classification (1.0.1-1) experimental; urgency=medium + + * New upstream release. + + -- Thomas Goirand Tue, 07 Apr 2020 12:54:45 +0200 + python-sphinx-feature-classification (0.3.2-3) unstable; urgency=medium [ Ondřej Nový ] diff -Nru python-sphinx-feature-classification-0.3.2/doc/source/user/index.rst python-sphinx-feature-classification-1.0.1/doc/source/user/index.rst --- python-sphinx-feature-classification-0.3.2/doc/source/user/index.rst 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/doc/source/user/index.rst 2020-03-30 12:03:49.000000000 +0000 @@ -130,6 +130,11 @@ A sample CLI command that can be used to utilize the feature. +``api`` + :Mandatory: No + + The alias for this feature in the API. + In addition, there are some driver specific options that should be repeated for every driver defined earlier in the file. @@ -166,6 +171,7 @@ notes=The attach volume operation provides a means to hotplug additional block storage to a running instance. cli=my-project attach-volume + api=volume-attach driver.slow-driver=complete driver.fast-driver=complete @@ -175,6 +181,7 @@ notes=The detach volume operation provides a means to remove additional block storage from a running instance. cli=my-project detach-volume + api=volume-detach driver.slow-driver=complete driver-notes.slow-driver=Works without issue if instance is off. When hotplugging, requires version foo of the driver. @@ -206,6 +213,7 @@ notes=The attach volume operation provides a means to hotplug additional block storage to a running instance. cli=my-project attach-volume + api=volume-attach driver.slow-driver=complete driver.fast-driver=complete @@ -215,6 +223,7 @@ notes=The detach volume operation provides a means to remove additional block storage from a running instance. cli=my-project detach-volume + api=volume-detach driver.slow-driver=complete driver-notes.slow-driver=Works without issue if instance is off. When hotplugging, requires version foo of the driver. diff -Nru python-sphinx-feature-classification-0.3.2/.gitreview python-sphinx-feature-classification-1.0.1/.gitreview --- python-sphinx-feature-classification-0.3.2/.gitreview 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/.gitreview 2020-03-30 12:03:49.000000000 +0000 @@ -1,4 +1,4 @@ [gerrit] -host=review.openstack.org +host=review.opendev.org port=29418 project=openstack/sphinx-feature-classification.git diff -Nru python-sphinx-feature-classification-0.3.2/README.rst python-sphinx-feature-classification-1.0.1/README.rst --- python-sphinx-feature-classification-0.3.2/README.rst 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/README.rst 2020-03-30 12:03:49.000000000 +0000 @@ -19,5 +19,5 @@ * Free software: Apache license * Documentation: https://docs.openstack.org/sphinx-feature-classification/latest/ -* Source: http://git.openstack.org/cgit/openstack/sphinx-feature-classification +* Source: http://opendev.org/openstack/sphinx-feature-classification * Bugs: https://storyboard.openstack.org/#!/project/921 diff -Nru python-sphinx-feature-classification-0.3.2/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml python-sphinx-feature-classification-1.0.1/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml --- python-sphinx-feature-classification-0.3.2/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml 1970-01-01 00:00:00.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -0,0 +1,5 @@ +--- +fixes: + - | + Adds a handler to copy the CSS file into the _static directory on build. + Previously the CSS file was not being copied over into the built docs. diff -Nru python-sphinx-feature-classification-0.3.2/releasenotes/notes/drop-py2-support-3c3bb1055b271608.yaml python-sphinx-feature-classification-1.0.1/releasenotes/notes/drop-py2-support-3c3bb1055b271608.yaml --- python-sphinx-feature-classification-0.3.2/releasenotes/notes/drop-py2-support-3c3bb1055b271608.yaml 1970-01-01 00:00:00.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/releasenotes/notes/drop-py2-support-3c3bb1055b271608.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Python 2.7 support has been dropped. The minimum version of Python now + supported by sphinx-feature-classification is Python 3.6. diff -Nru python-sphinx-feature-classification-0.3.2/releasenotes/notes/feature.api-e95e2d6304b0e25e.yaml python-sphinx-feature-classification-1.0.1/releasenotes/notes/feature.api-e95e2d6304b0e25e.yaml --- python-sphinx-feature-classification-0.3.2/releasenotes/notes/feature.api-e95e2d6304b0e25e.yaml 1970-01-01 00:00:00.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/releasenotes/notes/feature.api-e95e2d6304b0e25e.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -0,0 +1,4 @@ +--- +features: + - | + Added support for ``api`` in the feature section for an ``operation``. diff -Nru python-sphinx-feature-classification-0.3.2/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml python-sphinx-feature-classification-1.0.1/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml --- python-sphinx-feature-classification-0.3.2/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml 1970-01-01 00:00:00.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -0,0 +1,4 @@ +--- +fixes: + - | + Updated the CSS handling to use add_css_file instead of add_stylesheet. diff -Nru python-sphinx-feature-classification-0.3.2/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml python-sphinx-feature-classification-1.0.1/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml --- python-sphinx-feature-classification-0.3.2/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml 1970-01-01 00:00:00.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fixed driver links to render in the summary table. diff -Nru python-sphinx-feature-classification-0.3.2/releasenotes/source/conf.py python-sphinx-feature-classification-1.0.1/releasenotes/source/conf.py --- python-sphinx-feature-classification-0.3.2/releasenotes/source/conf.py 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/releasenotes/source/conf.py 2020-03-30 12:03:49.000000000 +0000 @@ -12,45 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Glance Release Notes documentation build configuration file, created by -# sphinx-quickstart on Tue Nov 3 17:40:50 2015. -# -# 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', + 'openstackdocstheme', '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' @@ -68,208 +39,12 @@ # The short X.Y version. 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 = [] - -# 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 -# " v 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 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 = 'GlanceReleaseNotesdoc' - - -# -- 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', 'GlanceReleaseNotes.tex', u'Glance Release Notes Documentation', - u'Glance 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', 'glancereleasenotes', u'Glance Release Notes Documentation', - [u'Glance 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', 'GlanceReleaseNotes', u'Glance Release Notes Documentation', - u'Glance Developers', 'GlanceReleaseNotes', - '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/'] +html_theme = 'openstackdocs' diff -Nru python-sphinx-feature-classification-0.3.2/setup.cfg python-sphinx-feature-classification-1.0.1/setup.cfg --- python-sphinx-feature-classification-0.3.2/setup.cfg 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/setup.cfg 2020-03-30 12:03:49.000000000 +0000 @@ -6,6 +6,7 @@ author = OpenStack author-email = openstack-discuss@lists.openstack.org home-page = https://docs.openstack.org/sphinx-feature-classification/latest/ +python-requires = >=3.6 classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -13,27 +14,16 @@ License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux Programming Language :: Python - Programming Language :: Python :: 2 - Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: Implementation :: CPython [files] packages = sphinx_feature_classification -[wheel] -universal = 1 - -[build_sphinx] -all-files = 1 -warning-is-error = 1 -source-dir = doc/source -build-dir = doc/build - -[upload_sphinx] -upload-dir = doc/build/html - [compile_catalog] directory = sphinx_feature_classification/locale domain = sphinx_feature_classification diff -Nru python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml --- python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml 1970-01-01 00:00:00.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed the summary table border not rendering and improved the table + font sizing. diff -Nru python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/support-matrix.css python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/support-matrix.css --- python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/support-matrix.css 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/support-matrix.css 2020-03-30 12:03:49.000000000 +0000 @@ -1,8 +1,12 @@ - .sp_feature_required { font-weight: bold; } +.sp_feature_cells { + border: solid 1px black; + text-align: center; +} + .sp_impl_complete { color: rgb(0, 120, 0); font-weight: normal; @@ -24,7 +28,7 @@ } .sp_impl_summary { - font-size: 2em; + font-size: medium; } .sp_cli { diff -Nru python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/support_matrix.py python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/support_matrix.py --- python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/support_matrix.py 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/support_matrix.py 2020-03-30 12:03:49.000000000 +0000 @@ -19,12 +19,14 @@ """ +from os import path import re from docutils import nodes from docutils.parsers import rst import six from six.moves import configparser +from sphinx.util.fileutil import copy_asset KEY_PATTERN = re.compile("[^a-zA-Z0-9_]") DRIVER_PREFIX = "driver." @@ -73,7 +75,7 @@ if cfg.has_option(section, "status"): # The value is a string "status(group)" where # the 'group' part is optional - status, group = re.match('^([^(]+)(?:\(([^)]+)\))?$', + status, group = re.match(r'^([^(]+)(?:\(([^)]+)\))?$', cfg.get(section, "status")).groups() if status not in Feature.STATUS_ALL: @@ -87,10 +89,16 @@ if cfg.has_option(section, "cli"): cli = cfg.get(section, "cli") + api = None + if cfg.has_option(section, "api"): + api = cfg.get(section, "api") + notes = None if cfg.has_option(section, "notes"): notes = cfg.get(section, "notes") - return Feature(section, title, status, group, notes, cli) + return Feature( + section, title, + status=status, group=group, notes=notes, cli=cli, api=api) def _process_implementation(section, option, feature): if option not in self.drivers: @@ -248,7 +256,7 @@ """ summary_title = nodes.subtitle(text="Summary") - summary = nodes.table() + summary = nodes.table(classes=["sp_feature_cells"]) cols = len(matrix.drivers.keys()) # Add two columns for the Feature and Status columns. @@ -269,10 +277,10 @@ # This sets up all the column headers - two fixed # columns for feature name & status header = nodes.row() - blank = nodes.entry() + blank = nodes.entry(classes=["sp_feature_cells"]) blank.append(nodes.emphasis(text="Feature")) header.append(blank) - blank = nodes.entry() + blank = nodes.entry(classes=["sp_feature_cells"]) blank.append(nodes.emphasis(text="Status")) header.append(blank) summary_head.append(header) @@ -282,9 +290,17 @@ key=lambda x: matrix.drivers[x].title) for key in impls: driver = matrix.drivers[key] - implcol = nodes.entry() + implcol = nodes.entry(classes=["sp_feature_cells"]) header.append(implcol) - implcol.append(nodes.strong(text=driver.title)) + if driver.link: + uri = driver.link + target_ref = nodes.reference("", refuri=uri) + target_txt = nodes.inline() + implcol.append(target_txt) + target_txt.append(target_ref) + target_ref.append(nodes.strong(text=driver.title)) + else: + implcol.append(nodes.strong(text=driver.title)) # We now produce the body of the table, one row for # each feature to report on @@ -295,7 +311,7 @@ feature_id = re.sub(KEY_PATTERN, "_", feature.key) # first the fixed columns for title/status - key_col = nodes.entry() + key_col = nodes.entry(classes=["sp_feature_cells"]) item.append(key_col) key_ref = nodes.reference(refid=feature_id) key_txt = nodes.inline() @@ -303,7 +319,7 @@ key_txt.append(key_ref) key_ref.append(nodes.strong(text=feature.title)) - status_col = nodes.entry() + status_col = nodes.entry(classes=["sp_feature_cells"]) item.append(status_col) status_col.append(nodes.inline( text=feature.status, @@ -312,7 +328,7 @@ # and then one column for each backend driver for key in impls: impl = feature.implementations[key] - impl_col = nodes.entry() + impl_col = nodes.entry(classes=["sp_feature_cells"]) item.append(impl_col) key_id = re.sub(KEY_PATTERN, "_", @@ -463,6 +479,15 @@ return para +def on_build_finished(app, exc): + if exc is None: + src = path.join(path.abspath(path.dirname(__file__)), + 'support-matrix.css') + dst = path.join(app.outdir, '_static') + copy_asset(src, dst) + + def setup(app): app.add_directive('support_matrix', Directive) - app.add_stylesheet('support-matrix.css') + app.add_css_file('support-matrix.css') + app.connect('build-finished', on_build_finished) diff -Nru python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/tests/fakes/support-matrix.ini python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/tests/fakes/support-matrix.ini --- python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/tests/fakes/support-matrix.ini 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/tests/fakes/support-matrix.ini 2020-03-30 12:03:49.000000000 +0000 @@ -9,6 +9,8 @@ [operation.Cool_Feature] title=Cool Feature status=optional +api=get-coolness +cli=openstack get coolness * notes=A pretty darn cool feature. driver.foo=complete driver.bar=partial diff -Nru python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/tests/test_sphinx_feature_classification.py python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/tests/test_sphinx_feature_classification.py --- python-sphinx-feature-classification-0.3.2/sphinx_feature_classification/tests/test_sphinx_feature_classification.py 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/sphinx_feature_classification/tests/test_sphinx_feature_classification.py 2020-03-30 12:03:49.000000000 +0000 @@ -21,6 +21,7 @@ import os import ddt +import fixtures import six from six.moves import configparser @@ -50,6 +51,8 @@ fake_feature = self.matrix.features[0] self.assertEqual('Cool Feature', fake_feature.title) self.assertEqual('optional', fake_feature.status) + self.assertEqual('openstack get coolness *', fake_feature.cli) + self.assertEqual('get-coolness', fake_feature.api) self.assertEqual('A pretty darn cool feature.', fake_feature.notes) @@ -72,3 +75,15 @@ fake_implementation = self.matrix.features[0].implementations[key] self.assertEqual(status, fake_implementation.status) self.assertEqual(notes, fake_implementation.notes) + + def test_on_build_finished(self): + + class FakeApp(object): + outdir = self.useFixture(fixtures.TempDir()).path + + app = FakeApp() + exc = None + support_matrix.on_build_finished(app, exc) + expected_file = os.path.join( + app.outdir, '_static', 'support-matrix.css') + self.assertTrue(os.path.isfile(expected_file)) diff -Nru python-sphinx-feature-classification-0.3.2/test-requirements.txt python-sphinx-feature-classification-1.0.1/test-requirements.txt --- python-sphinx-feature-classification-0.3.2/test-requirements.txt 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/test-requirements.txt 2020-03-30 12:03:49.000000000 +0000 @@ -2,13 +2,13 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=0.12.0,<0.13 # Apache-2.0 +hacking>=3.0,<3.1.0 # Apache-2.0 coverage>=4.0,!=4.4 # Apache-2.0 openstackdocstheme>=1.17.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0 ddt>=1.0.1 # MIT python-subunit>=0.0.18 # Apache-2.0/BSD -sphinx!=1.6.1,>=1.5.1 # BSD +sphinx>=1.6.8 # BSD testrepository>=0.0.18 # Apache-2.0/BSD testtools>=1.4.0 # MIT diff -Nru python-sphinx-feature-classification-0.3.2/tox.ini python-sphinx-feature-classification-1.0.1/tox.ini --- python-sphinx-feature-classification-0.3.2/tox.ini 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/tox.ini 2020-03-30 12:03:49.000000000 +0000 @@ -1,42 +1,41 @@ [tox] -minversion = 2.0 -envlist = py35,py36,py27,pypy,pep8 +minversion = 3.1.1 +envlist = py37,pep8 skipsdist = True +# Automatic envs (pyXX) will only use the python version appropriate to that +# env and ignore basepython inherited from [testenv] if we set +# ignore_basepython_conflict. +ignore_basepython_conflict = True [testenv] +basepython = python3 usedevelop = True -install_command = pip install {opts} {packages} setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8] -basepython = python3 commands = flake8 {posargs} [testenv:venv] -basepython = python3 commands = {posargs} [testenv:cover] -basepython = python3 commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] -basepython = python3 -commands = python setup.py build_sphinx +commands = + sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html [testenv:releasenotes] -basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:debug] -basepython = python3 commands = oslo_debug_helper {posargs} [flake8] diff -Nru python-sphinx-feature-classification-0.3.2/.zuul.yaml python-sphinx-feature-classification-1.0.1/.zuul.yaml --- python-sphinx-feature-classification-0.3.2/.zuul.yaml 2019-02-21 10:49:32.000000000 +0000 +++ python-sphinx-feature-classification-1.0.1/.zuul.yaml 2020-03-30 12:03:49.000000000 +0000 @@ -2,6 +2,4 @@ templates: - check-requirements - publish-openstack-docs-pti - - openstack-python-jobs - - openstack-python36-jobs - - openstack-python37-jobs + - openstack-python3-ussuri-jobs