Skip to content

Commit aeac6a7

Browse files
authored
Merge branch 'main' into engines-and-deps
2 parents 665e446 + 6f3c2d3 commit aeac6a7

File tree

8 files changed

+32
-10
lines changed

8 files changed

+32
-10
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
pull_request:
99
branches: [ main ]
1010
jobs:
11+
Lint_Python:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- run: pip install --user ruff
16+
- run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="PLC1901,S101,UP031" --target-version=py37 .
1117
Tests:
1218
strategy:
1319
fail-fast: false
@@ -33,15 +39,12 @@ jobs:
3339
- name: Install Dependencies
3440
run: |
3541
npm install --no-progress
36-
pip install flake8 pytest
42+
pip install pytest
3743
- name: Set Windows environment
3844
if: startsWith(matrix.os, 'windows')
3945
run: |
4046
echo 'GYP_MSVS_VERSION=2015' >> $Env:GITHUB_ENV
4147
echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV
42-
- name: Lint Python
43-
if: startsWith(matrix.os, 'ubuntu')
44-
run: flake8 . --ignore=E203,W503 --max-complexity=101 --max-line-length=88 --show-source --statistics
4548
- name: Run Python tests
4649
run: python -m pytest
4750
# - name: Run doctests with pytest

CHANGELOG.md

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

3+
### [9.3.1](https://www.github.com/nodejs/node-gyp/compare/v9.3.0...v9.3.1) (2022-12-16)
4+
5+
6+
### Bug Fixes
7+
8+
* increase node 12 support to ^12.13 ([#2771](https://www.github.com/nodejs/node-gyp/issues/2771)) ([888efb9](https://www.github.com/nodejs/node-gyp/commit/888efb9055857afee6a6b54550722cf9ae3ee323))
9+
10+
11+
### Miscellaneous
12+
13+
* update python test matrix ([#2774](https://www.github.com/nodejs/node-gyp/issues/2774)) ([38f01fa](https://www.github.com/nodejs/node-gyp/commit/38f01fa57d10fdb3db7697121d957bc2e0e96508))
14+
315
## [9.3.0](https://www.github.com/nodejs/node-gyp/compare/v9.2.0...v9.3.0) (2022-10-10)
416

517

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Install tools and configuration manually:
5353
* Install Visual C++ Build Environment: [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools)
5454
(using "Visual C++ build tools" workload) or [Visual Studio Community](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community)
5555
(using the "Desktop development with C++" workload)
56-
* Launch cmd, `npm config set msvs_version 2017`
5756

5857
If the above steps didn't work for you, please visit [Microsoft's Node.js Guidelines for Windows](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules) for additional tips.
5958

docs/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ Please look thru your error log for the string `gyp info using node-gyp@` and if
44

55
## `node-sass` is deprecated
66

7-
Please be aware that the package [`node-sass` is deprecated](https://github.com/sass/node-sass#node-sass) so you should actively seek alternatives. Please avoid opening new `node-sass` issues on this repo. You can try `npm install --global node-sass@latest` but we [cannot help much](https://github.com/nodejs/node-gyp/issues?q=is%3Aissue+label%3A%22Node+Sass+--%3E+Dart+Sass%22+) here.
7+
Please be aware that the package [`node-sass` is deprecated](https://github.com/sass/node-sass#node-sass) so you should actively seek alternatives. You can try:
8+
```
9+
npm uninstall node-sass
10+
npm install sass --save
11+
# or ...
12+
npm install --global node-sass@latest
13+
```
14+
`node-sass` projects _may_ work by downgrading to Node.js v14 but [that release is end-of-life](https://github.com/nodejs/release#release-schedule).
15+
But in any case, please avoid opening new `node-sass` issues on this repo because we [cannot help much](https://github.com/nodejs/node-gyp/issues?q=is%3Aissue+label%3A%22Node+Sass+--%3E+Dart+Sass%22+).
816

917
## Issues finding the installed Visual Studio
1018

gyp/pylib/gyp/generator/eclipse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import gyp.common
2525
import gyp.msvs_emulation
2626
import shlex
27-
import xml.etree.cElementTree as ET
27+
import xml.etree.ElementTree as ET
2828

2929
generator_wants_static_library_dependencies_adjusted = False
3030

gyp/pylib/gyp/xcodeproj_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,7 @@ def __init__(self, properties=None, id=None, parent=None, path=None):
27702770
self.path = path
27712771
self._other_pbxprojects = {}
27722772
# super
2773-
return XCContainerPortal.__init__(self, properties, id, parent)
2773+
XCContainerPortal.__init__(self, properties, id, parent)
27742774

27752775
def Name(self):
27762776
name = self.path

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bindings",
1212
"gyp"
1313
],
14-
"version": "9.3.0",
14+
"version": "9.3.1",
1515
"installVersion": 9,
1616
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",
1717
"repository": {

update-gyp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
4949
if not is_within_directory(path, member_path):
5050
raise Exception("Attempted Path Traversal in Tar File")
5151

52-
tar.extractall(path, members, numeric_owner)
52+
tar.extractall(path, members, numeric_owner=numeric_owner)
5353

5454
safe_extract(tar_ref, unzip_target)
5555

0 commit comments

Comments
 (0)