##// END OF EJS Templates
disallow no-prefix `ipython foo=bar` argument style....
disallow no-prefix `ipython foo=bar` argument style. This style is in rc1, but will be removed in rc2. Since they don't match any flag pattern, rc1-style arguments will be interpreted by IPython as files to be run. So `ipython gui=foo -i` will exec gui=foo, and pass '-i' to gui=foo. Presumably this file won't exist, so there will be an error: Error in executing file in user namespace: gui=foo Assignments *must* have two leading '-', as in: ipython --foo=bar all flags (non-assignments) can be specified with one or two leading '-', as in: ipython -i --pylab -pdb --pprint script.py or ipython --i -pylab --pdb -pprint script.py but help only reports two-leading, as single-leading options will likely be removed on moving to argparse, where they will be replaced by single-letter aliases. The common remaining invalid option will be: ipython -foo=bar and a suggestion for 'did you mean --foo=bar'? will be presented in these cases.

File last commit:

r3199:7d03350d
r4197:368e365a
Show More
make_tarball.py
25 lines | 748 B | text/x-python | PythonLexer
Fernando Perez
Fixes to build/doc scripts.
r1206 #!/usr/bin/env python
Fernando Perez
Add 0.10.1 release notes to docs and minor tool updates....
r3135 """Simple script to create a tarball with proper git info.
Fernando Perez
Fixes to build/doc scripts.
r1206 """
ville
initialization (no svn history)
r988
Fernando Perez
Add 0.10.1 release notes to docs and minor tool updates....
r3135 import commands
Fernando Perez
Cleaned up release tools directory....
r2118 import os
import sys
import shutil
Ville M. Vainio
mkrel changes (copy stff from 'release' sh script)
r1197
Fernando Perez
Cleaned up release tools directory....
r2118 from toollib import *
ville
initialization (no svn history)
r988
Fernando Perez
Add support for commit information in auto-generated archives....
r3199 tag = commands.getoutput('git describe --tags')
Fernando Perez
Add 0.10.1 release notes to docs and minor tool updates....
r3135 base_name = 'ipython-%s' % tag
tar_name = '%s.tgz' % base_name
ville
initialization (no svn history)
r988
Fernando Perez
Add 0.10.1 release notes to docs and minor tool updates....
r3135 # 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...
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068
Fernando Perez
Add 0.10.1 release notes to docs and minor tool updates....
r3135 start_dir = os.getcwd()
cd('..')
git_tpl = 'git archive --format=tar --prefix={0}/ HEAD | gzip > {1}'
Fernando Perez
Clean up version info tools and remove bzr references.
r3197 sh(git_tpl.format(base_name, tar_name))
sh('mv {0} tools/'.format(tar_name))