release: 0.5.0
This commit is contained in:
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
# This file has been auto-generated.
|
# This file has been auto-generated.
|
||||||
# All changes will be lost, see Projectfile.
|
# 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
|
PACKAGE ?= bonobo
|
||||||
PYTHON ?= $(shell which python)
|
PYTHON ?= $(shell which python)
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
__version__ = '0.4.3'
|
__version__ = '0.5.0'
|
||||||
|
|||||||
@ -6,10 +6,12 @@ from bonobo.util.objects import get_name
|
|||||||
|
|
||||||
OUTPUT_GRAPHVIZ = 'graphviz'
|
OUTPUT_GRAPHVIZ = 'graphviz'
|
||||||
|
|
||||||
|
|
||||||
def _ident(graph, i):
|
def _ident(graph, i):
|
||||||
escaped_index = str(i)
|
escaped_index = str(i)
|
||||||
escaped_name = json.dumps(get_name(graph[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):
|
def execute(*, output, **kwargs):
|
||||||
graph, plugins, services = read(**kwargs)
|
graph, plugins, services = read(**kwargs)
|
||||||
@ -20,7 +22,7 @@ def execute(*, output, **kwargs):
|
|||||||
print(' "BEGIN" [shape="point"];')
|
print(' "BEGIN" [shape="point"];')
|
||||||
|
|
||||||
for i in graph.outputs_of(BEGIN):
|
for i in graph.outputs_of(BEGIN):
|
||||||
print(' "BEGIN" -> ' + _ident(graph, i) + ';')
|
print(' "BEGIN" -> ' + _ident(graph, i) + ';')
|
||||||
|
|
||||||
for ix in graph.topologically_sorted_indexes:
|
for ix in graph.topologically_sorted_indexes:
|
||||||
for iy in graph.outputs_of(ix):
|
for iy in graph.outputs_of(ix):
|
||||||
|
|||||||
@ -11,11 +11,7 @@ from bonobo.util.inspect import (
|
|||||||
isoption,
|
isoption,
|
||||||
istype,
|
istype,
|
||||||
)
|
)
|
||||||
from bonobo.util.objects import (
|
from bonobo.util.objects import (get_name, get_attribute_or_create, ValueHolder)
|
||||||
get_name,
|
|
||||||
get_attribute_or_create,
|
|
||||||
ValueHolder
|
|
||||||
)
|
|
||||||
from bonobo.util.python import require
|
from bonobo.util.python import require
|
||||||
|
|
||||||
# Bonobo's util API
|
# Bonobo's util API
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def isconfigurable(mixed):
|
def isconfigurable(mixed):
|
||||||
"""
|
"""
|
||||||
Check if the given argument is an instance of :class:`bonobo.config.Configurable`.
|
Check if the given argument is an instance of :class:`bonobo.config.Configurable`.
|
||||||
|
|||||||
@ -1,6 +1,70 @@
|
|||||||
Changelog
|
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
|
v.0.4.3 - 16 july 2017
|
||||||
::::::::::::::::::::::
|
::::::::::::::::::::::
|
||||||
|
|
||||||
|
|||||||
@ -127,5 +127,3 @@ def test_create_container_override():
|
|||||||
assert len(c) == 2
|
assert len(c) == 2
|
||||||
assert 'fs' in c and c['fs'] == 'fs'
|
assert 'fs' in c and c['fs'] == 'fs'
|
||||||
assert 'http' in c and c['http'] == 'http'
|
assert 'http' in c and c['http'] == 'http'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user