bindings/python/bt2: Make the bt2 package importable
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 25 Apr 2019 21:10:31 +0000 (17:10 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:56 +0000 (00:12 -0400)
commitd412915f833331f1fbab5fb17cec4cc36476c4cc
treefb49fa006c8708bbae08bb2550bc34e2a52bb610
parent078d51458e68e2eb67780b2a5f782007745bd196
bindings/python/bt2: Make the bt2 package importable

This patch changes the minimum necessary to make the bt2 package
importable.  In other words, for this command to succeed:

    $ tests/utils/test_python_bt2_env python3 -c "import bt2"

In some cases, I've replaced some references to concepts that don't
exist with the new concepts (e.g. some NOTIFICATION_TYPE_* to
MESSAGE_TYPE_*).  In other cases, (e.g. fields.py and field_types.py),
it was easier to remove the code, knowing we'll add it back when
tackling the tests that require these files.

After this milestone, we'll be able to at least run some tests that
import the bt2 package, so we'll be able to make sure we don't regress
things while we fix others.

Change-Id: I930d5a4dd129777cb40c607670e27002bb727e39
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.gerrithub.io/c/eepp/babeltrace/+/452154
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: Philippe Proulx <eeppeliteloop@gmail.com>
bindings/python/bt2/bt2/event_class.py
bindings/python/bt2/bt2/field_types.py
bindings/python/bt2/bt2/fields.py
bindings/python/bt2/bt2/notification.py
bindings/python/bt2/bt2/values.py
This page took 0.033377 seconds and 5 git commands to generate.