Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

Commit

Permalink
A few final tweaks to the fabfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed Apr 9, 2010
1 parent 4d540f0 commit ccb1590
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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.
Expand All @@ -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.