Skip to content

Commit 56f7dd1

Browse files
authored
Use go.nhat.io/cpy/v3 (#4)
1 parent ce2a3a1 commit 56f7dd1

File tree

15 files changed

+16
-20
lines changed

15 files changed

+16
-20
lines changed

bool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package python
22

3-
import "go.nhat.io/cpy3"
3+
import cpy3 "go.nhat.io/cpy/v3"
44

55
// True is a wrapper of cpy3.Py_True.
66
var True = NewObject(cpy3.Py_True)

error.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package python
22

3-
import (
4-
"go.nhat.io/cpy3"
5-
)
3+
import cpy3 "go.nhat.io/cpy/v3"
64

75
// Exception is a Python exception.
86
type Exception struct { //nolint: errname,stylecheck

float.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package python
22

3-
import "go.nhat.io/cpy3"
3+
import cpy3 "go.nhat.io/cpy/v3"
44

55
// IsFloat returns true if the object is a Python float.
66
func IsFloat(o PyObjector) bool {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22
44

55
require (
66
github.com/stretchr/testify v1.8.4
7-
go.nhat.io/cpy3 v0.0.0-20240211052030-bde1bc76d495
7+
go.nhat.io/cpy/v3 v3.11.0
88
go.nhat.io/once v0.2.0
99
)
1010

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1010
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1111
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
1212
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
13-
go.nhat.io/cpy3 v0.0.0-20240211052030-bde1bc76d495 h1:F/Mbz9zhl3hyPaxNcuzuvM4Wq1hNRvpgE9TcIVqpTIA=
14-
go.nhat.io/cpy3 v0.0.0-20240211052030-bde1bc76d495/go.mod h1:Rz9ZP/FtMt5KgArTtj6sbeN97Jhtc1+pZfKd/pyMKPI=
13+
go.nhat.io/cpy/v3 v3.11.0 h1:27yQJX9tqaVpbWP7bLGZLb1zk274yJY4gMpfKWenorA=
14+
go.nhat.io/cpy/v3 v3.11.0/go.mod h1:ZB/O/aVbrq5cbn+3AE04Ae5HeplqFZ3jFgo80MwbR24=
1515
go.nhat.io/once v0.2.0 h1:tIvETkXlxRlguXN7ttubxzfkC7tUngURKl9YSigT4ic=
1616
go.nhat.io/once v0.2.0/go.mod h1:CXQFW8fgGQ9/IMDPkJlcTlQ+00dK3Ul4ggkptzn7fvw=
1717
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package python
22

33
import (
4-
"go.nhat.io/cpy3"
4+
cpy3 "go.nhat.io/cpy/v3"
55
"go.nhat.io/once"
66
)
77

init.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package python
22

3-
import (
4-
"go.nhat.io/cpy3"
5-
)
3+
import cpy3 "go.nhat.io/cpy/v3"
64

75
// ErrPythonInterpreterNotInitialized is the error message when the python interpreter is not initialized.
86
var ErrPythonInterpreterNotInitialized = "cannot initialize the python interpreter"

integer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package python
22

3-
import "go.nhat.io/cpy3"
3+
import cpy3 "go.nhat.io/cpy/v3"
44

55
// IsInt returns whether the given object is a Python int object.
66
func IsInt(o PyObjector) bool {

list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package python
33
import (
44
"reflect"
55

6-
"go.nhat.io/cpy3"
6+
cpy3 "go.nhat.io/cpy/v3"
77
)
88

99
// IsList returns true if the object is a tuple.

list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/assert"
77
"github.com/stretchr/testify/require"
8-
"go.nhat.io/cpy3"
8+
cpy3 "go.nhat.io/cpy/v3"
99

1010
python3 "go.nhat.io/python/v3"
1111
)

0 commit comments

Comments
 (0)