mirror of
https://github.com/sprockets/sprockets.clients.cassandra.git
synced 2024-11-28 11:19:53 +00:00
52 lines
1.9 KiB
Python
Executable file
52 lines
1.9 KiB
Python
Executable file
#!/usr/bin/env python
|
|
import codecs
|
|
import sys
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import sprockets.clients.cassandra
|
|
|
|
|
|
def read_requirements_file(filename):
|
|
"""Read pip-formatted requirements from a file."""
|
|
with open(filename, 'r') as f:
|
|
return [line.strip() for line in f.readlines()
|
|
if not line.startswith('#')]
|
|
|
|
requirements = read_requirements_file('requirements.txt')
|
|
test_requirements = read_requirements_file('test-requirements.txt')
|
|
if sys.version_info < (3, ):
|
|
requirements.append('six>=1.7,<2.0')
|
|
test_requirements.append('mock>=1.0.1,<2.0')
|
|
if sys.version_info < (2, 7):
|
|
test_requirements.append('unittest2==0.5.1')
|
|
|
|
setup(
|
|
name='sprockets.clients.cassandra',
|
|
description='Base functioanlity for accessing/modifying data in Cassandra',
|
|
version=sprockets.clients.cassandra.__version__,
|
|
packages=find_packages(exclude=['tests', 'tests.*']),
|
|
test_suite='nose.collector',
|
|
include_package_data=True,
|
|
long_description=codecs.open('README.rst', encoding='utf-8').read(),
|
|
install_requires=requirements,
|
|
tests_require=test_requirements,
|
|
author='AWeber Communications, Inc.',
|
|
author_email='api@aweber.com',
|
|
url='https://github.com/aweber/sprockets.clients.cassandra',
|
|
classifiers=[
|
|
'Development Status :: 1 - Planning',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: BSD License',
|
|
'Natural Language :: English',
|
|
'Operating System :: OS Independent',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.2',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
],
|
|
)
|