Added ChangeLog generation.
This commit is contained in:
parent
f61b62983f
commit
7c39435df5
@ -1,2 +1,3 @@
|
||||
run_tests.err.log
|
||||
.nova-venv
|
||||
ChangeLog
|
||||
|
@ -1,5 +1,6 @@
|
||||
include HACKING LICENSE run_tests.py run_tests.sh
|
||||
include README builddeb.sh exercise_rsapi.py
|
||||
include ChangeLog
|
||||
graft CA
|
||||
graft doc
|
||||
graft smoketests
|
||||
|
18
setup.py
18
setup.py
@ -17,6 +17,23 @@
|
||||
# under the License.
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools.command.sdist import sdist
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
class local_sdist(sdist):
|
||||
"""Customized sdist hook - builds the ChangeLog file from VC first"""
|
||||
|
||||
def run(self):
|
||||
if os.path.isdir('.bzr'):
|
||||
# We're in a bzr branch
|
||||
log_cmd = subprocess.Popen(["bzr","log","--gnu"],
|
||||
stdout = subprocess.PIPE)
|
||||
changelog = log_cmd.communicate()[0]
|
||||
with open("ChangeLog", "w") as changelog_file:
|
||||
changelog_file.write(changelog)
|
||||
sdist.run(self)
|
||||
|
||||
setup(name='nova',
|
||||
version='0.9.0',
|
||||
@ -24,6 +41,7 @@ setup(name='nova',
|
||||
author='OpenStack',
|
||||
author_email='nova@lists.launchpad.net',
|
||||
url='http://www.openstack.org/',
|
||||
cmdclass = {'sdist': local_sdist},
|
||||
packages = find_packages(exclude=['bin','smoketests']),
|
||||
scripts=['bin/nova-api',
|
||||
'bin/nova-compute',
|
||||
|
Loading…
Reference in New Issue
Block a user