Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Added auto cleanup before release command
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed May 20, 2016
1 parent 3496ead commit db41b87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -20,6 +20,8 @@ def get_install_requires():


if sys.argv[-1] == 'publish':
# delete any *.pyc, *.pyo and __pycache__
os.system('find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf')
os.system("python setup.py sdist bdist_wheel upload -s")
args = {'version': get_version()}
print("You probably want to also tag the version now:")
Expand Down

0 comments on commit db41b87

Please sign in to comment.