-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cookiecutter code for OpenStack project
- Loading branch information
Showing
16 changed files
with
423 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
instack Style Commandments | ||
=============================================== | ||
|
||
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include AUTHORS | ||
include ChangeLog | ||
exclude .gitignore | ||
exclude .gitreview | ||
|
||
global-exclude *.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[python: **.py] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# -*- 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 | ||
# | ||
# 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 os | ||
import sys | ||
|
||
sys.path.insert(0, os.path.abspath('../..')) | ||
# -- General configuration ---------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | ||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
#'sphinx.ext.intersphinx', | ||
'oslo.sphinx' | ||
] | ||
|
||
# autodoc generation is a bit aggressive and a nuisance when doing heavy | ||
# text edit cycles. | ||
# execute "export SPHINX_DEBUG=1" in your terminal to disable | ||
|
||
# The suffix of source filenames. | ||
source_suffix = '.rst' | ||
|
||
# The master toctree document. | ||
master_doc = 'index' | ||
|
||
# General information about the project. | ||
project = u'instack' | ||
copyright = u'2013, OpenStack Foundation' | ||
|
||
# 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 | ||
|
||
# The name of the Pygments (syntax highlighting) style to use. | ||
pygments_style = 'sphinx' | ||
|
||
# -- Options for HTML output -------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. Major themes that come with | ||
# Sphinx are currently 'default' and 'sphinxdoc'. | ||
# html_theme_path = ["."] | ||
# html_theme = '_theme' | ||
# html_static_path = ['static'] | ||
|
||
# Output file base name for HTML help builder. | ||
htmlhelp_basename = '%sdoc' % project | ||
|
||
# Grouping the document tree into LaTeX files. List of tuples | ||
# (source start file, target name, title, author, documentclass | ||
# [howto/manual]). | ||
latex_documents = [ | ||
('index', | ||
'%s.tex' % project, | ||
u'%s Documentation' % project, | ||
u'OpenStack Foundation', 'manual'), | ||
] | ||
|
||
# Example configuration for intersphinx: refer to the Python standard library. | ||
#intersphinx_mapping = {'http://docs.python.org/': None} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../../CONTRIBUTING.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. instack documentation master file, created by | ||
sphinx-quickstart on Tue Jul 9 22:26:36 2013. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Welcome to instack's documentation! | ||
======================================================== | ||
|
||
Contents: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
readme | ||
installation | ||
usage | ||
contributing | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
============ | ||
Installation | ||
============ | ||
|
||
At the command line:: | ||
|
||
$ pip install instack | ||
|
||
Or, if you have virtualenvwrapper installed:: | ||
|
||
$ mkvirtualenv instack | ||
$ pip install instack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
======== | ||
Usage | ||
======== | ||
|
||
To use instack in a project:: | ||
|
||
import instack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[DEFAULT] | ||
|
||
# The list of modules to copy from oslo-incubator.git | ||
module=install_venv_common | ||
|
||
# The base module to hold the copy of openstack.common | ||
base=instack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pbr>=0.5.21,<1.0 | ||
Babel>=0.9.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[metadata] | ||
name = instack | ||
summary = instack | ||
description-file = | ||
README.md | ||
author = James Slagle | ||
author-email = [email protected] | ||
home-page = http://www.redhat.com/ | ||
classifier = | ||
Environment :: OpenStack | ||
Intended Audience :: Information Technology | ||
Intended Audience :: System Administrators | ||
License :: OSI Approved :: Apache Software License | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 2.6 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.3 | ||
|
||
[files] | ||
packages = | ||
instack | ||
|
||
[entry_points] | ||
console_scripts = | ||
instack = instack.main:main | ||
|
||
[build_sphinx] | ||
source-dir = doc/source | ||
build-dir = doc/build | ||
all_files = 1 | ||
|
||
[upload_sphinx] | ||
upload-dir = doc/build/html | ||
|
||
[compile_catalog] | ||
directory = instack/locale | ||
domain = instack | ||
|
||
[update_catalog] | ||
domain = instack | ||
output_dir = instack/locale | ||
input_file = instack/locale/instack.pot | ||
|
||
[extract_messages] | ||
keywords = _ gettext ngettext l_ lazy_gettext | ||
mapping_file = babel.cfg | ||
output_file = instack/locale/instack.pot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
# Copyright 2013, Red Hat Inc. | ||
# All Rights Reserved. | ||
#!/usr/bin/env python | ||
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. | ||
# | ||
# 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 | ||
# 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 | ||
# 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. | ||
# 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. | ||
|
||
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT | ||
import setuptools | ||
|
||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name = "instack", | ||
description = "Execute diskimage-builder elements on the current system.", | ||
version = "0.1", | ||
packages = find_packages(), | ||
entry_points = { | ||
'console_scripts': [ | ||
'instack = instack.main:main', | ||
], | ||
}, | ||
) | ||
setuptools.setup( | ||
setup_requires=['pbr>=0.5.21,<1.0'], | ||
pbr=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
hacking>=0.5.6,<0.8 | ||
|
||
coverage>=3.6 | ||
discover | ||
fixtures>=0.3.14 | ||
python-subunit | ||
sphinx>=1.1.2 | ||
oslo.sphinx | ||
testrepository>=0.0.17 | ||
testscenarios>=0.4,<0.5 | ||
testtools>=0.9.32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[tox] | ||
minversion = 1.6 | ||
envlist = py26,py27,py33,pypy,pep8 | ||
skipsdist = True | ||
|
||
[testenv] | ||
usedevelop = True | ||
install_command = pip install -U {opts} {packages} | ||
setenv = | ||
VIRTUAL_ENV={envdir} | ||
deps = -r{toxinidir}/requirements.txt | ||
-r{toxinidir}/test-requirements.txt | ||
commands = python setup.py testr --slowest --testr-args='{posargs}' | ||
|
||
[testenv:pep8] | ||
commands = flake8 | ||
|
||
[testenv:venv] | ||
commands = {posargs} | ||
|
||
[testenv:cover] | ||
commands = python setup.py testr --coverage --testr-args='{posargs}' | ||
|
||
[flake8] | ||
# H803 skipped on purpose per list discussion. | ||
# E123, E125 skipped as they are invalid PEP-8. | ||
|
||
show-source = True | ||
ignore = E123,E125,H803 | ||
builtins = _ | ||
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |