prelude-correlator/master: Include GIT generated Changelog when making source distribution
[email protected] Wed, 17 Jun 2009 18:37:07 +0200 (CEST)
| Newsgroups | gmane.comp.security.ids.prelude.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit e7ddc929be7501509f1f4cd9d1d041d62d677a9c Author: Yoann Vandoorselaere <[email protected]> Date: Wed Jun 17 18:31:27 2009 +0200 Include GIT generated Changelog when making source distribution ======================================== prelude_correlator.egg-info/SOURCES.txt | 1 + setup.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletions(-) ======================================== diff --git a/prelude_correlator.egg-info/SOURCES.txt b/prelude_correlator.egg-info/SOURCES.txt index f2c3567..360a7cf 100644 --- a/prelude_correlator.egg-info/SOURCES.txt +++ b/prelude_correlator.egg-info/SOURCES.txt @@ -1,3 +1,4 @@ +ChangeLog README ez_setup.py setup.py diff --git a/setup.py b/setup.py index 8f2bad1..ece21f5 100644 --- a/setup.py +++ b/setup.py @@ -6,10 +6,20 @@ use_setuptools() import os from setuptools import setup, find_packages from setuptools.command.install import install +from setuptools.command.sdist import sdist PRELUDE_CORRELATOR_VERSION = "0.1" LIBPRELUDE_REQUIRED_VERSION = "0.9.23" + +class my_sdist(sdist): + def __init__(self, *args, **kwargs): + fin = os.popen('git log --summary --stat --no-merges --date=short', 'r') + fout = open('ChangeLog', 'w') + fout.write(fin.read()) + fout.close() + sdist.__init__(self, *args) + class my_install(install): def run(self): if self.prefix: @@ -85,5 +95,5 @@ suits your needs. ] }, - cmdclass = { 'install': my_install } + cmdclass = { 'sdist': my_sdist, 'install': my_install } ) _______________________________________________ Prelude-cvslog site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog