2012-02-29 16:42:26 -05:00
|
|
|
import os
|
2012-04-30 08:50:02 -04:00
|
|
|
import sys
|
2012-03-26 22:48:48 -07:00
|
|
|
|
|
|
|
import setuptools
|
2012-02-29 16:42:26 -05:00
|
|
|
|
2012-06-13 15:55:21 -04:00
|
|
|
from glanceclient.openstack.common import setup
|
2012-02-29 14:14:14 -08:00
|
|
|
|
2012-03-26 22:48:48 -07:00
|
|
|
|
2012-06-13 15:55:21 -04:00
|
|
|
requires = setup.parse_requirements()
|
|
|
|
dependency_links = setup.parse_dependency_links()
|
|
|
|
tests_require = setup.parse_requirements(['tools/test-requires'])
|
2012-02-29 14:14:14 -08:00
|
|
|
|
2012-04-30 08:50:02 -04:00
|
|
|
if sys.version_info < (2, 6):
|
|
|
|
requires.append('simplejson')
|
|
|
|
|
2012-02-29 16:42:26 -05:00
|
|
|
|
|
|
|
def read(fname):
|
|
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
|
2012-03-26 22:48:48 -07:00
|
|
|
setuptools.setup(
|
|
|
|
name="python-glanceclient",
|
2012-06-25 09:49:59 -05:00
|
|
|
version=setup.get_post_version('glanceclient'),
|
2012-03-26 23:29:20 -07:00
|
|
|
description="Client library for OpenStack Image API",
|
2012-03-26 22:48:48 -07:00
|
|
|
long_description=read('README.rst'),
|
|
|
|
url='https://github.com/openstack/python-glanceclient',
|
|
|
|
license='Apache',
|
|
|
|
author='OpenStack Glance Contributors',
|
|
|
|
author_email='glance@example.com',
|
|
|
|
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
|
|
|
|
classifiers=[
|
2012-02-29 16:42:26 -05:00
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Information Technology',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
],
|
2012-06-13 15:55:21 -04:00
|
|
|
cmdclass=setup.get_cmdclass(),
|
2012-04-03 21:54:43 -06:00
|
|
|
install_requires=requires,
|
|
|
|
dependency_links=dependency_links,
|
2012-05-25 11:30:01 -04:00
|
|
|
tests_require=tests_require,
|
2012-03-26 22:48:48 -07:00
|
|
|
test_suite="nose.collector",
|
|
|
|
entry_points={'console_scripts': ['glance = glanceclient.shell:main']},
|
2012-02-29 16:42:26 -05:00
|
|
|
)
|