Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

libsmartcols: bindings via siwg #246

Closed
wants to merge 15 commits into
from

Conversation

1 participant
Contributor

ignatenkobrain commented Dec 19, 2015

Currently tested and supported only python bindings, but it is easy to add another languages. Now without any documentation, but it is in my plans for the future.

Contributor

ignatenkobrain commented Dec 19, 2015

@karelzak, ready for review ;) Without CMake as you wanted. I dont know how to fix problem with

relink `_libsmartcols.la' with the above command before installing it

It works perfectly with creating util-linux RPM.. Docs will come in some days.

Contributor

ignatenkobrain commented Dec 20, 2015

I will reopen when I will finish some stuff here.

Contributor

ignatenkobrain commented Dec 20, 2015

@karelzak I reworked bindings and now got some documentation and nice feature Table.json() which will return dict by json.loads().

Built documentation looks: https://ignatenkobrain.fedorapeople.org/pylibsmartcols/

ignatenkobrain added some commits Dec 19, 2015

libsmartcols: add bindings using swig
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
AUTHORS: add Igor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
travis: install swig inside
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
configure: drop explicit AC_PROG_CXX to remove warning
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
travis: install sphinx inside
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/python: add documentation
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/python: Table.json() provides dict()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
require c++11
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/bindings: fix return for Column::name()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
travis: require gcc-4.8 to support c++11 and export CXX for clang
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Contributor

ignatenkobrain commented Dec 21, 2015

Remaining issues:

  • installation in shittyci failing due to relink (can't fix myself, out of ideas)
  • auto-generate link to C-doc in libsmartcols/docs/python/conf.py.in (will take a look later)

ignatenkobrain added some commits Dec 21, 2015

libsmartcols/bindings: rename to smartcols
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/bindings: wrap python-specific parts
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/bindings: add newly FLAGS_HIDDEN ifdefs to build out-of-…
…source

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/bindings: Table::json returns newobject and fix py-wrapper
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/bindings: rename __str__() to str() in Perl
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

@ignatenkobrain ignatenkobrain deleted the ignatenkobrain:libscols_bindings branch Sep 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment