SmallY
9fd7936f0d
docs: add the way to configuring Python dependency for Windows PowerShell ( #2996 )
2024-04-03 10:29:34 +01:00
github-actions[bot]
f90ce122fe
chore(main): release 10.1.0 ( #2989 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-25 11:04:31 -07:00
Hüseyin Açacak
c4729129da
lib: print Python executable path using UTF-8 ( #2995 )
...
* lib: print Python executable path using UTF-8
The Python executable path may have non-ASCII characters, which can make
the print function fail if the environment encoding is different. This fixes
this issue by using stdout.buffer, which can be used with UTF-8 encoding
for the output, regardless of the environment encoding.
Fixes: https://github.com/nodejs/node-gyp/issues/2829
* fixup! lib: print Python executable path using UTF-8
2024-03-13 09:20:35 -07:00
Christian Clauss
1205fb084c
Fix lint: ruff check --select=UP032 --fix ( #2994 )
2024-03-12 21:54:17 -07:00
Luke Karrys
fbf3fda875
Use new branch name format for release please CI tests
2024-03-08 15:59:51 -07:00
Ayushman Chhabra
0035d8e9dc
chore: upgrade release please action from v2 to v4 ( #2982 )
...
* chore(release-please-action): upgrade from v2 to v4
* chore(ci): remove target branch
* chore(release-please): disable `include-component-in-tag`
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
* chore(release-please): format JSON properties per line
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
* Remove last release sha
---------
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
Co-authored-by: Luke Karrys <luke@lukekarrys.com>
2024-03-06 14:03:52 -07:00
Stefan Stojanovic
391cc5b9b2
win: update supported vs versions ( #2959 )
...
Drop VS2017 support for Node.js v22 and above.
Refs: https://github.com/nodejs/build/pull/3603
Refs: https://github.com/nodejs/node/pull/45427
2024-03-06 17:32:44 +01:00
Jaroslav
109e3d4245
feat: improve visual studio detection ( #2957 )
...
Detect visual studio installation using the VSSetup module and
Get-VSSetupInstance method. It works even in systems with the
Constrained language mode of PowerShell.
2024-02-09 02:33:54 +01:00
Michael Dawson
329873141f
src: add support for locally installed headers ( #2964 )
...
Some linux distros allow headers to be installed through
tools like rpm. If the runtime sets
process.config.variables.use_prefix_to_find_headers, look
for matching headers based on the directory set for the
prefix in process.config.variables.prefix
Signed-off-by: Michael Dawson <midawson@redhat.com>
Co-authored-by: Luke Karrys <luke@lukekarrys.com>
2024-01-29 12:03:30 -07:00
Christian Clauss
7705a22f31
docs: npm is currently v10 ( #2970 )
2024-01-29 11:12:57 -07:00
Davee
a87d0bf458
refine readme Visual C++ Build Environment text for clarity ( #2965 )
...
* refine readme text for clarity
* refine readme Visual C++ build env for clarity
2024-01-25 21:23:49 +01:00
Christian Clauss
c24cead6e3
Revert "build(deps): bump google-github-actions/release-please-action from 2 to 4" ( #2967 )
2024-01-25 07:32:33 +01:00
dependabot[bot]
b1f1808bff
build(deps): bump google-github-actions/release-please-action ( #2961 )
...
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action ) from 2 to 4.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases )
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: google-github-actions/release-please-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 20:11:30 +01:00
dependabot[bot]
3f0df7e933
build(deps): bump actions/setup-python from 4 to 5 ( #2960 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 08:15:15 +01:00
Christian Clauss
7f58bc8144
Keep GitHub Actions up to date with Dependabot
...
* https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
2024-01-17 07:52:35 +01:00
Artur Yapparov
ae8478ec32
docs: remove outdated Node versions from readme ( #2955 )
...
Refs: https://github.com/nodejs/node-gyp/issues/2953
2023-12-25 14:07:56 +01:00
Luke Karrys
cff9ac2c30
chore: only run release please on push
...
And then run release-please tests on release PRs
2023-11-06 09:49:22 -07:00
Mike McCready
b42e796617
docs: remove outdated update engines.node reference in 10.0.0 changelog
2023-11-02 15:36:54 -04:00
github-actions[bot]
da19158e7a
chore: release 10.0.1
2023-11-02 14:13:49 -04:00
Richard Lau
b39e6819aa
fix: use local util
for findAccessibleSync()
...
The `findAccessibleSync()` function is in the local `util` module
instead of Node.js' builtin `util` module.
2023-11-02 12:14:29 -04:00
Luke Karrys
a68586a67d
chore: use platform specific timeouts in tests
2023-10-29 11:06:34 -07:00
Luke Karrys
4e0ed99256
chore: lint fixes
2023-10-29 10:45:50 -07:00
Luke Karrys
7de1f5f32d
chore: add parallel test logging
2023-10-29 10:29:40 -07:00
github-actions[bot]
4c302cad0e
chore: release 10.0.0 ( #2920 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-28 16:47:34 -07:00
Luke Karrys
3032e1061c
chore: run tests after release please PR
2023-10-28 16:24:46 -07:00
Luke Karrys
864a979930
feat!: use .npmignore file to limit which files are published ( #2921 )
...
* feat!: use package.json files to limit which files are published
Fixes : #2372
* Use npmignore instead of package.json#files
* Add update-gyp.py to npmignore
* Add install to pack test
* Use output var for pack dir
* Move existing .gitignore entries to .npmignore
* Sort git and npm ignores
* Update and cleanup workflows
2023-10-28 16:07:44 -07:00
Luke Karrys
4e493d4fb2
chore: misc testing fixes ( #2930 )
...
* chore: misc test fixes
* Sort test runs by os first
* Use cross-env for test env var
* Try sorting matrix params
* Make FAST_TEST the default and rename to FULL_TEST
* Separate helper functions to not need to export test obj in files
2023-10-28 14:13:10 -07:00
Luke Karrys
d52997e975
feat: convert internal classes from util.inherits to classes
...
BREAKING CHANGE: the `Gyp` class exported is now created using
ECMAScript classes and therefore might have small differences to classes
that were previously created with `util.inherits`.
2023-10-28 09:29:04 -07:00
Luke Karrys
355622f4aa
feat: convert all internal functions to async/await
...
BREAKING CHANGE: All internal functions have been coverted to return
promises and no longer accept callbacks. This is not a breaking change
for users but may be breaking to consumers of `node-gyp` if you are
requiring internal functions directly.
2023-10-28 08:59:57 -07:00
Luke Karrys
1b3bd341b4
feat!: drop node 14 support ( #2929 )
...
BREAKING CHANGE: `node-gyp` now supports node `^16.14.0 || >=18.0.0`
2023-10-27 21:18:49 -07:00
Luke Karrys
e388255314
deps: which@4.0.0 ( #2928 )
2023-10-27 21:12:59 -07:00
Luke Karrys
059bb6fd41
deps: make-fetch-happen@13.0.0 ( #2927 )
2023-10-27 21:12:49 -07:00
Luke Karrys
4bef1ecc75
deps: glob@10.3.10 ( #2926 )
2023-10-27 21:12:39 -07:00
Luke Karrys
21a7249b40
chore: add check engines script to CI ( #2922 )
2023-10-27 20:51:20 -07:00
DeeDeeG
707927cd57
feat(gyp): update gyp to v0.16.1 ( #2923 )
...
* feat(gyp): update gyp to v0.15.1
* Add Python 3.12 to tests
* Try to fix CI
* Try specifying msvs-version
* Modify the visual-studio matrix
* Fix pythonLocation var
* Fix Python tests
* Get path
* polish
* feat(gyp): update gyp to v0.16.0
* feat(gyp): update gyp to v0.16.1
* CI: Don't install Python 'packaging' module (vendored in 'gyp-next' now)
* Apply suggestions from code review
* Upgrade to actions/checkout@v4
---------
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-27 17:12:14 -07:00
David Sanders
d644ce4831
docs: update applicable GitHub links from master to main ( #2843 )
...
Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
2023-10-27 16:53:27 -07:00
Luke Karrys
4a50fe3157
chore: empty commit to add changelog entries from #2770
...
feat!: update engines.node to ^14.17.0 || ^16.13.0 || >=18.0.0
deps: nopt@^7.0.0
feat: replace npmlog with proc-log
deps: standard@17.0.0 and fix linting errors
deps: which@3.0.0
fix: promisify build command
deps: glob@8.0.3
feat: drop rimraf dependency
fix: use fs/promises in favor of fs.promises
2023-10-27 10:51:07 -07:00
Alex
26683e993d
chore: GitHub Workflows security hardening ( #2740 )
...
* build: harden tests.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
* build: harden release-please.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
* build: harden visual-studio.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
* Update release-please.yml
---------
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2023-10-27 10:45:09 -07:00
Christian Clauss
91fd8ffe6a
Python lint: ruff --format is now --output-format
...
Fixes the failing `ruff` linting in GitHub Actions.
2023-10-27 10:52:08 +02:00
DeeDeeG
b3d41aeb73
doc: Add note about Python symlinks (PR 2362) to CHANGELOG.md for 9.1.0 ( #2783 )
...
The PR for this change was merged without a prefixed name,
such as "lib:" or "fix:". That means release-please
didn't include it in the changelog for v9.1.0.
This change did end up affecting users, though. (See issue 2713
and PR 2721). Therefore, I believe it should be noted
in the CHANGELOG.md, so users can better understand the behavior
they are seeing.
2023-10-03 07:32:06 +02:00
Rich Trott
5746691a36
test: update expired certs ( #2908 )
2023-09-28 07:56:36 +02:00
Iulian Onofrei
d3615c66f7
Fix incorrect Xcode casing in README ( #2896 )
2023-08-26 10:48:03 +02:00
Christian Clauss
bb93b946a9
docs: README.md Do not hardcode the supported versions of Python ( #2880 )
2023-08-25 21:04:27 +08:00
Tim Perry
0f1f667b73
fix: create Python symlink only during builds, and clean it up after ( #2721 )
...
* fix: create Python symlink only during builds, and clean it up after
Previously in b9ddcd5bbd
this was created
during configuration, and the symlink persisted indefinitely. This
causes problems with many tools that do not expect a codebase to include
symlinks to external absolute paths.
This PR largely reverts that commit, and instead writes the path to
link to into the config, and then creates the symlink only temporarily
during the build process, always deleting it afterwards.
* assert install_path == self.output, f"{install_path} != {self.output}"
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-08-01 10:02:59 +02:00
Stefan Stojanovic
445c28fabc
test: increase mocha timeout ( #2887 )
2023-07-24 12:38:47 +02:00
Christian Clauss
1bfb083f8b
Fix Python lint error by using an f-string ( #2886 )
2023-07-20 15:04:39 +02:00
Rareș
c9caa2ecf3
docs: Update windows installation instructions in README.md ( #2882 )
...
* Update windows installation instructions in README.md
2023-07-13 18:08:41 +02:00
James Cook
53c99ae573
Fix reading msvs version on Windows ( #2644 )
...
* fix: fix reading msvs version on windows
2023-06-25 17:35:41 +02:00
Stefan Stojanovic
b030555cdb
lib: find python checks order changed on windows ( #2872 )
...
These changes favor py launcher over other checks excluding command line
or npm configuration and environment variable checks.
Also, updated supported python versions list.
Fixes: https://github.com/nodejs/node-gyp/issues/2871
2023-06-22 12:13:50 +02:00
Luke Karrys
192eec2aca
Sync deps and engines with npm ( #2770 )
...
* feat!: update `engines.node` to `^14.17.0 || ^16.13.0 || >=18.0.0`
* deps: nopt@^7.0.0
* feat: replace npmlog with proc-log
* deps: standard@17.0.0 and fix linting errors
* deps: which@3.0.0
- this also promiisifies the build command
* deps: glob@8.0.3
* feat: drop rimraf dependency
* fix: use fs/promises in favor of fs.promises
2023-06-20 15:44:18 +02:00