commit python-sphinx-feature-classification for openSUSE:Factory
Hello community, here is the log from the commit of package python-sphinx-feature-classification for openSUSE:Factory checked in at 2019-05-25 13:35:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sphinx-feature-classification (Old) and /work/SRC/openSUSE:Factory/.python-sphinx-feature-classification.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-sphinx-feature-classification" Sat May 25 13:35:34 2019 rev:4 rq:705301 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sphinx-feature-classification/python-sphinx-feature-classification.changes 2019-04-28 20:14:22.910383860 +0200 +++ /work/SRC/openSUSE:Factory/.python-sphinx-feature-classification.new.5148/python-sphinx-feature-classification.changes 2019-05-25 13:35:35.555962286 +0200 @@ -1,0 +2,12 @@ +Fri May 24 20:07:37 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> + +- Update to 0.4.0: + * OpenDev Migration Patch + * Fix the summary table border not rendering + * Copy the CSS into the built docs + * Fix deprecated add\_stylesheet with add\_css\_file + * Fix driver links rendering in the summary table + * releasenotes: Remove crud from 'conf.py' + * releasenotes: Switch to openstackdocstheme + +------------------------------------------------------------------- Old: ---- sphinx-feature-classification-0.3.2.tar.gz New: ---- sphinx-feature-classification-0.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sphinx-feature-classification.spec ++++++ --- /var/tmp/diff_new_pack.bH0s5o/_old 2019-05-25 13:35:36.391961690 +0200 +++ /var/tmp/diff_new_pack.bH0s5o/_new 2019-05-25 13:35:36.391961690 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sphinx-feature-classification -Version: 0.3.2 +Version: 0.4.0 Release: 0 Summary: Sphinx extension to generate a matrix of pluggable drivers License: Apache-2.0 ++++++ sphinx-feature-classification-0.3.2.tar.gz -> sphinx-feature-classification-0.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/AUTHORS new/sphinx-feature-classification-0.4.0/AUTHORS --- old/sphinx-feature-classification-0.3.2/AUTHORS 2019-02-26 01:07:16.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/AUTHORS 2019-04-26 18:55:18.000000000 +0200 @@ -3,6 +3,7 @@ Corey Bryant <corey.bryant@canonical.com> Doug Hellmann <doug@doughellmann.com> Jay S. Bryant <jungleboyj@electronicjungle.net> +Michael Johnson <johnsomor@gmail.com> Mike Perez <thingee@gmail.com> Sean McGinnis <sean.mcginnis@gmail.com> Stephen Finucane <stephenfin@redhat.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/ChangeLog new/sphinx-feature-classification-0.4.0/ChangeLog --- old/sphinx-feature-classification-0.3.2/ChangeLog 2019-02-26 01:07:16.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/ChangeLog 2019-04-26 18:55:18.000000000 +0200 @@ -1,6 +1,17 @@ CHANGES ======= +0.4.0 +----- + +* OpenDev Migration Patch +* Fix the summary table border not rendering +* Copy the CSS into the built docs +* Fix deprecated add\_stylesheet with add\_css\_file +* Fix driver links rendering in the summary table +* releasenotes: Remove crud from 'conf.py' +* releasenotes: Switch to openstackdocstheme + 0.3.2 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/PKG-INFO new/sphinx-feature-classification-0.4.0/PKG-INFO --- old/sphinx-feature-classification-0.3.2/PKG-INFO 2019-02-26 01:07:16.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/PKG-INFO 2019-04-26 18:55:19.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: sphinx-feature-classification -Version: 0.3.2 +Version: 0.4.0 Summary: Generate a matrix of pluggable drivers and their support to an API in Sphinx. Home-page: https://docs.openstack.org/sphinx-feature-classification/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml new/sphinx-feature-classification-0.4.0/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml --- old/sphinx-feature-classification-0.3.2/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml 2019-04-26 18:51:32.000000000 +0200 @@ -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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml new/sphinx-feature-classification-0.4.0/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml --- old/sphinx-feature-classification-0.3.2/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml 2019-04-26 18:51:32.000000000 +0200 @@ -0,0 +1,4 @@ +--- +fixes: + - | + Updated the CSS handling to use add_css_file instead of add_stylesheet. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml new/sphinx-feature-classification-0.4.0/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml --- old/sphinx-feature-classification-0.3.2/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml 2019-04-26 18:51:32.000000000 +0200 @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fixed driver links to render in the summary table. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/releasenotes/source/conf.py new/sphinx-feature-classification-0.4.0/releasenotes/source/conf.py --- old/sphinx-feature-classification-0.3.2/releasenotes/source/conf.py 2019-02-26 01:05:12.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/releasenotes/source/conf.py 2019-04-26 18:51:32.000000000 +0200 @@ -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 -# "<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 = '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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml new/sphinx-feature-classification-0.4.0/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml --- old/sphinx-feature-classification-0.3.2/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml 2019-04-26 18:51:32.000000000 +0200 @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed the summary table border not rendering and improved the table + font sizing. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/sphinx_feature_classification/support-matrix.css new/sphinx-feature-classification-0.4.0/sphinx_feature_classification/support-matrix.css --- old/sphinx-feature-classification-0.3.2/sphinx_feature_classification/support-matrix.css 2019-02-26 01:05:12.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/sphinx_feature_classification/support-matrix.css 2019-04-26 18:51:32.000000000 +0200 @@ -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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/sphinx_feature_classification/support_matrix.py new/sphinx-feature-classification-0.4.0/sphinx_feature_classification/support_matrix.py --- old/sphinx-feature-classification-0.3.2/sphinx_feature_classification/support_matrix.py 2019-02-26 01:05:12.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/sphinx_feature_classification/support_matrix.py 2019-04-26 18:51:32.000000000 +0200 @@ -19,7 +19,9 @@ """ +from os import path import re +import shutil from docutils import nodes from docutils.parsers import rst @@ -248,7 +250,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 +271,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 +284,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 +305,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 +313,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 +322,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 +473,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', 'support-matrix.css') + shutil.copyfile(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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/sphinx_feature_classification.egg-info/PKG-INFO new/sphinx-feature-classification-0.4.0/sphinx_feature_classification.egg-info/PKG-INFO --- old/sphinx-feature-classification-0.3.2/sphinx_feature_classification.egg-info/PKG-INFO 2019-02-26 01:07:16.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/sphinx_feature_classification.egg-info/PKG-INFO 2019-04-26 18:55:19.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: sphinx-feature-classification -Version: 0.3.2 +Version: 0.4.0 Summary: Generate a matrix of pluggable drivers and their support to an API in Sphinx. Home-page: https://docs.openstack.org/sphinx-feature-classification/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/sphinx_feature_classification.egg-info/SOURCES.txt new/sphinx-feature-classification-0.4.0/sphinx_feature_classification.egg-info/SOURCES.txt --- old/sphinx-feature-classification-0.3.2/sphinx_feature_classification.egg-info/SOURCES.txt 2019-02-26 01:07:16.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/sphinx_feature_classification.egg-info/SOURCES.txt 2019-04-26 18:55:19.000000000 +0200 @@ -20,6 +20,9 @@ doc/source/install/index.rst doc/source/user/index.rst releasenotes/notes/.placeholder +releasenotes/notes/copy-css-to-static-938b35b03a568abc.yaml +releasenotes/notes/fix-css-handling-e17f37c98d80b76e.yaml +releasenotes/notes/fix-driver-links-18528dcdbcc9f007.yaml releasenotes/notes/support-driver-notes-b73d5b185f05db7f.yaml releasenotes/source/conf.py releasenotes/source/index.rst @@ -36,6 +39,7 @@ sphinx_feature_classification.egg-info/pbr.json sphinx_feature_classification.egg-info/requires.txt sphinx_feature_classification.egg-info/top_level.txt +sphinx_feature_classification/releasenotes/notes/update-summary-table-style-cb5a00eb45cce78a.yaml sphinx_feature_classification/tests/__init__.py sphinx_feature_classification/tests/base.py sphinx_feature_classification/tests/test_sphinx_feature_classification.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sphinx-feature-classification-0.3.2/sphinx_feature_classification.egg-info/pbr.json new/sphinx-feature-classification-0.4.0/sphinx_feature_classification.egg-info/pbr.json --- old/sphinx-feature-classification-0.3.2/sphinx_feature_classification.egg-info/pbr.json 2019-02-26 01:07:16.000000000 +0100 +++ new/sphinx-feature-classification-0.4.0/sphinx_feature_classification.egg-info/pbr.json 2019-04-26 18:55:19.000000000 +0200 @@ -1 +1 @@ -{"git_version": "2dacdfb", "is_release": true} \ No newline at end of file +{"git_version": "884fec8", "is_release": true} \ No newline at end of file
participants (1)
-
root