
Bug: 976267 Now that git commits are gated by CLA, we shouldn't enforce committers to add an entry in AUTHORS file. The AUTHORS file should be generated automatically, based on git commits. This commit fixes the problem. * AUTHORS Remove this file. * .gitignore Add AUTHORS file. * glanceclient/openstack/common/setup.py Sync changes from openstack-common. * setup.py Generate AUTHORS file before creating the package. * glanceclient/shell.py Pep8 fix. * tests/test_authors.py Remove this test case. Change-Id: I9e9d4da5ca3b147b483250dcf25a3b2a840123c2
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
import os
|
|
import sys
|
|
|
|
import setuptools
|
|
|
|
from glanceclient.openstack.common.setup import generate_authors
|
|
from glanceclient.openstack.common.setup import parse_requirements
|
|
from glanceclient.openstack.common.setup import parse_dependency_links
|
|
from glanceclient.openstack.common.setup import write_git_changelog
|
|
|
|
|
|
requires = parse_requirements()
|
|
dependency_links = parse_dependency_links()
|
|
tests_require = parse_requirements(['tools/test-requires'])
|
|
write_git_changelog()
|
|
generate_authors()
|
|
|
|
if sys.version_info < (2, 6):
|
|
requires.append('simplejson')
|
|
|
|
|
|
def read(fname):
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
setuptools.setup(
|
|
name="python-glanceclient",
|
|
version="2012.2",
|
|
description="Client library for OpenStack Image API",
|
|
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=[
|
|
'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',
|
|
],
|
|
install_requires=requires,
|
|
dependency_links=dependency_links,
|
|
tests_require=tests_require,
|
|
test_suite="nose.collector",
|
|
entry_points={'console_scripts': ['glance = glanceclient.shell:main']},
|
|
)
|