Skip to content

Commit 9d26f33

Browse files
committed
Use pypi trusted publisher
- cibuildwheel -> 2.15 (builds python 3.12 wheels) - set up repo as trusted publisher on pypi, remove API token - bump version to 0.0.6
1 parent f7bfa4f commit 9d26f33

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Diff for: .github/workflows/pypi.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414

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

1818
- uses: actions/upload-artifact@v3
1919
with:
@@ -22,6 +22,7 @@ jobs:
2222
upload_pypi:
2323
needs: [build-wheels]
2424
runs-on: ubuntu-latest
25+
environment: release
2526
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
2627
steps:
2728
- uses: actions/download-artifact@v3
@@ -31,6 +32,4 @@ jobs:
3132

3233
- uses: pypa/gh-action-pypi-publish@release/v1
3334
with:
34-
user: __token__
35-
password: ${{ secrets.PYPI_API_TOKEN }}
3635
verbose: true

Diff for: .pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ repos:
88
- id: mixed-line-ending
99

1010
- repo: https://github.com/psf/black
11-
rev: 23.3.0
11+
rev: 23.7.0
1212
hooks:
1313
- id: black
1414

1515
- repo: https://github.com/cheshirekow/cmake-format-precommit
1616
rev: v0.6.13
1717
hooks:
1818
- id: cmake-format
19-
additional_dependencies: [pyyaml==5.4.1]
19+
additional_dependencies: [pyyaml]
2020

2121
- repo: https://github.com/kynan/nbstripout
2222
rev: 0.6.1
@@ -29,7 +29,7 @@ repos:
2929
- id: clang-format
3030

3131
- repo: https://github.com/pre-commit/mirrors-prettier
32-
rev: v3.0.0-alpha.9-for-vscode
32+
rev: v3.0.1
3333
hooks:
3434
- id: prettier
3535
ci:

Diff for: CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
cmake_minimum_required(VERSION 3.15..3.25)
1+
cmake_minimum_required(VERSION 3.15..3.26)
22

33
# Set a name and a version number for your project:
44
project(
55
pybind11-numpy-example
6-
VERSION 0.0.5
6+
VERSION 0.0.6
77
LANGUAGES CXX)
88

99
# Initialize some default paths

Diff for: pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "pybind11-numpy-example"
7-
version = "0.0.5"
7+
version = "0.0.6"
88
description = "An example of using numpy with pybind11"
99
readme = "README.md"
1010
license = {text = "MIT"}
@@ -18,6 +18,7 @@ classifiers=[
1818
"Programming Language :: Python :: 3.9",
1919
"Programming Language :: Python :: 3.10",
2020
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
2122
"Programming Language :: Python :: Implementation :: CPython",
2223
"Programming Language :: Python :: Implementation :: PyPy",
2324
"Operating System :: MacOS :: MacOS X",
@@ -41,4 +42,4 @@ BUILD_DOCS = "OFF"
4142
[tool.cibuildwheel]
4243
test-extras = "test"
4344
test-command = "python -m pytest {project}/python/tests -v"
44-
test-skip = "pp* *-musllinux* *-manylinux_i686"
45+
test-skip = "pp* *-musllinux* *-manylinux_i686 cp312-*"

0 commit comments

Comments
 (0)