Commit Graph

16 Commits

Author SHA1 Message Date
Noam Kleinburd 036ed327eb Add gobytes example to SUPPORT_MATRIX.md. 2023-12-13 11:20:35 +02:00
Sebastien Binet 3b3e9b5a0a all: remove tests for python2
Signed-off-by: Sebastien Binet <binet@cern.ch>
2023-03-31 18:44:57 +02:00
Randall C. O'Reilly 9c83d3f7c3 update support matrix, add setup.py example in README, gofmt files. 2022-06-19 01:58:22 -07:00
Randall C. O'Reilly 691b7e025e major fix: create an import alias for package name conflicts -- e.g., adding goplot font package conflicts with image/font.. added pkgconflict test case 2021-08-29 02:55:02 -07:00
Cosmos Nicolaou 299c7e9a43
gopy,bind: fix storage leaks due to C.Cstring allocations w/ pybindgen
As noted in #186 the use of C.Cstring in conjunction with pybindgen leads to storage leaks. This CL attempts at fixing those by patching the output of pybindgen to call free on the leaked strings.

NOTE, that I plan to look at pybindgen to add an option to it so that it can generate the correct code. In the meantime, I think this change is useful to have since it makes the generated code much more usable.

Fixes #186.
2020-02-19 09:31:07 +01:00
Cosmos Nicolaou 35472c0b14
gopy,gopyh,bind: allow for deletion of handles from the map in gopyh
- add support for deleting gopyh handles
- add support for checking arguments' type

Fixes #217.
2020-02-18 22:59:10 +01:00
Randall C. O'Reilly ec3f125415 should be last fixes before switching over paths and pulling from PR etc: added osfile example test, which uses pkg and imports os -- needed some fixes to get os package to parse, including fixing error conversion from string, and dealing with func literals with no arg names. osfile doesn't actually work b/c python import only working after install -- not worth doing install for test. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly e381500a36 verified building on py2 and most tests work except for a few minor diffs in output -- calling it good enough for now. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 8d98f0953a all tests now passing except maps.. also need to test py2 2019-08-24 10:31:16 +02:00
Ondřej Herman 7712a09f47 gopy/bind: support both byte and Unicode strings as function parameters 2019-01-16 09:40:56 +01:00
Ondřej Herman 710e6acb3f gopy/bind: support pointers-to-slices with the cffi backend 2018-11-19 19:33:30 +01:00
Ondřej Herman 5f71fa457c gopy/bind: support some instances of pointer-to-slice parameters
Adds support for pointers to slices as output parameters:

    type StrVector []string
    func Fill (out *StrVector) {
        *out = []string{A, B}
    }


Co-authored-by: Ondřej Herman <xherman1@fi.muni.cz>
Co-authored-by: Pavel Rychlý <pary@fi.muni.cz>
2018-06-14 09:12:34 +02:00
Ondřej Herman e50b2d5a63 gopy/bind: implement gopy:name renaming directive
Adds support for changing the names of methods and
functions in the generated Python library. For example,
the following function will be available as under the name
`hello`:

    //gopy:name hello
    func Hello() string { return Hello }


Co-authored-by: Ondřej Herman <xherman1@fi.muni.cz>
Co-authored-by: Pavel Rychlý <pary@fi.muni.cz>
2018-06-14 09:08:42 +02:00
Ramakrishnan G 4b266c45de documentation: Auto-generate support matrix from tests
- Provision to auto-generate / verify support matrix from tests.
- Wrap around long lines > 80 characters in README.md.

Change-Id: Ice93fef8233e8cbc1566e17ae06b51bf79fd43eb
2018-03-27 17:14:09 +02:00
Sebastien Binet b1e60f126f Revert "documentation: Auto-generate support matrix from tests"
This reverts commit ab145c0f89.

Updates go-python/gopy#159.
2018-03-26 11:19:22 +02:00
Ramakrishnan G ab145c0f89 documentation: Auto-generate support matrix from tests
- Provision to auto-generate / verify support matrix from tests.
- Wrap around long lines > 80 characters in README.md.
- Also adding a .gitignore files excluding some temporary files of vim
  editor.

Change-Id: Ice93fef8233e8cbc1566e17ae06b51bf79fd43eb
2018-01-31 11:36:25 +01:00