Commit Graph

11 Commits (c195bb562c060214d5a09fb225f3a47bd5127758)

Author SHA1 Message Date
Varun Agrawal c195bb562c Squashed 'wrap/' changes from d6350c214..0ab10c359
0ab10c359 Fix pyparsing version and replace `create_symlinks` with `copy_directory` (#128)
230a3c967 Merge pull request #127 from borglab/feature/template-instantiator
cc7d9a8b4 breakdown template instantiator into smaller submodules
59536220a Merge pull request #126 from borglab/feature/instantiation-tests
7ee715ecc add type info to template_instantiator
b367ed93d tests for InstantiationHelper
e41cfd50e tests for InstantiatedGlobalFunction
1837982a7 tests for InstantiatedClass
a7e3678a3 tests for InstantiatedStaticMethod
da06c53f7 tests for InstantiatedMethod
c645c143c tests for InstantiatedConstructor
b8a046267 tests for InstantiatedDeclaration
af80c9d04 finish all tests for namespace level instantiation
d6085c37a add tests for high level template instantiation
f7ae91346 add docs and utility method
d90abb52b Merge pull request #125 from borglab/feature/templated-static
58cdab20d clean up
247cea727 add helper for multilevel instantiation
761f588e4 update tests
81e5d5d19 update pybind wrapper to use new way
96d1575d8 streamlined way of instantiating template for class methods
1e4e88799 add to_cpp method for Method
485d43138 add the test fixtures
8cb943635 support instantiation of static method templates
84ef6679b add template to static method parser

git-subtree-dir: wrap
git-subtree-split: 0ab10c359a6528def20eddc60aced74a04250419
2021-10-25 12:46:06 -04:00
Varun Agrawal 4307b842c1 Squashed 'wrap/' changes from add6075e8..d6350c214
d6350c214 Merge pull request #123 from borglab/feature/constructor-arg-templates
c667aa0ed add matlab test
b9513b0db update docs
2b44678c9 instantiate scoped templates
f99a75110 add tests for templates

git-subtree-dir: wrap
git-subtree-split: d6350c214bb4e012f1a0003b1ffc052bb7f35f33
2021-09-28 10:09:10 -04:00
Varun Agrawal 3a5e715848 Squashed 'wrap/' changes from d9ae5ce03..571c23952
571c23952 Merge pull request #119 from borglab/feature/remove-loguru
0e5178251 remove loguru as a dependency
5b76595cf fix type info and do some refactoring

git-subtree-dir: wrap
git-subtree-split: 571c2395242e33dfd0596a240fbcb87775b9ba0c
2021-07-22 11:51:22 -04:00
Varun Agrawal 4c410fcd0e Squashed 'wrap/' changes from 07330d100..d9ae5ce03
d9ae5ce03 Merge pull request #118 from borglab/feature/matlab-multi-files
9adddf7dd update the main script for matlab wrapping
0b0398d46 remove debug statements since they aren't needed for now
df064a364 support for parsing mutiple interface files for Matlab wrapping
1929e197c add test for parsing multiple interface files
bac442056 Merge pull request #117 from borglab/fix/matlab-refactor
331f4a8ce update tests to remove redundant code
5426e3af4 generate all content from within the wrap function
f78612bf9 make directory check common
b7acd7a1f fixed import and test setup
88007b153 Merge pull request #116 from borglab/feature/matlab-refactor
a074896e6 utils -> mixins
414557e00 structure
187100439 update gitignore
adbc55aea don't use class attributes in matlab wrapper
f45ba5b2d broke down some large functions into smaller ones
7756f0548 add mixin for checks and call method to wrap global functions
a318e2a67 Merge pull request #115 from borglab/feature/multiple-modules
b02b74c3d convert matlab_wrapper to a submodule
be8641e83 improved function naming in tests
02ddbfbb0 update tests and docs
dfbded2c7 small fixes
e9ec5af07 update docs
d124e2cfb wrap multiple files
7c7342f86 update cmake to take in new changes for multiple modules
54850f724 Merge pull request #114 from borglab/fix/remove-py35
71ee98321 add mypy annotations
ccaea6294 remove support for python 3.5

git-subtree-dir: wrap
git-subtree-split: d9ae5ce036c4315db3c28b12db9c73eae246f314
2021-07-11 08:10:35 -07:00
Varun Agrawal 56bede07cd Squashed 'wrap/' changes from 0124bcc45..07330d100
07330d100 Merge pull request #113 from borglab/fix/reserved-keywords
ec6b8f037 update test
f022ba516 update and ignore reserved keywords for both functions and methods
4f988e5ad Merge pull request #112 from borglab/fix/cleanup
55bba2e6d fix variable annotations
61720ca0b support python 3.5 in the CI
0975d6529 version bump
e8109917c use args.list() instead of args.args_list
6d0a91d7d renames args_names to names
4ce060b44 Merge pull request #111 from borglab/fix/default-bug
ce7eea318 updated tests to capture bug
b7650ec07 Fix bug for default in methods
4108854c7 Merge pull request #107 from borglab/feature/print
528ee64ce Merge pull request #110 from borglab/fix/variable-annotation
e069f8bfc use old style variable annotation
5fd300116 update test fixture
a25c2df0f use separate function to wrap global functions
58499a74b Merge pull request #106 from borglab/feature/consistent_names
2fe92b693 rename from cpp_class to to_cpp
3a3ba5963 Merge pull request #105 from borglab/cleanup
e27a7b833 unskip tests
0db1839c4 Merge pull request #104 from borglab/feature/forward-class-declaration
e3e7fbb27 remove unused imports
a3c125065 encapsulate parsing and instantiation within wrap method in a functional way
69bbbe992 wrap instantiated declaration
dbc44e7d5 added test for forward declaration typedef
6bec3cb8b add template instantation for typedefs of forward declarations
8d70c15ed updated Declaration to allow for wrapping
0637c2b3f remove print debugging statement
deb8291ac allow forward declarations to be used for typedefs
69d660899 Merge pull request #101 from borglab/feature/object-default-parameters
ec5555e56 formatting and docs
cdaabc043 Merge branch 'feature/object-default-parameters' of github.com:borglab/wrap into feature/object-default-parameters
8ab0b0fa7 new parsing rule
0638a1937 update DEFAULT_ARG rule to support vector initializer list
83d2b761c update tests
7bb8c5494 more tests
1eaf6ba4a refactor default arg feature and add more tests
94f373ca9 tests
534e8a6dd support object types as default arguments
05e8ea855 Merge pull request #99 from borglab/fix/default_arg_0
1fdfeae6a address review comments
25b109c3f fix matlab unit test
6bb1b0c46 fix declaration order in unit test "expected"
7ee2d5fa4 don't unquote QuotedStrings that way we don't have to deal with strings manually.
c915f4963 failing unit test : literals are not wrapped properly
d47b6e8be default arg of 0 - interface_parser unit test
ccf693641 fix for allow default arg of 0
3534c06e9 unit tests for default arg of 0

git-subtree-dir: wrap
git-subtree-split: 07330d10022130e4284743341ac9d54a0dcb3d9f
2021-06-16 13:51:43 -04:00
Varun Agrawal c78ca4bd02 Squashed 'wrap/' changes from 9a467794e..96ccdfd0b
96ccdfd0b Merge pull request #65 from borglab/fix/special-cases
04c06b7e6 Merge pull request #63 from borglab/fix/cmake
bf2c91bd2 fix issue in template instantiation generator
152dbcb12 test for special cases
d03004b24 fixed the cmake to discover the correct python version and set all corresponding variables
4cf66e0da Merge pull request #61 from borglab/fix/python-variables
80558e35b added more status messages and set the PYBIND11_PYTHON_VERSION each time
73afd1b0a set both sets of Python variables and find python version when including PybindWrap
REVERT: 9a467794e Merge pull request #61 from borglab/fix/python-variables
REVERT: 6bae7af99 added more status messages and set the PYBIND11_PYTHON_VERSION each time
REVERT: 5129cf3b9 set both sets of Python variables and find python version when including PybindWrap

git-subtree-dir: wrap
git-subtree-split: 96ccdfd0b84a4dbf1b3e9ed31b95ebc2758be9cc
2021-03-26 00:54:01 -04:00
Varun Agrawal a62a986fbb Squashed 'wrap/' changes from 548e61b1f..29628426d
29628426d Merge pull request #59 from borglab/fixes
a95429ea0 Merge pull request #56 from borglab/fix/this-instantiation
3e22d6516 more documenatation and some formatting
526301499 updated the test to test for non-templated This
cdb75f36f Merge branch 'master' into fix/this-instantiation
0f5ae3b7f moved example pybind template to templates directory
d55f5db38 remove extra whitespace
21891ad3d skip tests until we figure out what's going on
2ea6307c3 better way of handling the matlab includes in the matlab wrapper
d0f8a392c Merge pull request #55 from borglab/feature/refactor3
57d47cbd9 create directories to store generated output
4788a1e37 fixed This instantiation
61d2cbfc4 add namespace test to matlab wrapper
ec39023e6 added more, smaller tests for Python wrapper
19c35b857 test for matlab class inheritance and some clean up
06ca5da13 test for matlab functions
cb05d7379 minor clean up and separate tests for geometry and class
8d8145cc4 break down test interface file into smaller files that can be easily debugged
97328f057 restructured test files and added dedicated fixtures directory

git-subtree-dir: wrap
git-subtree-split: 29628426d2c1a7bb728e40307c0f25cb468cd1bc
2021-03-25 00:49:51 -04:00
Varun Agrawal 58a9622777 Squashed 'wrap/' changes from aae9b4605..3eff76f60
3eff76f60 Merge pull request #53 from borglab/feature/refactor
13215dfa7 Merge pull request #52 from borglab/fix/tests
696913b11 install setuptools
9523328ba Merge branch 'master' into fix/tests
7c630b361 some more cleanup
656993a71 cleaned up  Typename
a16f6f38e move qualified and basis type outside to their own class scope
72ead8bd7 Merge pull request #51 from borglab/fix/test-interface-parser
6deefd4fc added tests for interface_parser
50d490a85 Merge pull request #50 from borglab/feature/refs-all-types
be4511290 updated docs for BasisType
0e80b0d8c update MATLAB tests
0015d7397 added support for shared pointer and ref for basis types
86d2158f1 remove std::string from list of Basis types
94f928441 ignore code coverage reports
2033dd345 replace prints with log.debug statements
ae98091b3 fix deprecation in doc tests
13a2f66c4 Merge pull request #46 from borglab/feature/new-shared-pointer
3c7d85865 updated docs
6d7897088 use @ for raw pointer, go back to * for shared pointer
1d6194c57 updated matlab wrapper to handle both raw and shared pointers
1448f6924 fix some failing tests
2ab1dae32 Merge branch 'master' into feature/new-shared-pointer
96f8a56bd Merge pull request #47 from borglab/fix/ci
6003203f3 run CI only for pull requests
a8f29ead1 fix the python version yml key
fcae17227 check if directory exists when testing
f592f08c9 explicit pip3 so that we don't use Python2
d49c2f3c2 correct call for pip
dfe360526 fix the CI
149b7c523 docs for templated functions
f2189acc6 support typedefing for templated functions
965458a2b added test for templated functions
eaff6e6ab made is_const common for all types
3d9c70b32 added tests and cleaned up a bit
010b89626 support for simple pointers on basis types
6b98fd80c new syntax for shared_ptr
ff7ad0b78 support for templated functions
a1a443c8d Merge pull request #43 from borglab/fix/cmake-and-matlab
2f3a055e4 remove accidentally committed file
770d055e2 set proper paths for cmake and eschew relative paths
773d01ae1 fix bug in matlab wrapper
721ef740f Merge pull request #41 from borglab/feature/type-hints
67aac9758 minor refactor of CI yml
e6a63ae0c fix all mypy issues
a3aaa3e7c remove a lot of linter issues from matlab_wrapper
a96db522f static typing for interface_parser

git-subtree-dir: wrap
git-subtree-split: 3eff76f604b5ba9e71cf4947654e288142ed7a94
2021-03-24 00:36:02 -04:00
Varun Agrawal 55dade0b8e Squashed 'wrap/' changes from b0eb968f2..d19cda546
d19cda546 Merge pull request #36 from borglab/fix/shared-ptr-property
13ef2485c Merge pull request #37 from borglab/feature/multiple-templates
f3f40b375 add support for multiple instantiated templates
4f33353ef support for templated return types
1244045c2 cleaned up tests and added test for Pybind property shared pointer
0f3fbc428 add support for pointers as properties, and update docs
9974a73ec Merge pull request #35 from borglab/feature/docs
e9c52421d Added DOCS with info about wrapping structure
627154f9f fix call to superclass init
8a4e61ead added more docs and fixed typo for holder_type
b1bdec933 added docstrings to interface_parser and took care of all the errors and warnings

git-subtree-dir: wrap
git-subtree-split: d19cda5467f8b5cb8d4f571d8735ede328dae02d
2021-03-13 12:01:28 -05:00
Varun Agrawal 7cc7232a99 Squashed 'wrap/' changes from dfa624e77..09f8bbf71
09f8bbf71 Merge pull request #25 from borglab/fix/function-name
0dbfb6c13 fix function name to be the correct one
f69f8b01f Merge pull request #24 from borglab/fix/pip
6519a6627 use pip install to overcome superuser issues
b11ecf4e8 Merge pull request #23 from borglab/fix/remove-pip-args
813030108 remove pip-args since we are using setup.py
498d233e0 Merge pull request #22 from borglab/fix/package-install
846212ac3 set correct flags for installing gtwrap package
62161cd20 Merge pull request #21 from borglab/feature/script-vars
93be1d9f8 set script variables and move pybind11 loading so gtwrap can be used under gtsam
8770e3c7e Merge pull request #20 from borglab/fix/pybind-include
8c3c83618 proper placement of pybind11 include
a9ad4f504 Merge pull request #19 from borglab/feature/package
99d8a12c7 added more documentation
4cbec1579 change to macro so we don't have to deal with function scopes
b83e405b8 updates to completely install the package
38a64b3de new scripts which will be installed to bin directory
bf9646235 Merge pull request #18 from borglab/fix/cmake-min
c7c280099 Consistent cmake minimum required
42df58f62 Merge pull request #17 from borglab/fix/cleanup
e580b282d version bump
4ccd66fa5 More finegrained handling of Python version
6476fd710 Merge pull request #16 from borglab/feature/better-find-python
8ac1296a0 use setup.py to install dependencies
e9ac473be install dependencies and support versions of CMake<3.12
cf272dbd2 Merge pull request #15 from borglab/feature/utils
ffc9cc4f7 new utils to reduce boilerplate
20e8e8b7a Merge pull request #11 from borglab/feature/package
04b844bd6 use new version of FindPython and be consistent
3f9d7a32a Merge pull request #13 from borglab/add_license
c791075a6 Add LICENSE
517b67c46 correct working directory for setup.py
1b22b47ae move matlab.h to root directory
37b407214 Proper source directory path for use in other projects
61696dd5d configure PybindWrap within the cmake directory
1b91fc9af add config file so we can use find_package
a1e6f4f53 small typo
da9f351be updated README and housekeeping
64b8f78d5 files needed to allow for packaging
bddda7f54 package structure

git-subtree-dir: wrap
git-subtree-split: 09f8bbf7172ba8b1bd3d2484795743f16e1a5893
2021-01-04 13:11:36 -05:00
Fan Jiang 8e2d5a10e4 Squashed 'wrap/' content from commit 21ee82f75
git-subtree-dir: wrap
git-subtree-split: 21ee82f7542033a9a91891669490da0e364a357b
2020-08-17 14:44:43 -04:00