Metadata-Version: 2.1
Name: setuptools_golang_examples
Version: 2.2.0
Summary: Examples for https://github.com/asottile/setuptools-golang
Home-page: https://github.com/asottile/setuptools-golang-examples
Author: Anthony Sottile
Author-email: asottile@umich.edu
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.1
Description-Content-Type: text/markdown
License-File: LICENSE

[![Build Status](https://asottile.visualstudio.com/asottile/_apis/build/status/asottile.setuptools-golang-examples?branchName=master)](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=12&branchName=master)
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/12/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=12&branchName=master)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/setuptools-golang-examples/master.svg)](https://results.pre-commit.ci/latest/github/asottile/setuptools-golang-examples/master)

setuptools-golang-examples
==========================

A few examples utilizing [setuptools-golang](https://github.com/asottile/setuptools-golang).

## `c_module`

- Demonstrates that you can mix go extensions with c extensions seamlessly.

## `go_sum`

- A very basic hello-world-y demo
- This example is roughly lifted from @[FiloSottile](https://github.com/FiloSottile)'s [blog post](https://blog.filippo.io/building-python-modules-with-go-1-5/)

## `hello_lib`

- This module demonstrates importing go code within the project.

## `red`

- This module demonstrates importing external code (in this case [ansi](https://github.com/mgutz/ansi))

## `sum_pure_go`

- This module demonstrates it is possible to write an extension using only go
  files.
- It's slightly cheaty in that one of the go files is entirely a C header.
- You could instead do something similar to [this example](https://blog.filippo.io/building-python-modules-with-go-1-5/#bonustheneedlesslyhardway)
  but it's much more difficult to support multiple versions of python.


