From 90acd73860d6374f2e71d63396c2402fae33ab2e Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Tue, 24 May 2022 16:11:47 +0200 Subject: [PATCH] all: rename master into main Signed-off-by: Sebastien Binet --- .github/workflows/ci.yml | 4 ++-- CONTRIBUTE.md | 6 +++--- README.md | 14 +++++++------- examples/embedding/README.md | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1adebcbc..8b6f2a2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] schedule: - cron: '0 2 * * 1-5' diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 567247e4..76c93fd3 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -40,9 +40,9 @@ If it is large, such as suggesting a new repository, sub-repository, or interfac ### Your First Code Contribution If you are a new contributor, *thank you!* -Before your first merge, you will need to be added to the [CONTRIBUTORS](https://github.com/go-python/license/blob/master/CONTRIBUTORS) and [AUTHORS](https://github.com/go-python/license/blob/master/AUTHORS) files. +Before your first merge, you will need to be added to the [CONTRIBUTORS](https://github.com/go-python/license/blob/main/CONTRIBUTORS) and [AUTHORS](https://github.com/go-python/license/blob/main/AUTHORS) files. Open a pull request adding yourself to these files. -All `go-python` code follows the BSD license in the [license document](https://github.com/go-python/license/blob/master/LICENSE). +All `go-python` code follows the BSD license in the [license document](https://github.com/go-python/license/blob/main/LICENSE). We prefer that code contributions do not come with additional licensing. For exceptions, added code must also follow a BSD license. @@ -88,7 +88,7 @@ Please always format your code with [goimports](https://godoc.org/golang.org/x/t Best is to have it invoked as a hook when you save your `.go` files. Files in the `go-python` repository don't list author names, both to avoid clutter and to avoid having to keep the lists up to date. -Instead, your name will appear in the change log and in the [CONTRIBUTORS](https://github.com/go-python/license/blob/master/CONTRIBUTORS) and [AUTHORS](https://github.com/go-python/license/blob/master/AUTHORS) files. +Instead, your name will appear in the change log and in the [CONTRIBUTORS](https://github.com/go-python/license/blob/main/CONTRIBUTORS) and [AUTHORS](https://github.com/go-python/license/blob/main/AUTHORS) files. New files that you contribute should use the standard copyright header: diff --git a/README.md b/README.md index 802619bc..883ae510 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # gpython [![Build Status](https://github.com/go-python/gpython/workflows/CI/badge.svg)](https://github.com/go-python/gpython/actions) -[![codecov](https://codecov.io/gh/go-python/gpython/branch/master/graph/badge.svg)](https://codecov.io/gh/go-python/gpython) +[![codecov](https://codecov.io/gh/go-python/gpython/branch/main/graph/badge.svg)](https://codecov.io/gh/go-python/gpython) [![GoDoc](https://godoc.org/github.com/go-python/gpython?status.svg)](https://godoc.org/github.com/go-python/gpython) -[![License](https://img.shields.io/badge/License-BSD--3-blue.svg)](https://github.com/go-python/gpython/blob/master/LICENSE) +[![License](https://img.shields.io/badge/License-BSD--3-blue.svg)](https://github.com/go-python/gpython/blob/main/LICENSE) gpython is a part re-implementation, part port of the Python 3.4 interpreter in Go. Although there are many areas of improvement, @@ -54,7 +54,7 @@ gpython currently: - Supports concurrent multi-interpreter ("multi-context") execution Speed hasn't been a goal of the conversions however it runs pystone at -about 20% of the speed of CPython. A [π computation test](https://github.com/go-python/gpython/tree/master/examples/pi_chudnovsky_bs.py) runs quicker under +about 20% of the speed of CPython. A [π computation test](https://github.com/go-python/gpython/tree/main/examples/pi_chudnovsky_bs.py) runs quicker under gpython as the Go long integer primitives are likely faster than the Python ones. @@ -63,15 +63,15 @@ you know would be interested to take it futher, it would be much appreciated. ## Getting Started -The [embedding example](https://github.com/go-python/gpython/tree/master/examples/embedding) demonstrates how to +The [embedding example](https://github.com/go-python/gpython/tree/main/examples/embedding) demonstrates how to easily embed and invoke gpython from any Go application. Of interest, gpython is able to run multiple interpreter instances simultaneously, allowing you to embed gpython naturally into your Go application. This makes it possible to use gpython in a server situation where complete interpreter -independence is paramount. See this in action in the [multi-context example](https://github.com/go-python/gpython/tree/master/examples/multi-context). +independence is paramount. See this in action in the [multi-context example](https://github.com/go-python/gpython/tree/main/examples/multi-context). -If you are looking to get involved, a light and easy place to start is adding more convenience functions to [py/util.go](https://github.com/go-python/gpython/tree/master/py/util.go). See [notes.txt](https://github.com/go-python/gpython/blob/master/notes.txt) for bigger ideas. +If you are looking to get involved, a light and easy place to start is adding more convenience functions to [py/util.go](https://github.com/go-python/gpython/tree/main/py/util.go). See [notes.txt](https://github.com/go-python/gpython/blob/main/notes.txt) for bigger ideas. ## Other Projects of Interest @@ -88,4 +88,4 @@ or on the [Gophers Slack](https://gophers.slack.com/) in the `#go-python` channe This is licensed under the MIT licence, however it contains code which was ported fairly directly directly from the CPython source code under -the [PSF LICENSE](https://github.com/python/cpython/blob/master/LICENSE). +the [PSF LICENSE](https://github.com/python/cpython/blob/main/LICENSE). diff --git a/examples/embedding/README.md b/examples/embedding/README.md index 9c13d748..93a300aa 100644 --- a/examples/embedding/README.md +++ b/examples/embedding/README.md @@ -98,5 +98,5 @@ Spring Break itinerary: - `main.go` demonstrates high-level convenience functions such as `py.RunFile()`. - Embedding a Go `struct` as a Python object only requires that it implement `py.Object`, which is a single function: `Type() *py.Type` - - See [py/run.go](https://github.com/go-python/gpython/tree/master/py/run.go) for more about interpreter instances and `py.Context` - - Helper functions are available in [py/util.go](https://github.com/go-python/gpython/tree/master/py/util.go) and your contributions are welcome! + - See [py/run.go](https://github.com/go-python/gpython/tree/main/py/run.go) for more about interpreter instances and `py.Context` + - Helper functions are available in [py/util.go](https://github.com/go-python/gpython/tree/main/py/util.go) and your contributions are welcome!