Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
merged master
- Loading branch information
Showing
18 changed files
with
78 additions
and
56 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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
-r requirements-extras.txt | ||
mock==1.3.0 | ||
coverage==4.0.3 | ||
pytest==2.8.7 | ||
pytest==2.9.0 | ||
pytest-cov==2.2.1 | ||
freezegun==0.3.6 | ||
python-coveralls==2.6.0 | ||
python-coveralls==2.7.0 | ||
colorama>=0.3.4 |
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 |
---|---|---|
@@ -1,19 +1,27 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
import subprocess | ||
import sys | ||
import os | ||
import argparse | ||
|
||
if not os.path.exists('.pypt/gh-token'): | ||
print("To use this script, you must create a GitHub token first.") | ||
print("Get a token here: https://github.com/settings/tokens") | ||
print("Then, put it in a file named .pypt/gh-token") | ||
exit(1) | ||
|
||
inpf = input if sys.version_info[0] == 3 else raw_input | ||
parser = argparse.ArgumentParser(description="GitHub Release helper") | ||
parser.add_argument("FILE", nargs=1, help="Markdown file to use") | ||
parser.add_argument("TAG", nargs=1, help="Tag name (usually vX.Y.Z)") | ||
|
||
args = parser.parse_args() | ||
|
||
if not args.TAG[0].startswith("v"): | ||
print("WARNING: tag should start with v") | ||
i = input("Add `v` to tag? [y/n] ") | ||
if i.lower().strip().startswith('y'): | ||
args.TAG[0] = 'v' + args.TAG[0] | ||
|
||
FILE = inpf("Markdown file to use: ") | ||
BASEDIR = os.getcwd() | ||
REPO = 'getnikola/nikola' | ||
TAG = inpf("Tag name (usually vX.Y.Z): ") | ||
|
||
subprocess.call(['.pypt/ghrel', FILE, BASEDIR, REPO, TAG]) | ||
subprocess.call(['.pypt/ghrel', args.FILE[0], BASEDIR, REPO, args.TAG[0]]) |
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
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
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