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)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit88f3724d0043e896f5fabe6f1033fd344a17cbaa
treefb49fa006c8708bbae08bb2550bc34e2a52bb610
parentfffedc87945dbda06d318e6a17a875ca639d7d5d
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.026168 seconds and 4 git commands to generate.