From bb83118a621e73b53ad689319e347fef36e84fd1 Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:39:13 +0100 Subject: [PATCH 1/7] [*] do not let debugging mode to be released. --- release.ay | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release.ay b/release.ay index c44d691..b836196 100755 --- a/release.ay +++ b/release.ay @@ -1,5 +1,7 @@ #! /usr/bin/env ayrton +import logging + import ayrton option ('-e') @@ -20,6 +22,10 @@ if make ('install'): # this includes tests # git ('checkout', -b="release-%s" % ayrton.__version__) + if 0 < logging.root.level < 30: + print ("logging is at %d, I can't release like this!" % logging.root.level) + exit (1) + dch (--changelog='ChangeLog.rst', --newversion=ayrton.__version__) dch (--changelog='ChangeLog.rst', --release=True) commited= git ('commit', 'ChangeLog.rst', From 9711a814c9b0d972e722a6892fd1e7da059ddd2b Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:39:51 +0100 Subject: [PATCH 2/7] [*] version bump. --- ayrton/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ayrton/__init__.py b/ayrton/__init__.py index 6aba80b..8e0e686 100644 --- a/ayrton/__init__.py +++ b/ayrton/__init__.py @@ -109,7 +109,7 @@ def counter_handler (): # pragma: no cover from ayrton.parser.astcompiler.astbuilder import ast_from_node from ayrton.ast_pprinter import pprint -__version__= '0.9' +__version__= '0.9.1' class ExecParams: From e71e035a4f6c67847c4290cf4ea8987daf296c4d Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:40:17 +0100 Subject: [PATCH 3/7] [*] add release- prefix to tags. --- release.ay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.ay b/release.ay index b836196..3d4921f 100755 --- a/release.ay +++ b/release.ay @@ -41,7 +41,7 @@ if make ('install'): # this includes tests # release python3 ('setup.py', 'sdist', 'upload') - nvie ('release', ayrton.__version__) + nvie ('release', 'release-'+ayrton.__version__) git ('push') # TODO: does github have an API for making a release? # no they don't yet From edd1d5a3f180d0812dfda52dd454ffb148f1c755 Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:41:09 +0100 Subject: [PATCH 4/7] [*] disable debug. --- ayrton/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ayrton/__init__.py b/ayrton/__init__.py index 8e0e686..f9ed8d5 100644 --- a/ayrton/__init__.py +++ b/ayrton/__init__.py @@ -95,7 +95,7 @@ def counter_handler (): # pragma: no cover # uncomment next line and change level for way too much debugging # during tests execution # for running ayrton in the same mode, use the -d options -set_debug (level=logging.DEBUG) +# set_debug (level=logging.DEBUG) logger= logging.getLogger ('ayrton') From 9475e339ab19c5ea2b5d2cf07fb15fca207b0ae6 Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:46:51 +0100 Subject: [PATCH 5/7] [*] new entry for 0.9.1. --- ChangeLog.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index eb4b1b3..6923770 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,3 +1,11 @@ +ayrton (0.9.1) unstable; urgency=medium + + * The 'Brown Paper Bag' release, probably Pt2. + * `ayrton-0.9` has debug on. It will leave lots of files laying around your file system. + * Modify the release script to do not allow this never ever more. + + -- Marcos Dione Wed, 07 Dec 2016 13:46:40 +0100 + ayrton (0.9) unstable; urgency=medium * The 'No Government' release. From 0bf3364acfcee0787625fabfd70891cbdc5fefb7 Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:54:55 +0100 Subject: [PATCH 6/7] [!] revert 62466ca330fe0300469ad708a5bf7a9e026a6b43. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db23cb7..c11f5a2 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ quicktest: docs: RUNNERPATH=${PWD} make -C doc html -install: +install: tests $(RUNNER) setup.py install --prefix=$(INSTALL_DIR) unsafe-install: From f14bd206e74cee02e629b46d6af9969859df57c7 Mon Sep 17 00:00:00 2001 From: Marcos Dione Date: Wed, 7 Dec 2016 13:56:49 +0100 Subject: [PATCH 7/7] [*] new entry for 0.9.1. --- ChangeLog.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 6923770..b0a4de4 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -3,8 +3,9 @@ ayrton (0.9.1) unstable; urgency=medium * The 'Brown Paper Bag' release, probably Pt2. * `ayrton-0.9` has debug on. It will leave lots of files laying around your file system. * Modify the release script to do not allow this never ever more. + * `make install` was not running the tests. - -- Marcos Dione Wed, 07 Dec 2016 13:46:40 +0100 + -- Marcos Dione Wed, 07 Dec 2016 13:56:44 +0100 ayrton (0.9) unstable; urgency=medium