Fix tox docs build for readthedocs

Change-Id: I413be39a026ea12a30ee3f379d268d07549af46f
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2016-02-17 14:18:58 +01:00
parent 1a3758bc1e
commit ceba08a68d
9 changed files with 301 additions and 250 deletions

4
.gitignore vendored
View File

@ -8,7 +8,7 @@
.tox
# Doc
_build
doc/build
# Editors
*.swp
@ -22,3 +22,5 @@ Gemfile.lock
# Misc
*.log
.librarian
AUTHORS
ChangeLog

View File

@ -5,7 +5,7 @@
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)

View File

@ -67,7 +67,7 @@ release = '0.1'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
exclude_patterns = ['build']
# The reST default role (used for this markup: `text`) to use for all
# documents.

View File

@ -5,7 +5,7 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (

View File

@ -1,2 +1,3 @@
sphinx
cloud_sptheme
pbr

26
setup.cfg Normal file
View File

@ -0,0 +1,26 @@
[metadata]
name = fuel-noop-fixtures
version = 0.1.0
author = Mirantis Inc.
author-email = product@mirantis.com
summary = Integration Puppet Noop testing framework
description-file = README.md
license = Apache-2
home-page = http://mirantis.com
classifier =
Development Status :: 4 - Beta
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Ruby
Programming Language :: Ruby :: 1.9.3
Programming Language :: Puppet
Programming Language :: Puppet :: 3.8.5
Topic :: System :: Software Distribution
keywords =
deployment
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc

20
setup.py Normal file
View File

@ -0,0 +1,20 @@
# Copyright 201666666 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 attached#
# 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 then
# License for the specific language governing permissions and limitations
# under the License.
from setuptools import setup
setup(
setup_requires=['pbr'],
pbr=True,
)

2
test-requirements.txt Normal file
View File

@ -0,0 +1,2 @@
-r requirements.txt
tox

10
tox.ini
View File

@ -1,19 +1,19 @@
[tox]
envlist = doc
envlist = docs
skipsdist = True
[testenv]
basepython =
doc: python2.7
docs: python2.7
envdir =
doc: {toxworkdir}/2.7
docs: {toxworkdir}/2.7
changedir =
doc: {toxinidir}/doc/
docs: {toxinidir}/doc/
deps =
-r{toxinidir}/requirements.txt
commands =
doc: sphinx-build -W -b html . {toxinidir}/doc/_build/html
docs: sphinx-build -W -b html . {toxinidir}/doc/build/html