Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cm: Add script for making a release.
- Loading branch information
1 parent
19883d4
commit 74f3e8f
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from invoke import task, run | ||
|
||
|
||
@task | ||
def makerelease(version, local_only=False): | ||
if not version: | ||
raise Exception("You must specify a version!") | ||
|
||
# FoodTruck assets. | ||
print("Update node modules") | ||
run("npm install") | ||
print("Generating Wikked assets") | ||
run("grunt") | ||
|
||
if not local_only: | ||
# Tag in Mercurial, which will then be used for PyPi version. | ||
run("hg tag %s" % version) | ||
|
||
# PyPi upload. | ||
run("python setup.py sdist upload") | ||
else: | ||
print("Would tag repo with %s..." % version) | ||
print("Would upload to PyPi...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from invoke import Collection | ||
from monkeys.release import makerelease | ||
|
||
|
||
ns = Collection() | ||
ns.add_task(makerelease, name='release') |