
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. * keystoneclient/openstack/common/setup.py generate_authors(): New method to create AUTHORS file. If AUTHORS.in file exists, append it's content to AUTHORS file. * setup.py Import the new method. Generate AUTHORS file before creating the package. * openstack-common.conf Add config file to copy libraries from openstack-common project, using update.py script. * keystoneclient/openstack/__init__.py * keystoneclient/openstack/common/__init__.py Add new placeholders. Change-Id: I1a17ee8f1e19e8ad522f0d2e37c04fffba5e16cb
45 lines
1.4 KiB
Python
45 lines
1.4 KiB
Python
import os
|
|
import sys
|
|
from setuptools import setup, find_packages
|
|
from keystoneclient.openstack.common.setup import generate_authors
|
|
|
|
|
|
def read(fname):
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
requirements = ['httplib2', 'prettytable']
|
|
if sys.version_info < (2, 6):
|
|
requirements.append('simplejson')
|
|
if sys.version_info < (2, 7):
|
|
requirements.append('argparse')
|
|
|
|
generate_authors()
|
|
setup(
|
|
name="python-keystoneclient",
|
|
version="2012.2",
|
|
description="Client library for OpenStack Keystone API",
|
|
long_description=read('README.rst'),
|
|
url='https://github.com/openstack/python-keystoneclient',
|
|
license='Apache',
|
|
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
|
|
author_email='gabriel.hurley@nebula.com',
|
|
packages=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=requirements,
|
|
|
|
tests_require=["nose", "mock", "mox"],
|
|
test_suite="nose.collector",
|
|
|
|
entry_points={
|
|
'console_scripts': ['keystone = keystoneclient.shell:main']
|
|
}
|
|
)
|