From ff2f590186fe37dbdb90eac97e6879577e63affc Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 12 Nov 2010 12:02:04 +0100 Subject: [PATCH] Added funtests/setup.py --- funtests/__init__.py | 4 +- funtests/setup.py | 68 +++++++++++++++++++ .../{test_pycouchdb.py => test_couchdb.py} | 0 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 funtests/setup.py rename funtests/tests/{test_pycouchdb.py => test_couchdb.py} (100%) diff --git a/funtests/__init__.py b/funtests/__init__.py index 46468510..1bea4880 100644 --- a/funtests/__init__.py +++ b/funtests/__init__.py @@ -1,3 +1,5 @@ +import os import sys -sys.path.append("..") +sys.path.insert(0, os.pardir) +sys.path.insert(0, os.getcwd()) diff --git a/funtests/setup.py b/funtests/setup.py new file mode 100644 index 00000000..d3f5d84f --- /dev/null +++ b/funtests/setup.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +try: + from setuptools import setup, find_packages + from setuptools.command.install import install +except ImportError: + from ez_setup import use_setuptools + use_setuptools() + from setuptools import setup, find_packages + from setuptools.command.install import install + + +class no_install(install): + + def run(self, *args, **kwargs): + import sys + sys.stderr.write(""" +---------------------------------------------------- +The Kombu functional test suite cannot be installed. +---------------------------------------------------- + + +But you can execute the tests by running the command: + + $ python setup.py test + + +""") + + +setup( + name='kombu-funtests', + version="DEV", + description="Functional test suite for Kombu", + author="Ask Solem", + author_email="ask@celeryproject.org", + url="http://github.com/ask/kombu", + platforms=["any"], + packages=[], + data_files=[], + zip_safe=False, + cmdclass={"install": no_install}, + test_suite="nose.collector", + build_requires=[ + "nose", + "nose-cover3", + "unittest2", + "coverage>=3.0", + "simplejson", + "PyYAML", + "msgpack-python", + "pymongo", + "couchdb", + "pika", + "beanstalkc", + "kombu-sqlalchemy", + "django", + "django-kombu", + ], + classifiers=[ + "Operating System :: OS Independent", + "Programming Language :: Python", + "License :: OSI Approved :: BSD License", + "Intended Audience :: Developers", + ], + long_description="Do not install this package", +) diff --git a/funtests/tests/test_pycouchdb.py b/funtests/tests/test_couchdb.py similarity index 100% rename from funtests/tests/test_pycouchdb.py rename to funtests/tests/test_couchdb.py