From 6c3d9c42cc9f04ba99d89de7830675f6b59e2d25 Mon Sep 17 00:00:00 2001 From: Bhuvan Arumugam Date: Sat, 21 Apr 2012 02:13:45 -0700 Subject: Auto generate AUTHORS file for keystone component. 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. * keystone/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. local_sdist.run(): Generate AUTHORS file before creating the package. * tests/test_authors.py Remove this test case. Change-Id: Id3ca59382e417d054d14f7735f30595bfbe2df48 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index d4aa39c6..06bb2769 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ from setuptools.command.sdist import sdist from setuptools import setup import subprocess +from keystone.openstack.common.setup import generate_authors from keystone.openstack.common.setup import parse_requirements from keystone.openstack.common.setup import parse_dependency_links from keystone.openstack.common.setup import write_requirements @@ -29,6 +30,7 @@ class local_sdist(sdist): """Customized sdist hook - builds the ChangeLog file from VC first""" def run(self): write_git_changelog() + generate_authors() sdist.run(self) cmdclass = {'sdist': local_sdist} -- cgit