Skip to content

Commit 848e950

Browse files
feat: update gyp-next to v0.20.5 (#3222)
1 parent 085b445 commit 848e950

File tree

17 files changed

+69
-48
lines changed

17 files changed

+69
-48
lines changed

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

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,21 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
node-version: ["22"]
1312
os: [macos-latest, ubuntu-latest, windows-latest]
14-
python-version: ["3.9", "3.11", "3.13"]
13+
python-version: ["3.10", "3.12", "3.14"]
14+
exclude:
15+
# Windows on Python 3.14 is blocked by nodejs/node#59983
16+
- os: windows-latest
17+
python-version: "3.14"
1518
include:
16-
- node-version: "22"
17-
os: macos-13 # macOS on Intel
18-
python-version: "3.13"
19-
- node-version: "22"
20-
os: ubuntu-24.04-arm # Ubuntu on ARM
21-
python-version: "3.13"
22-
- node-version: "22"
23-
os: windows-11-arm # Windows on ARM
19+
- os: windows-latest # Windows on Python 3.13 instead of 3.14
2420
python-version: "3.13"
21+
- os: macos-15-intel # macOS on Intel
22+
python-version: "3.14"
23+
- os: ubuntu-24.04-arm # Ubuntu on ARM
24+
python-version: "3.14"
25+
- os: windows-11-arm # Windows on ARM
26+
python-version: "3.13" # Windows on Python 3.13 instead of 3.14
2527
runs-on: ${{ matrix.os }}
2628
steps:
2729
- name: Clone gyp-next
@@ -33,10 +35,10 @@ jobs:
3335
with:
3436
repository: nodejs/node-gyp
3537
path: node-gyp
36-
- uses: actions/setup-node@v4
38+
- uses: actions/setup-node@v5
3739
with:
38-
node-version: ${{ matrix.node-version }}
39-
- uses: actions/setup-python@v5
40+
node-version: "lts/*"
41+
- uses: actions/setup-python@v6
4042
with:
4143
python-version: ${{ matrix.python-version }}
4244
allow-prereleases: true

gyp/.github/workflows/nodejs.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [macos-latest, ubuntu-latest, windows-latest]
13-
python: ["3.9", "3.11", "3.13"]
13+
python-version: ["3.10", "3.12", "3.14"]
14+
exclude:
15+
# Windows on Python 3.14 is blocked by nodejs/node#59983
16+
- os: windows-latest
17+
python-version: "3.14"
1418
include:
15-
- os: macos-13 # macOS on Intel
19+
- os: windows-latest # Windows on Python 3.13 instead of 3.14
1620
python-version: "3.13"
21+
- os: macos-15-intel # macOS on Intel
22+
python-version: "3.14"
1723
- os: ubuntu-24.04-arm # Ubuntu on ARM
18-
python-version: "3.13"
24+
python-version: "3.14"
1925
- os: windows-11-arm # Windows on ARM
20-
python-version: "3.13"
26+
python-version: "3.13" # Windows on Python 3.13 instead of 3.14
2127

2228
runs-on: ${{ matrix.os }}
2329
steps:
@@ -30,9 +36,9 @@ jobs:
3036
with:
3137
repository: nodejs/node
3238
path: node
33-
- uses: actions/setup-python@v5
39+
- uses: actions/setup-python@v6
3440
with:
35-
python-version: ${{ matrix.python }}
41+
python-version: ${{ matrix.python-version }}
3642
allow-prereleases: true
3743
- name: Replace gyp in Node.js
3844
shell: bash

gyp/.github/workflows/python_tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ jobs:
1414
fail-fast: false
1515
max-parallel: 5
1616
matrix:
17-
os: [macos-13, macos-latest, ubuntu-latest] # , windows-latest]
18-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
17+
os: [macos-15-intel, macos-latest, ubuntu-latest] # , windows-latest]
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
19+
include:
20+
- os: macos-26
21+
python-version: 3.x
1922
steps:
2023
- uses: actions/checkout@v5
2124
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2326
with:
2427
python-version: ${{ matrix.python-version }}
2528
allow-prereleases: true

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.20.4"
2+
".": "0.20.5"
33
}

gyp/CHANGELOG.md

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

3+
## [0.20.5](https://github.com/nodejs/gyp-next/compare/v0.20.4...v0.20.5) (2025-10-13)
4+
5+
6+
### Bug Fixes
7+
8+
* Fix ruff v0.13.0 adds ruff rule RUF059 ([bd4491a](https://github.com/nodejs/gyp-next/commit/bd4491a3ba641eeb040b785bbce367f72c3baf19))
9+
* handle `None` case in xcode_emulation regexes ([#311](https://github.com/nodejs/gyp-next/issues/311)) ([b21ee31](https://github.com/nodejs/gyp-next/commit/b21ee3150eea9fc1a8811e910e5ba64f42e1fb77))
10+
311
## [0.20.4](https://github.com/nodejs/gyp-next/compare/v0.20.3...v0.20.4) (2025-08-25)
412

513

gyp/pylib/gyp/generator/android.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def WriteRules(self, rules, extra_sources, extra_outputs):
378378
inputs = rule.get("inputs")
379379
for rule_source in rule.get("rule_sources", []):
380380
(rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
381-
(rule_source_root, rule_source_ext) = os.path.splitext(
381+
(rule_source_root, _rule_source_ext) = os.path.splitext(
382382
rule_source_basename
383383
)
384384

gyp/pylib/gyp/generator/compile_commands_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def resolve(filename):
100100
def GenerateOutput(target_list, target_dicts, data, params):
101101
per_config_commands = {}
102102
for qualified_target, target in target_dicts.items():
103-
build_file, target_name, toolset = gyp.common.ParseQualifiedTarget(
103+
build_file, _target_name, _toolset = gyp.common.ParseQualifiedTarget(
104104
qualified_target
105105
)
106106
if IsMac(params):

gyp/pylib/gyp/generator/gypd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
def GenerateOutput(target_list, target_dicts, data, params):
7474
output_files = {}
7575
for qualified_target in target_list:
76-
[input_file, target] = gyp.common.ParseQualifiedTarget(qualified_target)[0:2]
76+
[input_file, _target] = gyp.common.ParseQualifiedTarget(qualified_target)[0:2]
7777

7878
if input_file[-4:] != ".gyp":
7979
continue

gyp/pylib/gyp/generator/make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ def WriteRules(
11691169
for rule_source in rule.get("rule_sources", []):
11701170
dirs = set()
11711171
(rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
1172-
(rule_source_root, rule_source_ext) = os.path.splitext(
1172+
(rule_source_root, _rule_source_ext) = os.path.splitext(
11731173
rule_source_basename
11741174
)
11751175

gyp/pylib/gyp/generator/msvs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ def _HandlePreCompiledHeaders(p, sources, spec):
16661666
p.AddFileConfig(
16671667
source, _ConfigFullName(config_name, config), {}, tools=[tool]
16681668
)
1669-
basename, extension = os.path.splitext(source)
1669+
_basename, extension = os.path.splitext(source)
16701670
if extension == ".c":
16711671
extensions_excluded_from_precompile = [".cc", ".cpp", ".cxx"]
16721672
else:
@@ -1677,7 +1677,7 @@ def DisableForSourceTree(source_tree):
16771677
if isinstance(source, MSVSProject.Filter):
16781678
DisableForSourceTree(source.contents)
16791679
else:
1680-
basename, extension = os.path.splitext(source)
1680+
_basename, extension = os.path.splitext(source)
16811681
if extension in extensions_excluded_from_precompile:
16821682
for config_name, config in spec["configurations"].items():
16831683
tool = MSVSProject.Tool(
@@ -3579,7 +3579,7 @@ def _AddSources2(
35793579
# If the precompiled header is generated by a C source,
35803580
# we must not try to use it for C++ sources,
35813581
# and vice versa.
3582-
basename, extension = os.path.splitext(precompiled_source)
3582+
_basename, extension = os.path.splitext(precompiled_source)
35833583
if extension == ".c":
35843584
extensions_excluded_from_precompile = [
35853585
".cc",

0 commit comments

Comments
 (0)