Source

crossroads / setup.py

Full commit
#! /usr/bin/env python
# -*- coding: utf-8 -*-
'''setup for crossroads'''

from os import getcwd
from os.path import join
from setuptools import setup, find_packages


def getversion(fname):
    '''Get `__version__` without importing.'''
    for line in open(fname):
        if line.startswith('__version__'):
            return '%s.%s.%s' % eval(line[13:].rstrip())


reqs = 'reqs/requires.txt'
install_requires = list(l for l in open(join(getcwd(), reqs), 'r').readlines())

setup(
    name='crossroads',
    version=getversion('crossroads/__init__.py'),
    description='Python binding for Crossroads.I/O.',
    long_description=open(join(getcwd(), 'README.rst'), 'r').read(),
    keywords='messaging queue networking socket crossroads.io TCP/IP',
    license='BSD',
    author='L. C. Rees',
    author_email='lcrees@gmail.com',
    url='https://bitbucket.org/lcrees/crossroads',
    packages=find_packages(),
    zip_safe=False,
    install_requires=install_requires,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: GNU Library or Lesser General Public ' \
        'License (LGPL)',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Topic :: System :: Networking',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: System :: Networking',
    ],
)