Commit Graph

532 Commits

Author SHA1 Message Date
Randall C. O'Reilly 1d7f3a2d29 v0.4.10 release 2024-05-03 15:57:34 -07:00
Randall C. O'Reilly b735a58c6b not finding pybindgen but looks like longlong worked. 2024-05-03 15:39:05 -07:00
Randall C. O'Reilly 5fb68318e0 generate longlong for gen_slice on windows 2024-05-03 15:27:38 -07:00
Randall C. O'Reilly feb8731223 install goimports 2024-05-03 15:08:08 -07:00
Randall C. O'Reilly ecc3b0766b install goimports 2024-05-03 15:07:20 -07:00
Randall C. O'Reilly 581b1882a1 try to update appveyor 2024-05-03 15:02:18 -07:00
Randall C. O'Reilly 3f3fd09c10 update ci to latest go versions 2024-05-03 14:57:18 -07:00
Randall C. O'Reilly 8e6808ae74 revert #353 -- doesn't work on CI or on my mac, on python 3.11 at least. 2024-05-03 14:50:32 -07:00
Randall O'Reilly 277bbad0c1
Merge pull request #353 from Inotart/master
Replacement c.long(size) for c.longlong(size)
2024-05-03 14:32:03 -07:00
Randall C. O'Reilly 49f82061f6 need to run files through format or goimports.. 2024-05-03 14:30:03 -07:00
Randall O'Reilly 50c71dc954
Merge pull request #351 from EvanOman/346/fix-handleFromPtr-missing-reference-slices
Adds missing pointer reference for slices along with test
2024-05-03 14:24:24 -07:00
我不是Art 69ffdd7010
Update gen_slice.go 2024-04-30 12:14:44 +08:00
Evan Oman f16e21bc0e Adds missing pointer reference for slices along with test 2024-04-22 21:39:40 -05:00
Randall C. O'Reilly cdad836f8a v0.4.9 release 2024-04-22 17:02:23 -07:00
Randall C. O'Reilly 9dde3761d5 if renaming case, use lower-case string() method instead of String() -- fixes #337 2024-04-22 16:04:17 -07:00
Randall C. O'Reilly 4aba380925 automatically exclude internal packages. Fixes #343 2024-04-22 15:48:31 -07:00
Randall C. O'Reilly 08d1f14ff9 quote the -I and -L CFLAGS, LDFLAGS paths. Fixes #349 2024-04-22 15:31:34 -07:00
Randall O'Reilly 0050491353
Merge pull request #347 from Jorropo/fix-structural-typing
fix panic when packaged go code relies on structural typing
2024-04-22 15:11:11 -07:00
Randall O'Reilly be58ca3e00
Merge pull request #342 from NoamK-CR/issue-323/slice-bytes
Efficient copies of bytes
2024-04-22 15:04:05 -07:00
Randall O'Reilly 90afd8042c
Merge pull request #350 from EvanOman/fix-handleFromPtr-missing-reference
Fix `handleFromPtr` missing Reference in Maps
2024-04-22 14:51:25 -07:00
Evan Oman 6079a4ceca Adds guard around pointer reference for basic types 2024-04-22 13:15:08 -05:00
Evan Oman 7e6f349c44 Adds reference in gen_map elem fn 2024-04-22 13:15:08 -05:00
Jorropo 4f1a712948 fix panic when packaged go code relies on structural typing
Fix this panic:
```
panic: interface conversion: types.Type is *types.Signature, not *types.Named

goroutine 1 [running]:
github.com/go-python/gopy/bind.(*Package).process(0xc01d5ee800)
	/home/hugo/k/gopy/bind/package.go:340 +0x2078
github.com/go-python/gopy/bind.NewPackage(0xc009d2e720, 0xc00b228120)
	/home/hugo/k/gopy/bind/package.go:68 +0x27c
main.parsePackage(0xc0203ec180)
	/home/hugo/k/gopy/gen.go:159 +0x276
main.buildPkgRecurse({0xc0000ce640, 0x20}, {0xc0005d1ce0, 0x26}, {0x7ffd641ad938, 0x1b}, 0xc00d08bc68, {0x0, 0x0})
	/home/hugo/k/gopy/cmd_pkg.go:162 +0x2b6
main.buildPkgRecurse({0xc0000ce640, 0x20}, {0xc01173e280, 0x20}, {0x7ffd641ad938, 0x1b}, 0xc00d08bc68, {0x0, 0x0})
	/home/hugo/k/gopy/cmd_pkg.go:174 +0x428
main.buildPkgRecurse({0xc0000ce640, 0x20}, {0x7ffd641ad938, 0x1b}, {0x7ffd641ad938, 0x1b}, 0xc00d08bc68, {0x0, 0x0})
	/home/hugo/k/gopy/cmd_pkg.go:174 +0x428
main.gopyRunCmdPkg(0xc00012cd20, {0xc00009e230, 0x1, 0x747468?})
	/home/hugo/k/gopy/cmd_pkg.go:132 +0xd19
github.com/gonuts/commander.(*Command).Dispatch(0xc00012cd20, {0xc00009e230, 0x1, 0x1})
	/home/hugo/go/pkg/mod/github.com/gonuts/commander@v0.1.0/commands.go:209 +0x170
github.com/gonuts/commander.(*Command).Dispatch(0xc00012cf00, {0xc00009e220, 0x2, 0x2})
	/home/hugo/go/pkg/mod/github.com/gonuts/commander@v0.1.0/commands.go:175 +0x22f
main.run({0xc00009e220, 0x2, 0x2})
	/home/hugo/k/gopy/main.go:62 +0x25b
main.main()
	/home/hugo/k/gopy/main.go:70 +0x49
```
When packaing code like this
```go
type Public = func()
```
2024-02-23 03:59:11 +01:00
Noam Kleinburd 036ed327eb Add gobytes example to SUPPORT_MATRIX.md. 2023-12-13 11:20:35 +02:00
Noam Kleinburd e6a14f8cac Implement efficient copies of bytes. 2023-12-13 11:20:35 +02:00
Randall C. O'Reilly d520eb60fa v0.4.8 release 2023-12-12 12:15:10 -08:00
Randall C. O'Reilly 034c7dbc02 update dependency mod versions 2023-12-12 12:11:35 -08:00
Randall C. O'Reilly 8a6b0047d9 add a requirements.txt file and prereq make target, confirm test of latest PRs 2023-12-12 12:11:35 -08:00
Randall O'Reilly 5597cfd453
Merge pull request #330 from foxever/master
bind: fixed LDFLAGS on windows if python include path contains capital letters
2023-12-12 11:54:55 -08:00
Randall O'Reilly 5bc603ecc6
Merge pull request #334 from testwill/ioutil
chore: remove refs to deprecated io/ioutil
2023-12-12 11:48:53 -08:00
Randall O'Reilly a5b96e6096
Merge pull request #335 from testwill/string
chore:  use xxx.String() instead of string(xxx.Bytes())
2023-12-12 11:48:17 -08:00
Randall O'Reilly 2dc64b7f09
Merge pull request #338 from richecr/fix/__next__
fix __next__ function
2023-12-12 11:47:07 -08:00
Randall O'Reilly ba7e45b452
Merge pull request #341 from psha-/master
Generate const documentation.
2023-12-12 11:28:55 -08:00
Asparuh Krastev 113c72fdd4 Checks 2023-10-26 14:20:13 +03:00
Asparuh Krastev 3bc817dcb1 Revert 2023-10-26 14:17:34 +03:00
Asparuh Krastev 71d9da3f87 Simplify 2023-10-26 14:11:41 +03:00
Asparuh Krastev 3d857d6c44 Generate const documentation.
Fixes #340.
2023-10-26 13:51:49 +03:00
Rich Ramalho 8eddf46016 fix __next__ function 2023-10-02 21:26:08 -03:00
guoguangwu bc9d28b4d6 chore: use xxx.String() instead of string(xxx.Bytes()) 2023-07-19 09:13:54 +08:00
guoguangwu 5462ce0097 chore: remove refs to deprecated io/ioutil 2023-07-19 09:11:09 +08:00
liuxinfeng 385862ddb3 bind: fixed create LibDir from windows include path with capital letter 2023-06-01 10:03:38 +08:00
Randall C. O'Reilly 744da80a3d v0.4.7 release 2023-04-14 09:26:26 -07:00
Randall O'Reilly ff989a1d8f
Merge pull request #324 from vmarkovtsev/patch-1
Enforce the extension module in setup.py
2023-04-14 09:21:27 -07:00
Vadim Markovtsev d314ab95bb
Enforce the extension module in setup.py
Without this change, [cibuildwheel](https://github.com/pypa/cibuildwheel) cannot build a correct wheel from the generated project. The problem is that the native lib is added by `MANIFEST.in` and `python3 -m pip wheel` ignores it and thinks that the package is pure Python. Thefore it builds a pure wheel and the packaging pipeline crashes.
2023-04-14 17:01:06 +02:00
Randall O'Reilly 5271841b4c
Merge pull request #321 from go-python/issue-266
cmd: remove dependency on sed
2023-03-31 12:34:20 -07:00
Randall O'Reilly 042b2543e6
Merge pull request #322 from go-python/py2
all: drop python2 support
2023-03-31 12:31:27 -07:00
Sebastien Binet 50358bcb29 cmd: remove dependency on sed
Fixes #266.

Signed-off-by: Sebastien Binet <binet@cern.ch>
2023-03-31 19:24:00 +02:00
Sebastien Binet 3941218a02 bind: add support for PEP-632
Signed-off-by: Sebastien Binet <binet@cern.ch>
2023-03-31 18:55:29 +02:00
Sebastien Binet b7e1c5e7f2 all: bump to Go-1.20
Signed-off-by: Sebastien Binet <binet@cern.ch>
2023-03-31 18:44:57 +02:00
Sebastien Binet eddc00b4b6 gopy: update test for new error message
Signed-off-by: Sebastien Binet <binet@cern.ch>
2023-03-31 18:44:57 +02:00