From df049f7cfeec6c5e35b2166aaffa6d6251f9af8c Mon Sep 17 00:00:00 2001 From: Sandy Walsh Date: Fri, 6 Jun 2014 11:29:58 -0300 Subject: [PATCH] starting to get a feel for what an implementation looks like --- quince/__init__.py | 0 quince/v1_impl.py | 19 +++++++++++++++++++ quince/v2_impl.py | 20 ++++++++++++++++++++ requirements.txt | 0 setup.cfg | 28 ++++++++++++++++++++++++++++ setup.py | 8 ++++++++ tox.ini | 10 ++++++++++ 7 files changed, 85 insertions(+) create mode 100644 quince/__init__.py create mode 100644 quince/v1_impl.py create mode 100644 quince/v2_impl.py create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 tox.ini diff --git a/quince/__init__.py b/quince/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/quince/v1_impl.py b/quince/v1_impl.py new file mode 100644 index 0000000..dbb3d37 --- /dev/null +++ b/quince/v1_impl.py @@ -0,0 +1,19 @@ +# Copyright (c) 2014 Dark Secret Software 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. + + +class Impl(object): + def get_events(self, resp): + return [] diff --git a/quince/v2_impl.py b/quince/v2_impl.py new file mode 100644 index 0000000..206f00e --- /dev/null +++ b/quince/v2_impl.py @@ -0,0 +1,20 @@ +# Copyright (c) 2014 Dark Secret Software 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 v1_impl + + +class Impl(v1_impl.Impl): + pass diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..ac8b48f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,28 @@ +[metadata] +name = quince +version = 0.1 +author = Dark Secret Software Inc. +author-email = admin@darksecretsoftware.com +summary = Default implementation for Quincy +description-file = README.md +license = Apache-2 +classifier = + Development Status :: 3 - Alpha + Environment :: Console + Intended Audience :: Developers + Intended Audience :: Information Technology + License :: OSI Approved :: Apache Software License + Operating System :: OS Independent + Programming Language :: Python + Topic :: Software Development :: Libraries :: Python Modules +home-page = https://github.com/StackTach/quince +keywords = + stacktach + rest + api + klugman + quincy + openstack +[files] +packages = + quince diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..aa2d8a0 --- /dev/null +++ b/setup.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python + +from setuptools import setup + +setup( + setup_requires=['pbr'], + pbr=True, +) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..910ec50 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py26,py27 + +[testenv] +deps = + coverage + nose + mock + +commands = nosetests -d -v --with-coverage --cover-inclusive --cover-package quince []