diff options
author | Hernan Grecco <hernan.grecco@gmail.com> | 2014-08-01 02:14:49 -0300 |
---|---|---|
committer | Hernan Grecco <hernan.grecco@gmail.com> | 2014-08-01 02:14:49 -0300 |
commit | 05557bc290dbc7a4a62ec521074c8181baa8f844 (patch) | |
tree | 6f9bcb91fb0126cd7d06b9198f602322f16cfd49 | |
parent | 7af1d19a1b611b0b17e347067cbece3d59020aee (diff) | |
download | pint-05557bc290dbc7a4a62ec521074c8181baa8f844.tar.gz |
Added zest.releaser hook to setup.cfg
-rw-r--r-- | pint/__init__.py | 4 | ||||
-rw-r--r-- | setup.cfg | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/pint/__init__.py b/pint/__init__.py index 21051c7..dee44ee 100644 --- a/pint/__init__.py +++ b/pint/__init__.py @@ -115,11 +115,11 @@ def _check_travis(data): # pragma: no cover result = json.loads(get(url % (username, repo, commit)))['state'] print('Travis says: %s' % result) if result != 'success': - if not ask('Do you want to continue anyway?'): + if not ask('Do you want to continue anyway?', default=False): sys.exit(1) except Exception: print('Could not determine the commit state with Travis.') - if ask('Do you want to continue anyway?'): + if ask('Do you want to continue anyway?', default=False): sys.exit(1) @@ -5,3 +5,7 @@ ignore = [bdist_wheel] universal = 1 + +[zest.releaser] +releaser.after_checkout = pint._run_pyroma +prereleaser.before = pint._check_travis |