From 9dae47124105c3615e649aef59c05ec8559237a2 2014-08-13 17:27:23 From: MinRK Date: 2014-08-13 17:27:23 Subject: [PATCH] more minor fixes to release scripts - allow `tools/release` to be run from top-level - upload wheels --- diff --git a/tools/build_release b/tools/build_release index 3f2cfe6..c19870e 100755 --- a/tools/build_release +++ b/tools/build_release @@ -3,6 +3,7 @@ """ import os +from shutil import rmtree from toollib import * @@ -20,7 +21,7 @@ compile_tree() for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), pjoin('docs', 'source', 'api', 'generated')]: if os.path.isdir(d): - remove_tree(d) + rmtree(d) # Build source and binary distros sh(sdists) diff --git a/tools/release b/tools/release index 6b25012..56a82a8 100755 --- a/tools/release +++ b/tools/release @@ -56,7 +56,7 @@ sh('./setup.py register') # Upload all files sh(sdists + ' upload') for py in ('2.7', '3.4'): - sh('python%s setupegg.py bdist_wheel' % py) + sh('python%s setupegg.py bdist_wheel upload' % py) cd(distdir) print( 'Uploading distribution files...') diff --git a/tools/toollib.py b/tools/toollib.py index 6804674..a448d57 100644 --- a/tools/toollib.py +++ b/tools/toollib.py @@ -42,7 +42,7 @@ def get_ipdir(): try: ipdir = sys.argv[1] except IndexError: - ipdir = '..' + ipdir = pjoin(os.path.dirname(__file__), os.pardir) ipdir = os.path.abspath(ipdir)