Require PENV when publishing

This commit is contained in:
Kovid Goyal 2018-09-01 10:32:08 +05:30
parent 4f05024550
commit f6660a0d55
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -331,8 +331,14 @@ def require_git_master(branch='master'):
raise SystemExit('You must be in the {} git branch'.format(branch))
def require_penv():
if 'PENV' not in os.environ:
raise SystemExit('The PENV env var is not present, required for uploading releases')
def main():
require_git_master()
require_penv()
parser = argparse.ArgumentParser(description='Publish kitty')
parser.add_argument(
'--only',