2015-05-11 20:13:13 +00:00
|
|
|
#!/usr/bin/env python
|
2015-05-06 18:51:41 +00:00
|
|
|
import codecs
|
|
|
|
import sys
|
|
|
|
|
2015-05-11 17:25:04 +00:00
|
|
|
import setuptools
|
2015-05-06 18:51:41 +00:00
|
|
|
|
2015-06-01 15:38:55 +00:00
|
|
|
|
2015-05-11 15:12:54 +00:00
|
|
|
def read_requirements_file(req_name):
|
|
|
|
requirements = []
|
|
|
|
try:
|
|
|
|
with codecs.open(req_name, encoding='utf-8') as req_file:
|
|
|
|
for req_line in req_file:
|
|
|
|
if '#' in req_line:
|
|
|
|
req_line = req_line[0:req_line.find('#')].strip()
|
|
|
|
if req_line:
|
|
|
|
requirements.append(req_line.strip())
|
|
|
|
except IOError:
|
|
|
|
pass
|
|
|
|
return requirements
|
2015-05-06 18:51:41 +00:00
|
|
|
|
|
|
|
|
2015-05-11 15:12:54 +00:00
|
|
|
install_requires = read_requirements_file('requirements.txt')
|
|
|
|
setup_requires = read_requirements_file('setup-requirements.txt')
|
|
|
|
tests_require = read_requirements_file('test-requirements.txt')
|
2015-05-06 18:51:41 +00:00
|
|
|
|
2015-05-11 15:12:54 +00:00
|
|
|
|
|
|
|
setuptools.setup(
|
2015-05-06 18:51:41 +00:00
|
|
|
name='sprockets.clients.cassandra',
|
2015-06-01 15:38:55 +00:00
|
|
|
version='0.1.0',
|
2015-05-11 15:12:54 +00:00
|
|
|
description='Base functionality for accessing/modifying data in Cassandra',
|
2015-05-06 18:51:41 +00:00
|
|
|
long_description=codecs.open('README.rst', encoding='utf-8').read(),
|
2015-05-11 15:12:54 +00:00
|
|
|
url='https://github.com/sprockets/sprockets.clients.cassandra.git',
|
|
|
|
author='AWeber Communications',
|
2015-05-06 18:51:41 +00:00
|
|
|
author_email='api@aweber.com',
|
2015-05-11 15:12:54 +00:00
|
|
|
license=codecs.open('LICENSE', encoding='utf-8').read(),
|
2015-05-06 18:51:41 +00:00
|
|
|
classifiers=[
|
2015-05-11 15:12:54 +00:00
|
|
|
'Development Status :: 4 - Beta',
|
2015-05-06 18:51:41 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'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',
|
2015-05-11 15:12:54 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
|
|
'Topic :: Software Development :: Libraries',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
2015-05-06 18:51:41 +00:00
|
|
|
],
|
2015-05-11 15:12:54 +00:00
|
|
|
packages=['sprockets',
|
|
|
|
'sprockets.clients',
|
|
|
|
'sprockets.clients.cassandra'],
|
|
|
|
package_data={'': ['LICENSE', 'README.md']},
|
|
|
|
include_package_data=True,
|
|
|
|
namespace_packages=['sprockets',
|
|
|
|
'sprockets.clients'],
|
|
|
|
install_requires=install_requires,
|
|
|
|
setup_requires=setup_requires,
|
|
|
|
tests_require=tests_require,
|
|
|
|
test_suite='nose.collector',
|
|
|
|
zip_safe=False)
|