release: 0.5.0

This commit is contained in:
Romain Dorgueil
2017-10-05 19:16:03 +02:00
parent ee65cd736b
commit 32e222787d
7 changed files with 73 additions and 14 deletions

View File

@ -1,7 +1,7 @@
# This file has been auto-generated.
# All changes will be lost, see Projectfile.
#
# Updated at 2017-10-05 18:52:31.477250
# Updated at 2017-10-05 18:56:33.985014
PACKAGE ?= bonobo
PYTHON ?= $(shell which python)

View File

@ -1 +1 @@
__version__ = '0.4.3'
__version__ = '0.5.0'

View File

@ -6,10 +6,12 @@ from bonobo.util.objects import get_name
OUTPUT_GRAPHVIZ = 'graphviz'
def _ident(graph, i):
escaped_index = str(i)
escaped_name = json.dumps(get_name(graph[i]))
return '{{{} [label={}]}}'.format(escaped_index,escaped_name)
return '{{{} [label={}]}}'.format(escaped_index, escaped_name)
def execute(*, output, **kwargs):
graph, plugins, services = read(**kwargs)

View File

@ -11,11 +11,7 @@ from bonobo.util.inspect import (
isoption,
istype,
)
from bonobo.util.objects import (
get_name,
get_attribute_or_create,
ValueHolder
)
from bonobo.util.objects import (get_name, get_attribute_or_create, ValueHolder)
from bonobo.util.python import require
# Bonobo's util API

View File

@ -1,7 +1,6 @@
from collections import namedtuple
def isconfigurable(mixed):
"""
Check if the given argument is an instance of :class:`bonobo.config.Configurable`.

View File

@ -1,6 +1,70 @@
Changelog
=========
v.0.5.0 - 5 october 2017
::::::::::::::::::::::::
Important highlights
--------------------
* `bonobo.pprint` and `bonobo.PrettyPrint` have been removed, in favor of `bonobo.PrettyPrinter` (BC break).
* The `bonobo.config` API has suffered a major refactoring. It has been done carefully and most of your code should
work unchanged, but you may have surprises. This was necessary for this API to be more uniform (potential BC break).
* bonobo.pprint and bonobo.PrettyPrint have been removed, in favor of new bonobo.PrettyPrinter() generic printer. If
you're still using the old versions, time to switch (BC break).
* Secondary APIs start to be more uniform (bonobo.config, bonobo.util).
New features
------------
Graphs & Nodes
..............
* Graphs now have a .copy() method.
* New helper transformations arg0_to_kwargs and kwargs_to_arg0.
* The unique pretty printer provided by the core library is now bonobo.PrettyPrinter().
* Services now have "fs" and "http" configured by default.
Command line
............
* New `bonobo convert` command now allows to run simple conversion jobs without coding anything.
* New `bonobo inspect` command now allows to generate graphviz source for graph visualization.
* Passing environment variables to graph executions now can be done using -e/--env. (cwandrews)
* Add ability to install requirements with for a requirements.txt residing in the same dir (Alex Vykaliuk)
Preview
.......
* A "transformation factory" makes its first appearance. It is considered a preview unstable feature. Stay
tuned.
Internals
---------
* Configurables have undergone a refactoring, all types of descriptors should now behave in the same way.
* An UnrecoverrableError exception subclass allows for some errors to stop the whole execution.
* Refactoring of Settings (bonobo.settings).
* Add a reference to graph context (private) in service container.
* Few internal APIs changes and refactorings.
Bugfixes
--------
* Check if PluginExecutionContext was started before shutting it down. (Vitalii Vokhmin)
* Move patch one level up because importlib brakes all the CI tools. (Alex Vykaliuk)
* Do not fail in ipykernel without ipywidgets. (Alex Vykaliuk)
* Escaping issues (Tomas Zubiri)
Miscellaneous
-------------
* Windows console output should now be correct. (Parthiv20)
* Various bugfixes.
* More readable statistics on Ubuntu workstation standard terminal (spagoc)
* Documentation, more documentation, documentation again.
v.0.4.3 - 16 july 2017
::::::::::::::::::::::

View File

@ -127,5 +127,3 @@ def test_create_container_override():
assert len(c) == 2
assert 'fs' in c and c['fs'] == 'fs'
assert 'http' in c and c['http'] == 'http'