Commit Graph

4 Commits

Author SHA1 Message Date
Justin Israel ac5c077a97
main,bind: extended gopy:name control, auto PEP8 naming, and property docstring support
This commit provides an option to automatically rename functions, methods, and properties to PEP-style snake_case when generating code.
2021-03-26 09:16:11 +01:00
Justin Israel 7bd7360fdf
main,bind,_examples: fix tests for go 1.16
* main,bind,_examples: fix tests for go 1.16

This CL fixes a number of tests that are failing under go 1.16.
Modules behave a bit differently, the //comment directives now
need a space, generated version file needs go fmt, and there was a
mis-named symbol

* ci: Update travis and appveyor for recent Go and fix pypy download links

* ci: fix typo in travis script, and adjust go to max appveyor version

* ci: update appveyor PATH to pick up proper latest go version

* fix: Re-enable test cleanup

* ci: update appveyor to pin GOROOT

* ci: update appveyor to use latest windows image
2021-03-16 12:51:57 +01:00
Sebastien Binet fbb477f2ae tests: fix exit code 2019-01-16 16:18:59 +01: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