From 6e3757672c4635dd4b9df8cbe04c0c59e7a4f355 Mon Sep 17 00:00:00 2001 From: Sylvain Bauza Date: Thu, 5 Nov 2015 12:12:28 +0100 Subject: [PATCH] Add reno for release notes management Since reno is the new tool for Relnotes [1], we need to add it to Nova and provide some Sphinx docs for Liberty and Mitaka. Change-Id: Ibd74e62b6f36076dbec17dd146632fd42aad6eb2 --- .gitignore | 3 +++ test-requirements.txt | 3 +++ tox.ini | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fea0242ac..adefc9a82 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,6 @@ nova/tests/cover/* nova/vcsversion.py tools/conf/nova.conf* doc/source/_static/nova.conf.sample + + # Files created by releasenotes build +releasenotes/build diff --git a/test-requirements.txt b/test-requirements.txt index ef43dd255..db2f75b17 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -25,3 +25,6 @@ bandit>=0.13.2 # vmwareapi driver specific dependencies oslo.vmware>=1.16.0 # Apache-2.0 + +# releasenotes +reno>=0.1.1 # Apache2 diff --git a/tox.ini b/tox.ini index c1388cd49..c7724d41a 100644 --- a/tox.ini +++ b/tox.ini @@ -116,6 +116,9 @@ commands = {[testenv:docs]commands} [testenv:bandit] commands = bandit -c bandit.yaml -r nova -n 5 -ll +[testenv:releasenotes] +commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html + [flake8] # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126 # The rest of the ignores are TODOs @@ -123,7 +126,7 @@ commands = bandit -c bandit.yaml -r nova -n 5 -ll # E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301 ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405 -exclude = .venv,.git,.tox,dist,doc,*openstack/common/*,*lib/python*,*egg,build,tools/xenserver* +exclude = .venv,.git,.tox,dist,doc,*openstack/common/*,*lib/python*,*egg,build,tools/xenserver*,releasenotes # To get a list of functions that are more complex than 25, set max-complexity # to 25 and run 'tox -epep8'. # 34 is currently the most complex thing we have