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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:40 +0000 (18:19 -0400)
commit5f66202cf0bbfdde3edc45cec6dc0d730b18617a
treef0f545fb549958a9189f76860cad7bc47fc42131
parentfe65b1fe065a199e25e7eb9ade22958d32503b5a
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.025218 seconds and 4 git commands to generate.