Fix gate-fuel-docs-docs CI job

* Add tox.ini, setup.cfg and setup.py to allow docs building
using tox and setuptools
* Set doc/build as an output dir in setup.cfg to allow doc
publishing by gate-fuel-docs-docs job
* Add '.tox' and '*egg' paths to exclude_patterns in conf.py
* Add '.tox' dir to .gitignore
Change-Id: Iaec750d6035bd0e30c10a12142be35514df1fb15
(cherry picked from commit 7218dfecd5)
This commit is contained in:
Igor Belikov 2015-11-18 16:12:44 +03:00
parent 4710afb6b0
commit 9b73370341
5 changed files with 48 additions and 1 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
/_images/*_svg.jpg
/_images/*.pdf
/.idea
/.tox
/doc

View File

@ -14,4 +14,4 @@
# -- Default Settings -----------------------------------------------------
execfile('./common_conf.py')
exclude_patterns = ['_*', "pages", 'relnotes', 'contents', 'pdf']
exclude_patterns = ['_*', "pages", 'relnotes', 'contents', 'pdf', '.tox', '*egg']

13
setup.cfg Normal file
View File

@ -0,0 +1,13 @@
[metadata]
name = fuel-docs
version = 5.0.0
author = Mirantis
author-email = fuel-dev@lists.launchpad.net
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = .
[wheel]
universal = 1

20
setup.py Normal file
View File

@ -0,0 +1,20 @@
# Copyright 2015 Mirantis, Inc.
#
# 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 setuptools
setuptools.setup(
setup_requires=['pbr'],
pbr=True)

12
tox.ini Normal file
View File

@ -0,0 +1,12 @@
[tox]
minversion = 1.6
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install --allow-external -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
[testenv:venv]
commands = {posargs:}