##// END OF EJS Templates
Merge pull request #12086 from tacaswell/mnt_pytest...
Merge pull request #12086 from tacaswell/mnt_pytest MNT: update pytest.ini to work with pytest > 3

File last commit:

r24558:7af058aa
r25424:a6082c6f merge
Show More
build_release
26 lines | 623 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, sdists, buildwheels
def build_release():
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# 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()