Add basic files
- setup.py - fix the README - add .gitreview - requirements - empty tests - tox file Change-Id: I1af6456dae43c89909652821031df6c8920fbaac
This commit is contained in:
committed by
Julien Vey
parent
b906397112
commit
54a725a2db
78
.gitignore
vendored
78
.gitignore
vendored
@@ -1,54 +1,28 @@
|
|||||||
# Byte-compiled / optimized / DLL files
|
*.pyc
|
||||||
__pycache__/
|
*.swp
|
||||||
*.py[cod]
|
*.sqlite3
|
||||||
|
.environment_version
|
||||||
# C extensions
|
.selenium_log
|
||||||
*.so
|
.coverage*
|
||||||
|
.noseids
|
||||||
# Distribution / packaging
|
.DS_STORE
|
||||||
.Python
|
*.egg/
|
||||||
env/
|
|
||||||
bin/
|
|
||||||
build/
|
|
||||||
develop-eggs/
|
|
||||||
dist/
|
|
||||||
eggs/
|
|
||||||
lib/
|
|
||||||
lib64/
|
|
||||||
parts/
|
|
||||||
sdist/
|
|
||||||
var/
|
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
.installed.cfg
|
|
||||||
*.egg
|
|
||||||
|
|
||||||
# Installer logs
|
|
||||||
pip-log.txt
|
|
||||||
pip-delete-this-directory.txt
|
|
||||||
|
|
||||||
# Unit test / coverage reports
|
|
||||||
htmlcov/
|
|
||||||
.tox/
|
|
||||||
.coverage
|
|
||||||
.cache
|
|
||||||
nosetests.xml
|
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
nosetests.xml
|
||||||
# Translations
|
pep8.txt
|
||||||
*.mo
|
pylint.txt
|
||||||
|
reports
|
||||||
# Mr Developer
|
horizon.egg-info
|
||||||
.mr.developer.cfg
|
.secret_key_store
|
||||||
.project
|
doc/build/
|
||||||
.pydevproject
|
doc/source/sourcecode
|
||||||
|
/static/
|
||||||
# Rope
|
.venv
|
||||||
.ropeproject
|
.tox
|
||||||
|
build
|
||||||
# Django stuff:
|
dist
|
||||||
*.log
|
AUTHORS
|
||||||
*.pot
|
ChangeLog
|
||||||
|
tags
|
||||||
# Sphinx documentation
|
openstack_dashboard/dummydb.sqlite
|
||||||
docs/_build/
|
|
||||||
|
|
||||||
|
|||||||
4
.gitreview
Normal file
4
.gitreview
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=stackforge/solum-dashboard.git
|
||||||
7
.testr.conf
Normal file
7
.testr.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
||||||
|
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
||||||
|
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
||||||
|
${PYTHON:-python} -m subunit.run discover solumdashboard/tests $LISTOPT $IDOPTION
|
||||||
|
test_id_option=--load-list $IDFILE
|
||||||
|
test_list_option=--list
|
||||||
4
HACKING.rst
Normal file
4
HACKING.rst
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Solum Style Commandments
|
||||||
|
========================
|
||||||
|
|
||||||
|
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
|
||||||
30
LICENSE
30
LICENSE
@@ -1,4 +1,5 @@
|
|||||||
Apache License
|
|
||||||
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
http://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
@@ -172,30 +173,3 @@ Apache License
|
|||||||
defend, and hold each Contributor harmless for any liability
|
defend, and hold each Contributor harmless for any liability
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
of your accepting any such warranty or additional liability.
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright {yyyy} {name of copyright owner}
|
|
||||||
|
|
||||||
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.
|
|
||||||
11
MANIFEST.in
Normal file
11
MANIFEST.in
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
include AUTHORS
|
||||||
|
include README.rst
|
||||||
|
include ChangeLog
|
||||||
|
include LICENSE
|
||||||
|
|
||||||
|
include solumdashboard/templates/**.html
|
||||||
|
|
||||||
|
exclude .gitignore
|
||||||
|
exclude .gitreview
|
||||||
|
|
||||||
|
global-exclude *.pyc
|
||||||
6
README.rst
Normal file
6
README.rst
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
solum-dashboard
|
||||||
|
===============
|
||||||
|
|
||||||
|
Horizon plugin for Solum
|
||||||
|
Purpose of this plugin is to add Solum capabilities to the openstack dashboard.
|
||||||
|
This plugin requires a working openstack install including solum and horizon.
|
||||||
74
doc/source/conf.py
Normal file
74
doc/source/conf.py
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
# -*- 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',
|
||||||
|
'oslosphinx',
|
||||||
|
]
|
||||||
|
|
||||||
|
# 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'solum-dashboard'
|
||||||
|
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
|
||||||
|
|
||||||
|
# -- Options for manual page output -------------------------------------------
|
||||||
|
|
||||||
|
# One entry per manual page. List of tuples
|
||||||
|
# (source start file, name, description, authors, manual section).
|
||||||
|
man_pages = []
|
||||||
|
|
||||||
|
# If true, show URL addresses after external links.
|
||||||
|
man_show_urls = True
|
||||||
|
|
||||||
|
# Example configuration for intersphinx: refer to the Python standard library.
|
||||||
|
intersphinx_mapping = {'http://docs.python.org/': None}
|
||||||
4
doc/source/index.rst
Normal file
4
doc/source/index.rst
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
Welcome to solum-dashboard's documentation!
|
||||||
|
===========================================
|
||||||
|
|
||||||
13
requirements.txt
Normal file
13
requirements.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
pbr>=0.6,!=0.7,<1.0
|
||||||
|
# Horizon Core Requirements
|
||||||
|
Django>=1.4,<1.7
|
||||||
|
django_compressor>=1.3
|
||||||
|
django_openstack_auth>=1.1.4
|
||||||
|
eventlet>=0.13.0
|
||||||
|
iso8601>=0.1.9
|
||||||
|
netaddr>=0.7.6
|
||||||
|
python-keystoneclient>=0.7.0
|
||||||
|
pytz>=2010h
|
||||||
|
# Horizon Utility Requirements
|
||||||
|
# for SECURE_KEY generation
|
||||||
|
lockfile>=0.8
|
||||||
31
setup.cfg
Normal file
31
setup.cfg
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
[metadata]
|
||||||
|
name = solum-dashboard
|
||||||
|
version = 1
|
||||||
|
summary = Solum Dashboard
|
||||||
|
description-file = README.rst
|
||||||
|
license = Apache Software License
|
||||||
|
classifier =
|
||||||
|
Programming Language :: Python
|
||||||
|
Programming Language :: Python :: 2
|
||||||
|
Programming Language :: Python :: 2.7
|
||||||
|
Programming Language :: Python :: 2.6
|
||||||
|
Environment :: OpenStack
|
||||||
|
Intended Audience :: Information Technology
|
||||||
|
Intended Audience :: System Administrators
|
||||||
|
License :: OSI Approved :: Apache Software License
|
||||||
|
Operating System :: POSIX :: Linux
|
||||||
|
author = OpenStack
|
||||||
|
author-email = openstack-dev@lists.openstack.org
|
||||||
|
home-page = http://docs.openstack.org/developer/solum
|
||||||
|
|
||||||
|
[global]
|
||||||
|
setup-hooks = pbr.hooks.setup_hook
|
||||||
|
|
||||||
|
[files]
|
||||||
|
packages =
|
||||||
|
solumdashboard
|
||||||
|
|
||||||
|
[build_sphinx]
|
||||||
|
source-dir = doc/source
|
||||||
|
build-dir = doc/build
|
||||||
|
all_files = 1
|
||||||
20
setup.py
Executable file
20
setup.py
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
0
solumdashboard/__init__.py
Normal file
0
solumdashboard/__init__.py
Normal file
0
solumdashboard/tests/__init__.py
Normal file
0
solumdashboard/tests/__init__.py
Normal file
18
solumdashboard/version.py
Normal file
18
solumdashboard/version.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Copyright (c) 2014 Rackspace Hosting.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
from pbr import version
|
||||||
|
|
||||||
|
version_info = version.VersionInfo('solum-dashboard')
|
||||||
16
test-requirements.txt
Normal file
16
test-requirements.txt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
hacking>=0.8.0,<0.9
|
||||||
|
|
||||||
|
coverage>=3.6
|
||||||
|
discover
|
||||||
|
mock>=1.0
|
||||||
|
oslo.config>=1.2.0
|
||||||
|
pylint==0.25.2
|
||||||
|
selenium
|
||||||
|
sphinx>=1.1.2,<1.2
|
||||||
|
oslosphinx
|
||||||
|
sphinxcontrib-pecanwsme>=0.6
|
||||||
|
sphinxcontrib-httpdomain
|
||||||
|
docutils==0.9.1
|
||||||
|
testrepository>=0.0.18
|
||||||
|
testtools>=0.9.34
|
||||||
|
unittest2
|
||||||
36
tox.ini
Normal file
36
tox.ini
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
[tox]
|
||||||
|
minversion = 1.6
|
||||||
|
skipsdist = True
|
||||||
|
envlist = py26,py27,py33,pypy,pep8
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
usedevelop = True
|
||||||
|
install_command = pip install -U {opts} {packages}
|
||||||
|
setenv =
|
||||||
|
VIRTUAL_ENV={envdir}
|
||||||
|
deps =
|
||||||
|
-r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
|
[testenv:uitests]
|
||||||
|
commands = python setup.py testr --slowest --testr-args="--concurrency 1 {posargs}"
|
||||||
|
|
||||||
|
[testenv:cover]
|
||||||
|
commands = python setup.py testr --coverage --testr-args='--concurrency 1 {posargs}'
|
||||||
|
|
||||||
|
[tox:jenkins]
|
||||||
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
|
[testenv:pep8]
|
||||||
|
commands = flake8
|
||||||
|
|
||||||
|
[testenv:venv]
|
||||||
|
commands = {posargs}
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
show-source = true
|
||||||
|
builtins = _
|
||||||
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,horizon
|
||||||
|
|
||||||
|
[hacking]
|
||||||
|
import_exceptions = django.utils.translation.ugettext
|
||||||
Reference in New Issue
Block a user