starting to get a feel for what an implementation looks like

This commit is contained in:
Sandy Walsh 2014-06-06 11:29:58 -03:00
parent e897836de6
commit df049f7cfe
7 changed files with 85 additions and 0 deletions

0
quince/__init__.py Normal file
View File

19
quince/v1_impl.py Normal file
View File

@ -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 []

20
quince/v2_impl.py Normal file
View File

@ -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

0
requirements.txt Normal file
View File

28
setup.cfg Normal file
View File

@ -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

8
setup.py Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env python
from setuptools import setup
setup(
setup_requires=['pbr'],
pbr=True,
)

10
tox.ini Normal file
View File

@ -0,0 +1,10 @@
[tox]
envlist = py26,py27
[testenv]
deps =
coverage
nose
mock
commands = nosetests -d -v --with-coverage --cover-inclusive --cover-package quince []