~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-12-13 10:17:01 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101213101701-txhhqbzsxw4avnxv
Tags: upstream-2011.1~bzr456
ImportĀ upstreamĀ versionĀ 2011.1~bzr456

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    License for the specific language governing permissions and limitations
17
17
#    under the License.
18
18
 
 
19
import os
 
20
import subprocess
 
21
 
19
22
from setuptools import setup, find_packages
20
23
from setuptools.command.sdist import sdist
21
24
from sphinx.setup_command import BuildDoc
22
25
 
23
 
import os
24
 
import subprocess
25
 
 
 
26
from nova.utils import parse_mailmap, str_dict_replace
26
27
 
27
28
class local_BuildDoc(BuildDoc):
28
29
    def run(self):
42
43
            log_cmd = subprocess.Popen(["bzr", "log", "--novalog"],
43
44
                                       stdout=subprocess.PIPE, env=env)
44
45
            changelog = log_cmd.communicate()[0]
 
46
            mailmap = parse_mailmap()
45
47
            with open("ChangeLog", "w") as changelog_file:
46
 
                changelog_file.write(changelog)
 
48
                changelog_file.write(str_dict_replace(changelog, mailmap))
47
49
        sdist.run(self)
48
50
 
49
51
setup(name='nova',
55
57
      cmdclass={ 'sdist': local_sdist,
56
58
                 'build_sphinx' : local_BuildDoc },
57
59
      packages=find_packages(exclude=['bin', 'smoketests']),
 
60
      include_package_data=True,
58
61
      scripts=['bin/nova-api',
59
62
               'bin/nova-compute',
60
63
               'bin/nova-dhcpbridge',