mirror of https://github.com/celery/kombu.git
flakes
This commit is contained in:
parent
7057ca1d61
commit
655db37422
|
@ -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()
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
16
setup.py
16
setup.py
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue