diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-05-11 01:32:02 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-05-11 01:32:02 +0000 |
| commit | 8aef8b83973843ca8cf7e2add0698690b99b7c11 (patch) | |
| tree | 3dacb8b4a6aaff45e081e2eb102978bd15024010 /setup.py | |
| parent | 584917cce51d9100abf4e5160c6cf5fa7055f618 (diff) | |
| parent | 7ba26ad4ba4c79680fe8d84dbe1fd4395dd2d119 (diff) | |
Merge "Generate a Changelog for Nova"
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -15,15 +15,24 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - import glob import os import setuptools +from setuptools.command import sdist +from nova.openstack.common import setup as common_setup from nova import version -nova_cmdclass = {} + +class local_sdist(sdist.sdist): + """Customized sdist hook - builds the ChangeLog file from VC first.""" + def run(self): + common_setup.write_git_changelog() + # sdist.sdist is an old style class, can't user super() + sdist.sdist.run(self) + +nova_cmdclass = {'sdist': local_sdist} try: from sphinx import setup_command |
