Skip to content

Commit 59d99e9

Browse files
committed
move to github.com/gotray/go-python
1 parent d3c2025 commit 59d99e9

37 files changed

+68
-2793
lines changed

.github/workflows/check.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
branches: [ "*" ]
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: '1.23'
24+
25+
- name: Install embedme
26+
run: npm install -g embedme
27+
28+
- name: Verify README.md embedded code
29+
run: npx embedme --verify README.md
30+
31+
- name: Check formatting
32+
run: |
33+
if [ -n "$(go fmt ./...)" ]; then
34+
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
35+
exit 1
36+
fi

.github/workflows/go.yml

+10-57
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,20 @@ on:
1010
branches: [ "main" ]
1111

1212
jobs:
13-
check:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
18-
- name: Set up Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: '20'
22-
23-
- name: Install embedme
24-
run: npm install -g embedme
25-
26-
- name: Verify README.md embedded code
27-
run: npx embedme --verify README.md
28-
29-
- name: Set up Go
30-
uses: actions/setup-go@v4
31-
with:
32-
go-version: '1.23'
33-
34-
- name: Check formatting
35-
run: |
36-
if [ -n "$(go fmt ./...)" ]; then
37-
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
38-
exit 1
39-
fi
40-
4113
build:
4214
continue-on-error: true
4315
strategy:
4416
fail-fast: false
4517
matrix:
46-
sys:
47-
- {os: macos-latest, shell: bash}
48-
- {os: ubuntu-24.04, shell: bash}
49-
- {os: windows-latest, shell: bash}
18+
os:
19+
- macos-latest
20+
- ubuntu-latest
21+
- windows-latest
5022
defaults:
5123
run:
52-
shell: ${{ matrix.sys.shell }}
53-
runs-on: ${{matrix.sys.os}}
24+
shell: bash
25+
runs-on: ${{matrix.os}}
5426
steps:
55-
# - uses: msys2/setup-msys2@v2
56-
# if: matrix.sys.os == 'windows-latest'
57-
# with:
58-
# update: true
59-
# install: >-
60-
# curl
61-
# git
62-
# pkg-config
63-
6427
- uses: actions/checkout@v4
6528

6629
- name: Set up Go
@@ -72,15 +35,15 @@ jobs:
7235
with:
7336
python-version: '3.13'
7437
update-environment: true
75-
38+
7639
- name: Generate Python pkg-config for windows (patch)
77-
if: matrix.sys.os == 'windows-latest'
40+
if: matrix.os == 'windows-latest'
7841
run: |
7942
mkdir -p $PKG_CONFIG_PATH
8043
cp .github/assets/python3-embed.pc $PKG_CONFIG_PATH/
81-
44+
8245
- name: Install tiny-pkg-config for windows (patch)
83-
if: matrix.sys.os == 'windows-latest'
46+
if: matrix.os == 'windows-latest'
8447
run: |
8548
set -x
8649
curl -L https://github.com/cpunion/tiny-pkg-config/releases/download/v0.2.0/tiny-pkg-config_Windows_x86_64.zip -o /tmp/tiny-pkg-config.zip
@@ -96,16 +59,6 @@ jobs:
9659

9760
- name: Test with coverage
9861
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
99-
100-
- name: Test gopy
101-
run: |
102-
set -x
103-
gopy init $HOME/foo
104-
cd $HOME/foo
105-
gopy build -v .
106-
export GP_INJECT_DEBUG=1
107-
gopy run -v .
108-
gopy install -v .
10962

11063
- name: Upload coverage to Codecov
11164
uses: codecov/codecov-action@v4

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# go-python: Write Python in Go - The most intuitive Python wrapper for Golang
22

3-
[![Build Status](https://github.com/cpunion/go-python/actions/workflows/go.yml/badge.svg)](https://github.com/cpunion/go-python/actions/workflows/go.yml)
4-
[![Coverage Status](https://codecov.io/github/cpunion/go-python/graph/badge.svg?token=DLVMvjAOFM)](https://codecov.io/github/cpunion/go-python)
3+
[![Build Status](https://github.com/gotray/go-python/actions/workflows/go.yml/badge.svg)](https://github.com/gotray/go-python/actions/workflows/go.yml)
4+
[![codecov](https://codecov.io/github/gotray/go-python/graph/badge.svg?token=TnaFHV1E3y)](https://codecov.io/github/gotray/go-python)
55
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/cpunion/go-python)
66
[![GitHub commits](https://badgen.net/github/commits/cpunion/go-python)](https://GitHub.com/Naereen/cpunion/go-python/commit/)
7-
[![GitHub release](https://img.shields.io/github/v/tag/cpunion/go-python.svg?label=release)](https://github.com/cpunion/go-python/releases)
8-
[![Go Report Card](https://goreportcard.com/badge/github.com/cpunion/go-python)](https://goreportcard.com/report/github.com/cpunion/go-python)
9-
[![Go Reference](https://pkg.go.dev/badge/github.com/cpunion/go-python.svg)](https://pkg.go.dev/github.com/cpunion/go-python)
7+
[![GitHub release](https://img.shields.io/github/v/tag/cpunion/go-python.svg?label=release)](https://github.com/gotray/go-python/releases)
8+
[![Go Report Card](https://goreportcard.com/badge/github.com/gotray/go-python)](https://goreportcard.com/report/github.com/gotray/go-python)
9+
[![Go Reference](https://pkg.go.dev/badge/github.com/gotray/go-python.svg)](https://pkg.go.dev/github.com/gotray/go-python)
1010

1111
## Goal
1212

@@ -57,7 +57,7 @@ See the [examples](demo).
5757
```go
5858
package main
5959

60-
import . "github.com/cpunion/go-python"
60+
import . "github.com/gotray/go-python"
6161

6262
func main() {
6363
Initialize()
@@ -75,7 +75,7 @@ func main() {
7575
```go
7676
package main
7777

78-
import . "github.com/cpunion/go-python"
78+
import . "github.com/gotray/go-python"
7979

8080
type plt struct {
8181
Module
@@ -113,7 +113,7 @@ package foo
113113
import (
114114
"fmt"
115115

116-
. "github.com/cpunion/go-python"
116+
. "github.com/gotray/go-python"
117117
)
118118

119119
type Point struct {
@@ -165,8 +165,8 @@ package main
165165
import (
166166
"fmt"
167167

168-
. "github.com/cpunion/go-python"
169-
"github.com/cpunion/go-python/demo/module/foo"
168+
. "github.com/gotray/go-python"
169+
"github.com/gotray/go-python/demo/module/foo"
170170
)
171171

172172
func main() {
@@ -235,7 +235,7 @@ import (
235235
"fmt"
236236
"os"
237237

238-
. "github.com/cpunion/go-python"
238+
. "github.com/gotray/go-python"
239239
)
240240

241241
/*

cmd/add.go

-39
This file was deleted.

cmd/build.go

-37
This file was deleted.

cmd/gopy/gopy.go

-10
This file was deleted.

0 commit comments

Comments
 (0)