You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the integration of https://github.com/rjarry/libyang-cffi In the
long term, it is intended to replace the existing SWIG bindings.
Some highlights:
* Uses CFFI for interaction with libyang.so.
* More "pythonic" API. Should be easier to use for Python developers.
* All high-level code is in Python. Should ease maintenance.
* Virtualenv/pip friendly.
* Schema diff feature.
* New "print" data format: python dict.
To enable the generation, add the -DGEN_PYTHON_CFFI_BINDINGS=ON cmake
option. It does not depend on SWIG nor on the CPP bindings. It may be
enabled even if -DGEN_LANGUAGE_BINDINGS is OFF.
Signed-off-by: Robin Jarry <[email protected]>
Copy file name to clipboardExpand all lines: .travis.yml
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,14 +44,14 @@ before_install:
44
44
- cmake .. && make -j2 && sudo make install
45
45
- cd ../..
46
46
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
47
-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind libpcre3-dev python3-dev swig; fi
47
+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind libpcre3-dev python3-dev swig python3-cffi python3-setuptools twine; fi
48
48
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" -a "$TRAVIS_ARCH" = "amd64" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi
49
49
50
50
script:
51
51
- mkdir build && cd build
52
52
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake -DENABLE_VALGRIND_TESTS=OFF ..; fi
53
-
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_ARCH" = "amd64" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_STATIC=${ENABLE_STATIC:-OFF} ..; fi
54
-
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_ARCH" = "arm64" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_VALGRIND_TESTS=OFF ..; fi
53
+
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_ARCH" = "amd64" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_STATIC=${ENABLE_STATIC:-OFF} -DGEN_PYTHON_CFFI_BINDINGS=ON ..; fi
54
+
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_ARCH" = "arm64" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_VALGRIND_TESTS=OFF -DGEN_PYTHON_CFFI_BINDINGS=ON ..; fi
0 commit comments