Drop py2 support and add zuul jobs

Should be done with a major bump version e.g 2.0.0
Add docs and release zuul jobs

Change-Id: I2ff9881cf074b8d5bc052b1652dbc79b58ac586b
This commit is contained in:
Eyal 2020-01-28 11:40:39 +02:00
parent 77e640fe76
commit 1a81f2cdd8
7 changed files with 29 additions and 53 deletions

View File

@ -2,5 +2,6 @@
templates:
- check-requirements
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3

View File

@ -15,8 +15,6 @@
import inspect
import json
import six
def get_public_fields(obj):
"""Returns only public fields from object or class."""
@ -81,14 +79,11 @@ def get_arg_list_as_str(func):
else:
arg_str_list.append("%s" % args[index])
keywords = argspec.keywords if six.PY2 else argspec.varkw
if keywords:
arg_str_list.append("**%s" % keywords)
if argspec.varkw:
arg_str_list.append("**%s" % argspec.varkw)
return ", ".join(arg_str_list)
def get_args_spec(func):
if six.PY2:
return inspect.getargspec(func)
return inspect.getfullargspec(func)

View File

@ -1,4 +1,3 @@
# -*- 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
@ -12,8 +11,8 @@
# 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.
# Mistral-lib 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.
@ -38,12 +37,12 @@
# 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']
# templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
@ -58,14 +57,9 @@ master_doc = 'index'
project = u'mistral-lib Release Notes'
copyright = u'2016, OpenStack Foundation'
# 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.
# Release notes are version independent
release = ''
# The short X.Y version.
version = ''
# The language for content autogenerated by Sphinx. Refer to documentation
@ -111,7 +105,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'openstackdocs'
# 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
@ -140,7 +134,7 @@ html_theme = 'default'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
@ -149,7 +143,8 @@ html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# html_last_updated_fmt = '%b %d, %Y'
# Must set this variable to include year, month, day, hours, and minutes.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
@ -166,7 +161,7 @@ html_static_path = ['_static']
# html_domain_indices = True
# If false, no index is generated.
# html_use_index = True
html_use_index = False
# If true, the index is split into individual pages for each letter.
# html_split_index = False
@ -189,7 +184,7 @@ html_static_path = ['_static']
# html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'GlanceReleaseNotesdoc'
htmlhelp_basename = 'MistrallibReleaseNotesdoc'
# -- Options for LaTeX output ---------------------------------------------
@ -209,8 +204,9 @@ latex_elements = {
# (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'),
('index', 'MistralLibReleaseNotes.tex',
u'Mistral Library Release Notes Documentation', u'Mistral '
u'Library Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
@ -239,8 +235,8 @@ latex_documents = [
# 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)
('index', 'mistrallibreleasenotes', u'Mistral Library Release Notes '
u'Documentation', [u'Mistral Library Developers'], 1)
]
# If true, show URL addresses after external links.
@ -253,9 +249,9 @@ man_pages = [
# (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.',
('index', 'MistralLibReleaseNotes', u'Mistral Library Release Notes '
u'Documentation', u'Mistral Library Developers',
'MistralLibReleaseNotes', 'One line description of project.',
'Miscellaneous'),
]
@ -273,3 +269,8 @@ texinfo_documents = [
# -- Options for Internationalization output ------------------------------
locale_dirs = ['locale/']
# -- Options for openstackdocstheme -------------------------------------------
repository_name = 'openstack/mistral-lib'
bug_project = 'mistral-lib'
bug_tag = ''

View File

@ -11,6 +11,3 @@
rocky
queens
pike
newton
mitaka
liberty

View File

@ -1,6 +0,0 @@
============================
Liberty Series Release Notes
============================
.. release-notes::
:branch: origin/stable/liberty`

View File

@ -1,6 +0,0 @@
===========================
Mitaka Series Release Notes
===========================
.. release-notes::
:branch: origin/stable/mitaka

View File

@ -1,6 +0,0 @@
===========================
Newton Series Release Notes
===========================
.. release-notes::
:branch: origin/stable/newton