##// END OF EJS Templates
Complete support of git commit info with IPython.sys_info()....
Complete support of git commit info with IPython.sys_info(). This will give us an easy way for users to report platform details, without trying to cram lots of data into the version string. Now, the version information in release.py is simple and doesn't attempt to read version control data at runtime. We expose sys_info() as a top-level function so it's very easy to remember/direct for new users. Minor doc/copyright notices updates in the same files.

File last commit:

r3199:7d03350d
r3204:45904cee
Show More
make_tarball.py
25 lines | 748 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Simple script to create a tarball with proper git info.
"""
import commands
import os
import sys
import shutil
from toollib import *
tag = commands.getoutput('git describe --tags')
base_name = 'ipython-%s' % tag
tar_name = '%s.tgz' % base_name
# git archive is weird: Even if I give it a specific path, it still won't
# archive the whole tree. It seems the only way to get the whole tree is to cd
# to the top of the tree. There are long threads (since 2007) on the git list
# about this and it still doesn't work in a sensible way...
start_dir = os.getcwd()
cd('..')
git_tpl = 'git archive --format=tar --prefix={0}/ HEAD | gzip > {1}'
sh(git_tpl.format(base_name, tar_name))
sh('mv {0} tools/'.format(tar_name))