From 3c7350b3c97fcbc4d2dbad9cd49b50282a4a4047 Mon Sep 17 00:00:00 2001 From: Bhuvan Arumugam Date: Tue, 1 May 2012 16:27:58 -0700 Subject: Auto generate AUTHORS for python-openstackclient. 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. * tests/test_authors.py Remove this test case. * .gitignore Add AUTHORS file. * openstackclient/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. Change-Id: Ia5488a43f88e13a0fb1f7a5d8d10a576b9034dc8 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index adba47a1..9a9eca9f 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ import os import setuptools +from openstackclient.openstack.common.setup import generate_authors from openstackclient.openstack.common.setup import parse_requirements from openstackclient.openstack.common.setup import parse_dependency_links from openstackclient.openstack.common.setup import write_git_changelog @@ -10,6 +11,7 @@ from openstackclient.openstack.common.setup import write_git_changelog requires = parse_requirements() dependency_links = parse_dependency_links() write_git_changelog() +generate_authors() def read(fname): -- cgit v1.2.1