thow it in the openstack namespace

This commit is contained in:
Jason Kölker 2011-11-04 20:26:04 -05:00
parent 3d98ce5470
commit d7b3ded813
5 changed files with 43 additions and 9 deletions

View File

@ -1,3 +1 @@
include README.rst
include setup.py
include novanose.py

View File

24
openstack/__init__.py Normal file
View File

@ -0,0 +1,24 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# 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 ensures the openstack namespace is defined
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

12
openstack/nose.py Normal file
View File

@ -0,0 +1,12 @@
"""
Openstack run_tests.py style output for nosetests
"""
import logging
from nose import plugins
class Openstack(plugins.Plugin):
"""Nova style output generator"""
name = "openstack"

View File

@ -1,24 +1,24 @@
from setuptools import setup
from setuptools import setup, find_packages
version = "0.1"
setup(name="novanose",
setup(name="openstack.nose",
version=version,
description="nova run_tests.py style output for nosetests",
description="openstack run_tests.py style output for nosetests",
long_description=open("README.rst").read(),
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords="nose",
author="Jason K\xc3\xb6lker",
author_email="jason@koelker.net",
url="https://github.com/jkoelker/novanose",
license="Apache License",
py_modules=["novanose"],
url="https://github.com/jkoelker/openstack-nose",
license="Apache Software License",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
install_requires=[
"nose",
],
entry_points="""
# -*- Entry points: -*-
[nose.plugins.0.10]
novanose = novanose:NovaNose
openstack.nose = openstack.nose:NovaNose
""",
)