##// END OF EJS Templates
Upgrade pip before setuptools for Python compat....
Upgrade pip before setuptools for Python compat. Setuptools recently dropped Python 3.3 and with an out of date pip we know install an incompatible setuptools on the 6.x branch. This should avoid the same error on future python drops.

File last commit:

r24250:d0523f89
r24424:3f55b241
Show More
build_release
33 lines | 914 B | text/plain | TextLexer
#!/usr/bin/env python3
"""IPython release build script.
"""
import os
from shutil import rmtree
from toollib import sh, pjoin, get_ipdir, cd, execfile, sdists, buildwheels
def build_release():
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# Load release info
execfile(pjoin('IPython', 'core', 'release.py'), globals())
with open('docs/source/whatsnew/index.rst') as f:
if ' development' in f.read():
raise ValueError("Please remove `development` from what's new toctree for release")
# Cleanup
for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),
pjoin('docs', 'source', 'api', 'generated')]:
if os.path.isdir(d):
rmtree(d)
# Build source and binary distros
sh(sdists)
buildwheels()
if __name__ == '__main__':
build_release()