build_release
22 lines
| 496 B
| text/plain
|
TextLexer
/ tools / build_release
Thomas Kluyver
|
r24250 | #!/usr/bin/env python3 | ||
Fernando Perez
|
r2118 | """IPython release build script. | ||
ville
|
r988 | """ | ||
Fernando Perez
|
r6601 | import os | ||
Matthias Bussonnier
|
r25778 | import sys | ||
MinRK
|
r17631 | from shutil import rmtree | ||
Fernando Perez
|
r6601 | |||
Matthias Bussonnier
|
r24558 | from toollib import sh, pjoin, get_ipdir, cd, sdists, buildwheels | ||
Matthias Bussonnier
|
r22043 | |||
def build_release(): | ||||
# Get main ipython dir, this will raise if it doesn't pass some checks | ||||
ipdir = get_ipdir() | ||||
cd(ipdir) | ||||
ville
|
r988 | |||
Matthias Bussonnier
|
r22043 | # Build source and binary distros | ||
sh(sdists) | ||||
buildwheels() | ||||
Matthias Bussonnier
|
r25778 | sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz'])) | ||
Ville M. Vainio
|
r1197 | |||
Matthias Bussonnier
|
r22043 | if __name__ == '__main__': | ||
build_release() | ||||