Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eaba76c

Browse files
committed
Merging -r 1189 from lp:ipython.
2 parents 8d00aaa + 607da21 commit eaba76c

4 files changed

Lines changed: 39 additions & 41 deletions

File tree

IPython/core/release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
# because bdist_rpm does not accept dashes (an RPM) convention, and
2121
# bdist_deb does not accept underscores (a Debian convention).
2222

23-
development = True # change this to False to do a release
24-
version_base = '0.10'
23+
development = False # change this to False to do a release
24+
version_base = '0.10.rc1'
2525
branch = 'ipython'
26-
revision = '1163'
26+
revision = '1188'
2727

2828
if development:
2929
if branch == 'ipython':

tools/check_sources.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
#!/usr/bin/env python
2+
"""Utility to look for hard tabs and \r characters in all sources.
3+
"""
4+
15
from IPython.external.path import path
6+
27
fs = path('..').walkfiles('*.py')
38

9+
rets = []
10+
411
for f in fs:
512
errs = ''
613
cont = f.bytes()
@@ -9,7 +16,17 @@
916

1017
if '\r' in cont:
1118
errs+='r'
19+
rets.append(f)
1220

1321
if errs:
1422
print "%3s" % errs, f
15-
23+
if 't' in errs:
24+
for ln,line in enumerate(f.lines()):
25+
if '\t' in line:
26+
print 'TAB:',ln,':',line,
27+
if 'r' in errs:
28+
for ln,line in enumerate(open(f.abspath(),'rb')):
29+
if '\r' in line:
30+
print 'RET:',ln,':',line,
31+
32+
rr = rets[-1]

tools/release

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
# IPython release script
33

44
PYVER=`python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}' `
@@ -15,31 +15,8 @@ cd $ipdir/tools
1515
./make_tarball.py
1616
mv ipython-*.tgz $ipbackupdir
1717

18-
# Clean up build/dist directories
19-
rm -rf $ipdir/build/*
20-
rm -rf $ipdir/dist/*
21-
22-
# Build source and binary distros
23-
cd $ipdir
24-
./setup.py sdist --formats=gztar
25-
26-
# Build version-specific RPMs, where we must use the --python option to ensure
27-
# that the resulting RPM is really built with the requested python version (so
28-
# things go to lib/python2.X/...)
29-
#python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4
30-
#python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
31-
32-
# Build eggs
33-
python2.4 ./setup_bdist_egg.py
34-
python2.5 ./setup_bdist_egg.py
35-
36-
# Call the windows build separately, so that the extra Windows scripts don't
37-
# get pulled into Unix builds (setup.py has code which checks for
38-
# bdist_wininst)
39-
./setup.py bdist_wininst --install-script=ipython_win_post_install.py
40-
41-
# Change name so retarded Vista runs the installer correctly
42-
rename 's/win32/win32-setup/' $ipdir/dist/*.exe
18+
# Build release files
19+
./testrel $ipdir
4320

4421
# Register with the Python Package Index (PyPI)
4522
echo "Registering with PyPI..."

tools/testrel

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

3-
# release test
3+
# Build the release files. Kept as a separate script so we can easily do local
4+
# dry runs without uploading anything externally.
45

5-
ipdir=$PWD/..
6+
ipdir=${1-..}
67

78
cd $ipdir
89

910
# Clean up build/dist directories
10-
rm -rf $ipdir/build/*
11-
rm -rf $ipdir/dist/*
11+
rm -rf build/*
12+
rm -rf dist/*
13+
rm -rf docs/build/*
14+
rm -rf docs/dist/*
1215

13-
# build source distros
14-
cd $ipdir
16+
# Build source and binary distros
1517
./setup.py sdist --formats=gztar
1618

17-
# Build rpms
18-
python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4
19+
# Build version-specific RPMs, where we must use the --python option to ensure
20+
# that the resulting RPM is really built with the requested python version (so
21+
# things go to lib/python2.X/...)
1922
python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
23+
python2.6 ./setup.py bdist_rpm --binary-only --release=py26 --python=/usr/bin/python2.6
2024

2125
# Build eggs
22-
python2.4 ./setup_bdist_egg.py
2326
python2.5 ./setup_bdist_egg.py
27+
python2.6 ./setup_bdist_egg.py
2428

2529
# Call the windows build separately, so that the extra Windows scripts don't
2630
# get pulled into Unix builds (setup.py has code which checks for
2731
# bdist_wininst)
2832
./setup.py bdist_wininst --install-script=ipython_win_post_install.py
2933

3034
# Change name so retarded Vista runs the installer correctly
31-
rename 's/win32/win32-setup/' $ipdir/dist/*.exe
35+
rename 's/win32/win32-setup/' dist/*.exe

0 commit comments

Comments
 (0)