This commit is contained in:
Ask Solem 2015-10-02 18:00:30 -07:00
parent 7057ca1d61
commit 655db37422
4 changed files with 19 additions and 9 deletions

View File

@ -7,9 +7,9 @@ import os
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
sys.path.append(os.path.join(os.pardir, "tests"))
import kombu
import kombu # noqa
from django.conf import settings
from django.conf import settings # noqa
if not settings.configured:
settings.configure()

View File

@ -10,10 +10,13 @@ import subprocess
from contextlib import contextmanager
from tempfile import NamedTemporaryFile
rq = lambda s: s.strip("\"'")
str_t = str if sys.version_info[0] >= 3 else basestring
def rq(s):
return s.strip("\"'")
def cmd(*args):
return subprocess.Popen(args, stdout=subprocess.PIPE).communicate()[0]

View File

@ -2,6 +2,7 @@ from nose import SkipTest
from funtests import transport
class test_qpid(transport.TransportCase):
transport = 'qpid'
prefix = 'qpid'
@ -10,4 +11,4 @@ class test_qpid(transport.TransportCase):
try:
import qpid.messaging # noqa
except ImportError:
raise SkipTest('qpid.messaging not installed')
raise SkipTest('qpid.messaging not installed')

View File

@ -1,9 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys
import codecs
from distutils.command.install import INSTALL_SCHEMES
extra = {}
PY3 = sys.version_info[0] == 3
@ -15,14 +18,14 @@ try:
except ImportError:
from distutils.core import setup # noqa
from distutils.command.install import INSTALL_SCHEMES
# -- Parse meta
import re
re_meta = re.compile(r'__(\w+?)__\s*=\s*(.*)')
re_vers = re.compile(r'VERSION\s*=.*?\((.*?)\)')
re_doc = re.compile(r'^"""(.+?)"""')
rq = lambda s: s.strip("\"'")
def rq(s):
return s.strip("\"'")
def add_default(m):
@ -116,9 +119,12 @@ install_requires = reqs('default.txt')
# -*- Tests Requires -*-
def extras(*p):
return reqs('extras', *p)
tests_require = reqs('test3.txt' if PY3 else 'test.txt')
extras = lambda *p: reqs('extras', *p)
extras_require = extra['extras_require'] = {
'msgpack': extras('msgpack.txt'),
'yaml': extras('yaml.txt'),