diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..2065a8d --- /dev/null +++ b/README.rst @@ -0,0 +1,14 @@ +Graffiti +========= + +**Graffiti** - Cloud Capability service for OpenStack + +Links +------------------ +Wiki - https://wiki.openstack.org/wiki/Graffiti + +Source code - https://github.com/stackforge/graffiti + +Feature tracker - https://blueprints.launchpad.net/graffiti + +Bug tracker - https://bugs.launchpad.net/graffiti diff --git a/doc/README.rst b/doc/README.rst new file mode 100644 index 0000000..9d89971 --- /dev/null +++ b/doc/README.rst @@ -0,0 +1,2 @@ +Documentation +============= diff --git a/graffiti/__init__.py b/graffiti/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8cbb7fe --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +iso8601>=0.1.4 +jsonschema>=1.3.0,!=1.4.0 +oslo.config>=1.2.0 +pbr>=0.5.21,<1.0 +python-keystoneclient>=0.3.2 +python-novaclient>=2.15.0 +python-glanceclient>=0.9.0 +Babel>=0.9.6 +PasteDeploy>=1.5.0 +Routes>=1.12.3 +WebOb>=1.2.3,<1.3 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6b84fe2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,44 @@ +[metadata] +name = graffiti +summary = Cloud Capability service for OpenStack +description-file = + README.rst +author = OpenStack +author-email = openstack-dev@lists.openstack.org +home-page = http://www.openstack.org/ +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 + +[files] +packages = + graffiti + +[build_sphinx] +source-dir = doc/source +build-dir = doc/build +all_files = 1 + +[upload_sphinx] +upload-dir = doc/build/html + +[compile_catalog] +directory = graffiti/locale +domain = graffiti + +[update_catalog] +domain = graffiti +output_dir = graffiti/locale +input_file = graffiti/locale/graffiti.pot + +[extract_messages] +keywords = _ gettext ngettext l_ lazy_gettext +mapping_file = babel.cfg +output_file = graffiti/locale/graffiti.pot diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..70c2b3f --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +#!/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 +# +# 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. + +# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +import setuptools + +setuptools.setup( + setup_requires=['pbr'], + pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..5ad87d2 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,10 @@ +# Install bounded pep8/pyflakes first, then let flake8 install +pep8==1.4.5 +pyflakes>=0.7.2,<0.7.4 +flake8==2.0 +hacking>=0.5.6,<0.8 + +coverage>=3.6 +mock>=1.0 +psycopg2 +sphinx>=1.1.2,<1.2 diff --git a/tools/README.rst b/tools/README.rst new file mode 100644 index 0000000..30270fe --- /dev/null +++ b/tools/README.rst @@ -0,0 +1,2 @@ +Files in this directory are general developer tools or examples of how +to do certain activities. diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..049d411 --- /dev/null +++ b/tox.ini @@ -0,0 +1,36 @@ +[tox] +envlist = py26,py27,pep8 +minversion = 1.6 +skipsdist = True + +[testenv] +setenv = VIRTUAL_ENV={envdir} +usedevelop = True +install_command = pip install {opts} {packages} +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = + python setup.py testr --slowest --testr-args='{posargs:graffiti.tests.unittests}' + +[testenv:pep8] +commands = flake8 + +[testenv:venv] +commands = {posargs} + +[testenv:cover] +setenv = VIRTUAL_ENV={envdir} +commands = + python setup.py testr --coverage + +[testenv:docs] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + sphinxcontrib-httpdomain +commands = python setup.py build_sphinx + +[flake8] +show-source = true +builtins = _ +exclude=.venv,.git,.tox,dist,openstack,*egg,tools,etc,build,doc +filename=*.py,graffiti-*