Browse files

A few final tweaks to the fabfile.

  • Loading branch information...
1 parent 4d540f0 commit ccb15906e3e63a37abe5a65b0bbd25b17a0567ce @jacobian jacobian committed Apr 9, 2010
Showing with 4 additions and 6 deletions.
  1. +4 −6 fabfile.py
View
10 fabfile.py
@@ -8,7 +8,7 @@
API_LINK_TITLE = 'Evernote API'
BASE_PATH = Path(__file__).absolute().parent
-def sdist():
+def prep_sdist():
"""
Build a sdist from the latest Evernote Python API wrappers.
"""
@@ -28,9 +28,7 @@ def sdist():
with nested(open('setup.py.in'), open('setup.py', 'w')) as (fin, fout):
fout.write(fin.read() % {'version': api_zip_name.stem.split('-')[-1]})
-
- local('python setup.py sdist')
-
+
def clean():
"""
Clean up any leftovers.
@@ -41,5 +39,5 @@ def upload():
"""
Push a tarball to PyPI.
"""
- sdist()
- local('python setup.py register upload')
+ prep_sdist()
+ local('python setup.py register sdist upload')

0 comments on commit ccb1590

Please sign in to comment.