Skip to content

Commit 1ad6371

Browse files
committed
Add conda-forge info to readme
- badge - link to package and recipe - resolves #32 Also bump cibuildwheel version and use `macos-latest` instead of `macos-14` in CI
1 parent e69ce1e commit 1ad6371

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/pypi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
11+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
1212
steps:
1313
- uses: actions/checkout@v4
1414

1515
- name: Build wheels
16-
uses: pypa/cibuildwheel@v2.17
16+
uses: pypa/cibuildwheel@v2.18
1717

1818
- uses: actions/upload-artifact@v4
1919
with:

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
44
[![PyPI Release](https://img.shields.io/pypi/v/pybind11-numpy-example.svg)](https://pypi.org/project/pybind11-numpy-example)
5+
[![Conda Release](https://img.shields.io/conda/dn/conda-forge/pybind11-numpy-example)](https://anaconda.org/conda-forge/pybind11-numpy-example)
56
[![Python Versions](https://img.shields.io/pypi/pyversions/pybind11-numpy-example)](https://pypi.org/project/pybind11-numpy-example)
67
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/lkeegan/pybind11-numpy-example/ci.yml?branch=main)](https://github.com/lkeegan/pybind11-numpy-example/actions/workflows/ci.yml)
78
[![Documentation Status](https://readthedocs.org/projects/pybind11-numpy-example/badge/)](https://pybind11-numpy-example.readthedocs.io/)
89

910
# What
1011

11-
A simple example of how to use [pybind11](https://github.com/pybind/pybind11) with [numpy](https://numpy.org/).
12+
A simple example of how to use [pybind11](https://github.com/pybind/pybind11) with [numpy](https://numpy.org/) and publish this as a library on [PyPI](https://pypi.org/project/pybind11-numpy-example/) and [conda-forge](https://anaconda.org/conda-forge/pybind11-numpy-example).
1213

1314
This C++/Python library creates a `std::vector` of 16-bit ints,
1415
and provides a Python interface to the contents of this vector in a few different ways:
@@ -37,6 +38,8 @@ and uses [scikit-build-core](https://github.com/scikit-build/scikit-build-core).
3738
Each tagged commit triggers a [GitHub action job](https://github.com/ssciwr/pybind11-numpy-example/actions/workflows/pypi.yml)
3839
which uses [cibuildwheel](https://cibuildwheel.readthedocs.io/) to build and upload wheels to [PyPI](https://pypi.org/project/pybind11-numpy-example/).
3940

41+
The [conda-forge package](https://anaconda.org/conda-forge/pybind11-numpy-example) is generated from [this recipe](https://github.com/conda-forge/pybind11-numpy-example-feedstock/blob/main/recipe/meta.yaml).
42+
4043
The scripts used to generate the above plots are in [scripts](https://github.com/ssciwr/pybind11-numpy-example/tree/main/scripts).
4144

4245
This repo was quickly set up using the SSC [C++ Project Cookiecutter](https://github.com/ssciwr/cookiecutter-cpp-project).

0 commit comments

Comments
 (0)