summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHernan Grecco <hernan.grecco@gmail.com>2014-08-01 02:14:49 -0300
committerHernan Grecco <hernan.grecco@gmail.com>2014-08-01 02:14:49 -0300
commit05557bc290dbc7a4a62ec521074c8181baa8f844 (patch)
tree6f9bcb91fb0126cd7d06b9198f602322f16cfd49
parent7af1d19a1b611b0b17e347067cbece3d59020aee (diff)
downloadpint-05557bc290dbc7a4a62ec521074c8181baa8f844.tar.gz
Added zest.releaser hook to setup.cfg
-rw-r--r--pint/__init__.py4
-rw-r--r--setup.cfg4
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)
diff --git a/setup.cfg b/setup.cfg
index 13ce388..1021fdf 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -5,3 +5,7 @@ ignore =
[bdist_wheel]
universal = 1
+
+[zest.releaser]
+releaser.after_checkout = pint._run_pyroma
+prereleaser.before = pint._check_travis