Beispiel #1
0
        pip_dist = pkg_resources.get_distribution('pip')
    except pkg_resources.DistributionNotFound:
        pip_dist = None

    if pip_dist:
        if LooseVersion(pip_dist.version) < LooseVersion('1.4'):
            raise RuntimeError(VERSION_MSG)

if sys.version_info[0] >= 3:
    twisted_ver = ">= 17.1.0"
else:
    twisted_ver = ">= 14.0.1"
autobahn_ver = ">= 0.16.0"
txaio_ver = ">= 2.2.2"

bundle_version = version.split("-")[0]

# dependencies
setup_args['install_requires'] = [
    'setuptools >= 8.0',
    'Twisted ' + twisted_ver,
    'Jinja2 >= 2.1',
    # required for tests, but Twisted requires this anyway
    'zope.interface >= 4.1.1',
    # python-future required for py2/3 compatibility
    'future',
    'sqlalchemy>=0.8.0',
    'sqlalchemy-migrate>=0.9',
    'python-dateutil>=1.5',
    'txaio ' + txaio_ver,
    'autobahn ' + autobahn_ver,
Beispiel #2
0
            raise RuntimeError(VERSION_MSG)

if sys.version_info[:2] == (2, 6):
    # Twisted-15.4.0, txaio >=2.3.0 and autobahn >=0.13.0 don't support Python
    # 2.6 anymore
    twisted_ver = ">= 14.0.1, < 15.4.0"
    autobahn_ver = ">= 0.10.2, < 0.13.0"
    txaio_ver = "== 2.2.2"

else:
    # twisted 16.3.0 breaks buildbot websockets
    twisted_ver = ">= 14.0.1, < 16.3.0"
    autobahn_ver = ">= 0.10.2"
    txaio_ver = ">= 2.2.2"

bundle_version = version.split("-")[0]

try:
    # If setuptools is installed, then we'll add setuptools-specific arguments
    # to the setup args.
    import setuptools
    [setuptools]
except ImportError:
    pass
else:
    # dependencies
    setup_args['install_requires'] = [
        'Twisted ' + twisted_ver,
        'Jinja2 >= 2.1',
        # required for tests, but Twisted requires this anyway
        'zope.interface >= 4.1.1',