File: build_release

package info (click to toggle)
ipython 7.20.0-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,100 kB
  • sloc: python: 36,813; sh: 379; makefile: 243
file content (22 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3
"""IPython release build script.
"""
import os
import sys
from shutil import rmtree

from toollib import sh, pjoin, get_ipdir, cd, sdists, buildwheels

def build_release():

    # Get main ipython dir, this will raise if it doesn't pass some checks
    ipdir = get_ipdir()
    cd(ipdir)

    # Build source and binary distros
    sh(sdists)
    buildwheels()
    sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz']))

if __name__ == '__main__':
    build_release()