Skip to content

Commit 374f36b

Browse files
rename project to github.com/go-python/cpy3
1 parent 8eaf261 commit 374f36b

File tree

7 files changed

+28
-15
lines changed

7 files changed

+28
-15
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22

33
templates:
44
job_template: &job_template
5-
working_directory: /go/src/github.com/DataDog/go-python3
5+
working_directory: /go/src/github.com/go-python/cpy3
66
docker:
77
- image: golang:1.11.2
88

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Contributing
22

3-
Please, open issues and submit PRs on https://github.com/DataDog/go-python3 using the provided templates.
3+
Please, open issues and submit PRs on https://github.com/go-python/cpy3 using the provided templates.
4+
5+
Backward compatibility is a priority. Please, avoid introducing breaking changes. (Exceptions need a good reason).

LICENSE

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
MIT License
22

3-
Copyright (c) 2018 Datadog, Inc.
3+
Copyright (c) 2018 - 2021 Datadog, Inc.
4+
Copyright (c) 2018 - 2021 Contributors to the DataDog/go-python3 project
5+
Copyright (c) 2021 Contributors to the go-python/cpy3 project
46

57
Permission is hereby granted, free of charge, to any person obtaining a copy
68
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1820
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1921
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2022
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
23+
SOFTWARE.

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
**This repo will be archived on December 1st 2021. While still readable it will no longer be maintained.**
2-
3-
# go-python3
1+
# Go bindings for the CPython-3 C-API
42

53
**Currently supports python-3.7 only.**
64

7-
Golang bindings for the C-API of CPython-3.
8-
95
This package provides a ``go`` package named "python" under which most of the
106
``PyXYZ`` functions and macros of the public C-API of CPython have been
117
exposed. Theoretically, you should be able use https://docs.python.org/3/c-api
128
and know what to type in your ``go`` program.
139

10+
## relation to `DataDog/go-python3`
11+
12+
This project is a community maintained successor to [`DataDog/go-python3`](https://github.com/DataDog/go-python3), which will get archived in December 2021.
13+
14+
- If you use the Go package `github.com/DataDog/go-python3` in your code, you can use `github.com/go-python/cpy3` as a drop-in replacement. We intend to not introduce breaking changes.
15+
- If you have unmerged PRs or open issues on `DataDog/go-python3`, please re-submit them here.
1416

15-
This project was inspired by https://github.com/sbinet/go-python. Go and take a look if we need something for python-2.7!
17+
## relation to `sbinet/go-python`
18+
19+
This project was inspired by [`sbinet/go-python`](https://github.com/sbinet/go-python) (Go bindings for the CPython-2 C-API).
1620

1721
# Install
1822

@@ -28,7 +32,7 @@ the `PKG_CONFIG_PATH` environment variable.
2832

2933
## Go get
3034

31-
Then simply `go get github.com/DataDog/go-python3`
35+
Then simply `go get github.com/go-python/cpy3`
3236

3337
# API
3438

@@ -47,4 +51,9 @@ and error will be set if we failed to open `filename`.
4751

4852
If an error is raise before calling th CPython function `int` default to `-1`.
4953

50-
Take a look at some [examples](examples)
54+
Take a look at some [examples](examples) and this [tutorial blogpost](https://poweruser.blog/embedding-python-in-go-338c0399f3d5).
55+
56+
# Contributing
57+
58+
Contributions are welcome! See [details](CONTRIBUTING.md).
59+
This project follows the [Go Community Code of Conduct](https://golang.org/conduct).

examples/list/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"os"
1313

14-
"github.com/DataDog/go-python3"
14+
python3 "github.com/go-python/cpy3"
1515
)
1616

1717
func main() {

examples/python3/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"os"
1313

14-
"github.com/DataDog/go-python3"
14+
python3 "github.com/go-python/cpy3"
1515
)
1616

1717
func main() {

script/variadic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"fmt"
1313
"os"
1414

15-
python "github.com/DataDog/go-python3"
15+
python "github.com/go-python/cpy3"
1616
)
1717

1818
var (

0 commit comments

Comments
 (0)