Skip to content

Commit 729bfb8

Browse files
feat: update gyp-next to v0.22.3 (#3361)
Co-authored-by: gengjiawen <technicalcute@gmail.com>
1 parent 79048c9 commit 729bfb8

14 files changed

Lines changed: 205 additions & 71 deletions

‎eslint.config.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
'use strict'
22

3-
module.exports = require('neostandard')({})
3+
module.exports = require('neostandard')({
4+
// gyp/ is vendored from gyp-next and follows its own style
5+
ignores: ['gyp/**']
6+
})

‎gyp/.github/dependabot.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ updates:
1010
- "*" # Group all Actions updates into a single larger pull request
1111
schedule:
1212
interval: weekly
13-
cooldown:
14-
default-days: 7
1513
- package-ecosystem: "pip"
1614
directory: "/"
1715
groups:
@@ -20,5 +18,3 @@ updates:
2018
- "*" # Group all pip updates into a single larger pull request
2119
schedule:
2220
interval: weekly
23-
cooldown:
24-
default-days: 7

‎gyp/.github/workflows/node-gyp.yml‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,41 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
node-gyp-integration:
912
strategy:
1013
fail-fast: false
1114
matrix:
1215
os: [macos-latest, ubuntu-latest, windows-latest]
13-
python-version: ["3.10", "3.12", "3.14"]
16+
python-version: ["3.11", "3.13", "3.15"]
1417
include:
15-
- os: macos-15-intel # macOS on Intel
16-
python-version: "3.14"
18+
- os: macos-26-intel # macOS on Intel
19+
python-version: 3.x
1720
- os: ubuntu-24.04-arm # Ubuntu on ARM
18-
python-version: "3.14"
21+
python-version: 3.x
1922
- os: windows-11-arm # Windows on ARM
20-
python-version: "3.14"
23+
python-version: 3.x
24+
- os: windows-2025-vs2026 # Windows with Visual Studio 2026
25+
python-version: 3.x
2126
runs-on: ${{ matrix.os }}
2227
steps:
2328
- name: Clone gyp-next
24-
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
29+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2530
with:
2631
path: gyp-next
27-
persist-credentials: false
2832
- name: Clone nodejs/node-gyp
29-
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
33+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3034
with:
3135
repository: nodejs/node-gyp
3236
path: node-gyp
3337
persist-credentials: false
34-
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
38+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
3539
with:
3640
node-version: "lts/*"
37-
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
41+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3842
with:
3943
python-version: ${{ matrix.python-version }}
4044
allow-prereleases: true
@@ -46,6 +50,7 @@ jobs:
4650
pip uninstall -y gyp-next
4751
- name: Install Node.js dependencies
4852
run: |
53+
npm install --global npm@12
4954
cd node-gyp
5055
npm install --no-progress
5156
- name: Replace gyp in node-gyp
@@ -57,10 +62,10 @@ jobs:
5762
if: runner.os != 'Windows'
5863
run: |
5964
cd node-gyp
60-
npm test --python="${pythonLocation}/python"
65+
npm test
6166
- name: Run tests (Windows)
6267
if: runner.os == 'Windows'
6368
shell: pwsh
6469
run: |
6570
cd node-gyp
66-
npm run test --python="${env:pythonLocation}\\python.exe"
71+
npm run test

‎gyp/.github/workflows/nodejs.yml‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,37 @@ on:
33
push:
44
pull_request:
55
workflow_dispatch:
6-
6+
permissions: {}
77
jobs:
88
nodejs-integration:
99
strategy:
1010
fail-fast: false
1111
matrix:
1212
os: [macos-latest, ubuntu-latest, windows-latest]
13-
python-version: ["3.10", "3.12", "3.14"]
13+
python-version: ["3.11", "3.13", "3.15"]
1414
include:
15-
- os: macos-15-intel # macOS on Intel
16-
python-version: "3.14"
15+
- os: macos-26-intel # macOS on Intel
16+
python-version: 3.x
1717
- os: ubuntu-24.04-arm # Ubuntu on ARM
18-
python-version: "3.14"
18+
python-version: 3.x
1919
- os: windows-11-arm # Windows on ARM
20-
python-version: "3.14"
20+
python-version: 3.x
21+
- os: windows-2025-vs2026 # Windows with Visual Studio 2026
22+
python-version: 3.x
2123

2224
runs-on: ${{ matrix.os }}
2325
steps:
2426
- name: Clone gyp-next
25-
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2628
with:
2729
path: gyp-next
28-
persist-credentials: false
2930
- name: Clone nodejs/node
30-
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
31+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3132
with:
3233
repository: nodejs/node
3334
path: node
3435
persist-credentials: false
35-
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
36+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3637
with:
3738
python-version: ${{ matrix.python-version }}
3839
allow-prereleases: true
@@ -54,7 +55,7 @@ jobs:
5455
if: runner.os == 'Windows'
5556
run: choco install nasm
5657
- name: Run configure
57-
if: runner.os == 'Windows'
58+
if: runner.os == 'Windows' && matrix.python-version != '3.15'
5859
run: |
5960
cd node
6061
./vcbuild.bat nobuild

‎gyp/.github/workflows/python_tests.yml‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,45 @@ on:
55
push:
66
pull_request:
77
workflow_dispatch:
8-
8+
permissions: {}
99
jobs:
1010
Python_lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
13+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1414
with:
1515
persist-credentials: false
1616
- name: Lint with ruff # See pyproject.toml for settings
17-
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
17+
uses: astral-sh/ruff-action@278981a28ce3188b1e39527901f38254bf3aac89 # v4.1.0
1818
- run: ruff format --check --diff
19-
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
19+
- uses: wagoid/commitlint-github-action@v6
2020

2121
Python_tests:
2222
runs-on: ${{ matrix.os }}
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
os: [macos-15-intel, macos-latest, ubuntu-latest, windows-latest]
27-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
26+
os: [macos-latest, ubuntu-latest, windows-latest]
27+
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
2828
include:
29-
- os: macos-26
29+
- os: macos-26-intel # macOS on Intel
3030
python-version: 3.x
3131
- os: ubuntu-24.04-arm # Ubuntu on ARM
3232
python-version: 3.x
3333
- os: windows-11-arm # Windows on ARM
3434
python-version: 3.x
35+
- os: windows-2025-vs2026 # Windows with Visual Studio 2026
36+
python-version: 3.x
3537
steps:
36-
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
38+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3739
with:
3840
persist-credentials: false
3941
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
42+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
4143
with:
4244
python-version: ${{ matrix.python-version }}
4345
allow-prereleases: true
44-
- uses: seanmiddleditch/gha-setup-ninja@3b1f8f94a2f8254bd26914c4ab9474d4f0015f67 # v6
46+
- uses: seanmiddleditch/gha-setup-ninja@v6
4547
- name: Install dependencies
4648
run: |
4749
python -m pip install --upgrade pip

‎gyp/.github/workflows/release-please.yml‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
branches:
44
- main
55

6+
permissions: {}
7+
68
name: release-please
79
jobs:
810
release-please:
@@ -14,7 +16,7 @@ jobs:
1416
contents: write
1517
pull-requests: write
1618
steps:
17-
- uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1
19+
- uses: google-github-actions/release-please-action@v4
1820
id: release
1921

2022
build:
@@ -24,13 +26,13 @@ jobs:
2426
if: ${{ needs.release-please.outputs.release_created }} # only publish on release
2527
runs-on: ubuntu-latest
2628
steps:
27-
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
29+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2830
with:
2931
persist-credentials: false
3032
- name: Build a binary wheel and a source tarball
3133
run: pipx run build
3234
- name: Store the distribution packages
33-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
35+
uses: actions/upload-artifact@v7
3436
with:
3537
name: python-package-distributions
3638
path: dist/
@@ -50,12 +52,12 @@ jobs:
5052
id-token: write # IMPORTANT: mandatory for trusted publishing
5153
steps:
5254
- name: Download all the dists
53-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
55+
uses: actions/download-artifact@v8
5456
with:
5557
name: python-package-distributions
5658
path: dist/
5759
- name: Publish distribution to PyPI
58-
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
60+
uses: pypa/gh-action-pypi-publish@release/v1
5961

6062
github-release:
6163
name: >-
@@ -70,24 +72,24 @@ jobs:
7072
id-token: write # IMPORTANT: mandatory for sigstore
7173
steps:
7274
- name: Download all the dists
73-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
75+
uses: actions/download-artifact@v8
7476
with:
7577
name: python-package-distributions
7678
path: dist/
7779
- name: Sign the dists with Sigstore
78-
uses: sigstore/gh-action-sigstore-python@04cffa1d795717b140764e8b640de88853c92acc # v3.3.0
80+
uses: sigstore/gh-action-sigstore-python@790bc6befb9d733738f18d8f895854b453640ec9 # v3.5.0
7981
with:
8082
inputs: >-
8183
./dist/*.tar.gz
8284
./dist/*.whl
8385
- name: Upload artifact signatures to GitHub Release
8486
env:
8587
GITHUB_TOKEN: ${{ github.token }}
86-
TAG_NAME: ${{ needs.release-please.outputs.tag_name }}
88+
NEEDS_RELEASE_PLEASE_OUTPUTS_TAG_NAME: ${{ needs.release-please.outputs.tag_name }}
8789
# Upload to GitHub Release using the `gh` CLI.
8890
# `dist/` contains the built packages, and the
8991
# sigstore-produced signatures and certificates.
9092
run: >-
9193
gh release upload
92-
${TAG_NAME} dist/**
94+
${NEEDS_RELEASE_PLEASE_OUTPUTS_TAG_NAME} dist/**
9395
--repo '${{ github.repository }}'

‎gyp/.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.22.2"
2+
".": "0.22.3"
33
}

‎gyp/CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [0.22.3](https://github.com/nodejs/gyp-next/compare/v0.22.2...v0.22.3) (2026-09-29)
4+
5+
6+
### Bug Fixes
7+
8+
* add Python 3.15 beta to the testing ([#344](https://github.com/nodejs/gyp-next/issues/344)) ([bb6522f](https://github.com/nodejs/gyp-next/commit/bb6522fbacc620da2cc382484d75c75ee35d780c))
9+
* **ci:** add zizmor security linter for github actions ([#358](https://github.com/nodejs/gyp-next/issues/358)) ([3d4c42b](https://github.com/nodejs/gyp-next/commit/3d4c42b386582df54368c29fcd7c3121737451a2))
10+
* **ci:** enable Python 3.15 release candidate on Windows ([#357](https://github.com/nodejs/gyp-next/issues/357)) ([e2080d2](https://github.com/nodejs/gyp-next/commit/e2080d25c31a0c1f08178a52802be7fd56848376))
11+
* **ci:** test on npm@12 ([#359](https://github.com/nodejs/gyp-next/issues/359)) ([1729f6e](https://github.com/nodejs/gyp-next/commit/1729f6e3bf8071d95cda85129cdf4ebab0a877ef))
12+
* **ci:** update ruff github aactio to v4.0.0 ([#348](https://github.com/nodejs/gyp-next/issues/348)) ([8d213cd](https://github.com/nodejs/gyp-next/commit/8d213cd35cec96e91dc98359ccd247404f71f27b))
13+
* **cmake:** add a dummy source to libraries without sources ([#362](https://github.com/nodejs/gyp-next/issues/362)) ([391165e](https://github.com/nodejs/gyp-next/commit/391165e76f682a318216b8b5c6ca1de0ef5f8f24))
14+
* **cmake:** require CMake 3.10 and quote custom command comments ([#361](https://github.com/nodejs/gyp-next/issues/361)) ([b418211](https://github.com/nodejs/gyp-next/commit/b418211c49705c0fb42177b666c140cf96d0149f))
15+
* write pch cflags as a list instead of a map object ([#355](https://github.com/nodejs/gyp-next/issues/355)) ([fe8188c](https://github.com/nodejs/gyp-next/commit/fe8188c6af0cf53488960b0ec655b1dcc01a7c94))
16+
317
## [0.22.2](https://github.com/nodejs/gyp-next/compare/v0.22.1...v0.22.2) (2026-04-22)
418

519

‎gyp/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ When used as a command line utility, __gyp-next__ can also be installed with [pi
1111
* `uv tool install gyp-next`
1212
```
1313
Installing to a new venv 'gyp-next'
14-
installed package gyp-next 0.13.0, installed using Python 3.10.6
14+
installed package gyp-next 0.13.0, installed using Python 3.14.7
1515
These apps are now globally available
1616
- gyp
1717
done! ✨ 🌟 ✨

‎gyp/commitlint.config.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-max-line-length': [0, 'always'],
5+
},
6+
};

0 commit comments

Comments
 (0)