Added a .mailmap that maps addresses in bzr to people's real, preferred

e-mail addresses. (I made a few guesses along the way, feel free to
adjust according to what is actually the preferred e-mail)

Added a couple of methods to nova.utils to parse said .mailmap and do
the appropriate (though highly naïve) replacement.

Apply mailmap replacement in changelog generation in setup.py.

Add a unit test that checks everyone is properly listed in Authors.

Add sleepsonthefloor to Authors. If anyone knows the real name, please
add it.
This commit is contained in:
Soren Hansen
2010-11-11 19:52:36 -06:00
parent 8155c4f35e
commit ebeed5cdd2
6 changed files with 98 additions and 6 deletions

View File

@@ -16,12 +16,13 @@
# License for the specific language governing permissions and limitations
# under the License.
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist
import os
import subprocess
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist
from nova.util import parse_mailmap, str_dict_replace
class local_sdist(sdist):
"""Customized sdist hook - builds the ChangeLog file from VC first"""
@@ -34,8 +35,9 @@ class local_sdist(sdist):
log_cmd = subprocess.Popen(["bzr", "log", "--novalog"],
stdout=subprocess.PIPE, env=env)
changelog = log_cmd.communicate()[0]
mailmap = parse_mailmap()
with open("ChangeLog", "w") as changelog_file:
changelog_file.write(changelog)
changelog_file.write(str_dict_replace(changelog, mailmap))
sdist.run(self)
setup(name='nova',