diff --git a/ChangeLog.rst b/ChangeLog.rst index eb4b1b3..b0a4de4 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,3 +1,12 @@ +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:56:44 +0100 + ayrton (0.9) unstable; urgency=medium * The 'No Government' release. 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: diff --git a/ayrton/__init__.py b/ayrton/__init__.py index 6aba80b..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') @@ -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: diff --git a/release.ay b/release.ay index c44d691..3d4921f 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', @@ -35,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