Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nw-gyp to latest node-gyp 6.1.0 #136

Open
wants to merge 389 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
389 commits
Select commit Hold shift + click to select a range
328d671
3.2.0
bnoordhuis Nov 24, 2015
90078ec
Define WIN32_LEAN_AND_MEAN conditionally.
bnoordhuis Nov 25, 2015
ab89b47
Upgrade gyp to b3cef02.
bnoordhuis Dec 1, 2015
89692c9
3.2.1
bnoordhuis Dec 3, 2015
b3ad434
Make download() function testable.
bnoordhuis Dec 8, 2015
8c4b0ff
Add --cafile command line option.
bnoordhuis Dec 8, 2015
07371e5
Use -fPIC for NetBSD.
saper Jan 8, 2016
6e28ad1
Allow for [email protected]
iarna Jan 13, 2016
d1e4cc4
Download headers tarball for ~0.12.10 || ~0.10.42
rvagg Feb 12, 2016
818d854
Introduce NODEJS_ORG_MIRROR and IOJS_ORG_MIRROR
rvagg Feb 12, 2016
a1dde56
Update changelog
rvagg Feb 16, 2016
7b10467
3.3.0
rvagg Feb 16, 2016
a981ef8
gyp: fix android generator
robertchiras Mar 4, 2016
1dcf356
3.3.1
bnoordhuis Mar 4, 2016
3bcb172
Add support for the Python launcher on Windows
poke Mar 14, 2016
625c151
gyp: inherit CC/CXX for CC/CXX.host
jbergstroem Apr 13, 2016
0880827
Update Windows install instructions
mousetraps Jan 18, 2016
7f1c1b9
gyp: improvements for android generator
robertchiras May 19, 2016
15fd56b
Enable V8 deprecation warnings for native modules
May 7, 2016
ac29d23
Upgrade to [email protected].
bnoordhuis May 25, 2016
c8c7ca8
Add --silent option for zero output.
gibfahn May 24, 2016
4ee3132
doc: add command options to README.md
gibfahn May 23, 2016
a4fa07b
More verbose error on locating msbuild.exe failure.
purplecode May 17, 2016
3df8222
Allow for [email protected]
iarna Jun 7, 2016
f31482e
win: work around __pfnDliNotifyHook2 type change
orangemocha Jun 13, 2016
af35b2a
Move VC++ Build Tools to Build Tools landing page.
Jun 9, 2016
cc778e9
Override BUILDING_UV_SHARED, BUILDING_V8_SHARED.
bnoordhuis Apr 28, 2016
c4344b3
doc: add --target option to README
gibfahn Jun 17, 2016
0dba4bd
test: add simple addon test
richardlau Jun 13, 2016
77383dd
Replace fs.accessSync call to fs.statSync
richardlau Jun 13, 2016
ce5fd04
deps: update minimatch version
delphiactual Jun 18, 2016
cc312ca
changelog for v3.4.0
rvagg Jun 28, 2016
d460084
3.4.0
rvagg Jun 28, 2016
f6eab1f
doc: add windows-build-tools to readme
felixrieseberg Jun 29, 2016
9c8d275
Add --devdir flag.
bnoordhuis Apr 28, 2016
7c08b85
Revert "configure: use "path-array" for PYTHONPATH"
mhart Jul 12, 2016
b182a19
Revert "add "path-array" dep"
mhart Jul 12, 2016
ddac348
Use push on PYTHONPATH and add tests
mhart Jul 13, 2016
afc766a
Unset executable bit for .bat files
pmed Jun 26, 2016
e3778d9
Add lots of findPython() tests.
bnoordhuis Jul 13, 2016
37ae7be
Try python launcher when stock python is python 3.
bnoordhuis Jul 13, 2016
05c4494
Open the build file with universal-newlines mode
guymguym Nov 13, 2016
80fc5c3
Fix deprecated dependency warning
Dec 10, 2016
762d19a
[doc] merge History.md and CHANGELOG.md
rvagg Jan 10, 2017
4793e1d
3.5.0
rvagg Jan 10, 2017
ff9a6fa
Update link of gyp as Google code is shutting down
PeterDaveHello Nov 28, 2016
93d7fa8
Upgrade semver dependency.
bnoordhuis Feb 6, 2017
a04ea30
Add support to build node.js with chakracore.
kunalspathak Jan 27, 2016
ec5fc36
Add support to build node.js with chakracore for ARM.
kunalspathak Jan 27, 2016
ae141e1
win: find and setup for VS2017
refack Feb 21, 2017
8d04acf
3.6.0
rvagg Mar 15, 2017
761c7cb
doc: update changelog for v3.6.0
rvagg Mar 15, 2017
da9cb5f
Delete superfluous .patch files.
bnoordhuis Feb 16, 2017
c09cf76
doc: add a note for using `configure` on Windows
vsemozhetbyt Mar 21, 2017
8a76714
gyp: Revert quote_cmd workaround
kunalspathak Mar 21, 2017
a83a380
test: fix test/test-configure-python on AIX
richardlau Feb 27, 2017
4980171
test: fix test-find-python on v0.10.x buildbot.
bnoordhuis Apr 11, 2017
ce815f9
3.6.1
rvagg Apr 30, 2017
c307b30
doc: blorb about setting `npm_config_OPTION_NAME`
refack May 14, 2017
0913b2d
build, win: use target_arch to link with node.lib
pmed Jun 18, 2016
386746c
configure: use full path in node_lib_file GYP var
pmed Jun 23, 2016
241752f
Log dist-url.
bnoordhuis Apr 11, 2017
bad903a
win: more robust parsing of SDK version
refack May 13, 2017
72afdd6
build: rename copyNodeLib() to doBuild()
lc-soft May 22, 2017
b5b52f7
3.6.2
rvagg Jun 1, 2017
7900122
deps: pin `request` version range
refack Sep 26, 2017
40f24e4
gyp: fix regex to match multi-digit versions
jhermsmeier Jun 5, 2018
4c38707
3.6.3
bnoordhuis Jun 8, 2018
0a07e48
configure: don't set ensure if tarball is set
gibfahn Jun 7, 2017
f275991
gyp: update xml string encoding conversion
lc-soft May 20, 2017
7e803d5
doc: headerify the Install instructions
nschonni Jun 6, 2017
a46a770
doc: update proposed DCO and CoC
mikeal Oct 14, 2015
2da5f86
doc: add github PR and Issue templates
gibfahn Jul 4, 2017
90d8651
win: run PS with `-NoProfile`
refack Sep 14, 2017
b2024de
zos: support platform
jBarz Sep 26, 2017
47496bf
Fix IndexError when parsing GYP files.
bnoordhuis Aug 19, 2017
a613603
Update README with another way to install on windows
JeffAtDeere Feb 18, 2018
2580b91
Update `--nodedir` description in README.
bnoordhuis Jan 27, 2018
6f1286f
Fix infinite install loop.
bnoordhuis Feb 26, 2018
9425448
gyp: don't print xcodebuild not found errors
gibfahn Jan 21, 2018
79febac
doc: update macOS information in README
josh- Jun 8, 2018
e5a6901
zos: add search locations for libnode.x
jBarz May 29, 2018
dd8561e
zos: don't use universal-new-lines mode
jBarz May 30, 2018
53a5f8f
gyp: add support for .mm files to msvs generator
jracle Apr 7, 2017
53d8cb9
Prefix build targets with /t: on Windows
NatalieWolfe Apr 4, 2017
1e203c5
Fix include path when pointing to Node.js source
richardlau Nov 17, 2016
88fc6fa
Drop dependency on minimatch.
doowb Mar 27, 2017
0540e4e
gyp: escape spaces in filenames in make generator
May 10, 2018
84cea7b
Remove unused gyp test scripts.
bnoordhuis Jun 8, 2018
d8a0ca7
3.7.0
bnoordhuis Jun 8, 2018
340403c
win: improve parsing of SDK version
Loghorn Jul 30, 2018
969447c
deps: bump request to 2.8.7, fixes heok/hawk issues
Rohithzr Jul 4, 2018
60e4213
test: added test/processExecSync.js for when execFileSync is not avai…
Rohithzr Jul 21, 2018
6cd84b8
test: formatting and minor fixes for execFileSync replacement
rvagg Aug 8, 2018
8aedbfd
gyp: backport GYP fix to fix AIX shared suffix
Nov 14, 2016
fc3c4e2
gyp: float gyp patch for long filenames
addaleax May 27, 2016
40692d0
gyp: add compile_commands.json gyp generator
bnoordhuis Aug 5, 2016
b416c5f
gyp: enable cctest to use objects (gyp part)
danbev Oct 18, 2016
207e5aa
gyp: implement LD/LDXX for ninja and FIPS
sam-github Jul 13, 2017
ea9aff4
tools: fix "the the" typos in comments
May 14, 2018
e8ea74e
tools: patch gyp to avoid xcrun errors
ryzokuken Jun 25, 2018
94c39c6
gyp: fix ninja build failure (GYP patch)
danbev Apr 18, 2017
536759c
configure: use sys.version_info to get python version
hashseed Jul 17, 2018
b4fe8c1
doc: fix visual studio links
bzoz Jul 2, 2018
8b488da
doc: update link to commit guidelines
jhermsmeier Jun 5, 2018
c5929cb
doc: update Xcode preferences tab name.
divan Nov 10, 2017
9b9d98f
doc: update changelog
rvagg Aug 9, 2018
9a404d6
3.8.0
rvagg Aug 9, 2018
0c6bf53
lib: use print() for python version detection
greenaddress Oct 20, 2018
e6699d1
test: fix addon test for Node.js 12 and V8 7.4
richardlau Apr 2, 2019
374519e
Upgrade to tar v3
isaacs May 31, 2017
ceed5cb
deps: updated tar package version to 4.4.8
MaksPob Apr 11, 2019
35e765b
doc: update changelog
rvagg Apr 24, 2019
41f2b23
4.0.0
rvagg Apr 24, 2019
3e64c78
doc: lint README.md
maclover7 Jul 19, 2018
9e46872
bin,lib: remove extra comments/lines/spaces
maclover7 Jul 28, 2018
a5b7410
Add ESLint no-unused-vars rule
maclover7 Aug 2, 2018
323cee7
deps: pin `request` version range
refack Sep 26, 2017
f83b457
deps: bump request to 2.8.7, fixes heok/hawk issues
Rohithzr Jul 4, 2018
788e767
test: remove unused variable
joaocgreis Oct 11, 2018
abef93d
gyp: get ready for python 3
Nov 14, 2017
2040cd2
gyp: use print as a function, as specified in PEP 3105.
rodrigc Mar 19, 2017
7535e44
gyp: replace deprecated functions
rodrigc Mar 19, 2017
98226d1
gyp: replace basestring with str, but only on Python 3.
rodrigc Mar 19, 2017
588d333
gyp: _winreg module was renamed to winreg in Python 3.
rodrigc Mar 19, 2017
febdfa2
gyp: fix sntex error
Nov 14, 2017
92e8b52
gyp: fix target --> self.target
Nov 14, 2017
8098ebd
deps: replace `osenv` dependency with native `os`
Siilwyn Oct 13, 2018
8a83972
bin: follow XDG OS conventions for storing data
Siilwyn Oct 13, 2018
6f5a408
tools: fix usage of inherited -fPIC and -fPIE
arrkiin Oct 20, 2018
d3b2122
win: fix delay-load hook for electron 4
adill Oct 22, 2018
49ab79d
python: more informative error
refack Aug 20, 2017
43031fa
python: clean-up detection
joaocgreis Oct 24, 2018
cca2d66
doc: python info needs own header
TaylorDennisLee Nov 26, 2018
c515912
doc: improve issue template
bzoz Nov 28, 2018
a6e0a6c
gyp: move compile_commands_json
paul-marechal Feb 6, 2019
721dc7d
Add ARM64 to MSBuild /Platform logic
jkunkee Jan 25, 2019
997bc3c
readme: add ARM64 info to MSVC setup instructions
jkunkee Jan 25, 2019
45e3221
Remove an outdated workaround for Python 2.4
cclauss Jan 21, 2019
7a71d68
win: use msbuild from the configure stage
bzoz Feb 13, 2019
4748f6a
Remove deprecated compatibility code.
bnoordhuis Feb 14, 2019
81f3a92
Update list of Node.js versions to test against.
bnoordhuis Mar 19, 2019
91744bf
gyp: add support for Windows on Arm
richard-townsend-arm May 2, 2019
721eb69
gyp: teach MSVS generator about MARMASM Items
jkunkee Feb 25, 2019
7fe4095
win: generic Visual Studio 2017 detection
joaocgreis May 24, 2019
8f43f68
win: detect all VS versions in node-gyp
joaocgreis May 27, 2019
360ddbd
win: add support for Visual Studio 2019
joaocgreis May 28, 2019
0efb8fb
win: support running in VS Command Prompt
joaocgreis May 31, 2019
a20faed
gyp: enable MARMASM items only on new VS versions
joaocgreis May 28, 2019
182e846
v5.0.0: bump version and update changelog
rvagg Apr 24, 2019
e386172
doc: document --jobs max
dsanders11 Jun 20, 2019
1cfdb28
lib: reintroduce support for iojs file naming for releases >= 1 && < 4
MarshallOfSound Jun 19, 2019
a757239
v5.0.1: bump version and update changelog
rvagg Jun 20, 2019
2761afb
build,test: add duplicate symbol test
Mar 12, 2019
1597c84
test: use Travis CI to run tests on every pull request
cclauss May 14, 2019
dd9bf92
zos: update compiler options
zsw007 Jun 3, 2019
4f4a677
gyp: use different default compiler for z/OS
zsw007 Jun 3, 2019
f952b08
gyp: move from __future__ import to the top of the file
cclauss Jun 20, 2019
ec2eb44
test: use Nan in duplicate_symbols
Jun 20, 2019
611bc3c
lib: add .json suffix for explicit require
rvagg Jun 20, 2019
d3478d7
meta: add to .gitignore
refack Oct 14, 2018
03683f0
lib: code de-duplication
pmed Jun 20, 2016
a52c6eb
test: migrate from tape to tap
rvagg Jun 22, 2019
395f843
test: replace self-signed cert with 'localhost'
rvagg Jun 22, 2019
a991f63
gyp: fix the remaining Python 3 issues
cclauss Jun 21, 2019
7dd7f2b
test: fix Python syntax error in test-adding.js
cclauss Jun 21, 2019
afaaa29
gyp: remove from __future__ import with_statement
cclauss Jun 25, 2019
82f129d
gyp: replace optparse to argparse
KiYugadgeter Oct 31, 2018
7a9a038
test: add parallel test runs on macOS and Windows
cclauss Jun 25, 2019
49c7f99
v5.0.2: bump version and update changelog
rvagg Jun 21, 2019
2410914
test: downgrade to tap@^12 for continued Node 6 support
rvagg Jul 5, 2019
7e81270
test: cover supported node versions with travis
rvagg Jul 5, 2019
e40c99e
src: implement standard.js linting
rvagg Jun 22, 2019
656117c
win: make VS path match case-insensitive
joaocgreis Jul 4, 2019
7fd9240
test: increase tap timeout
joaocgreis Jul 7, 2019
bb92c76
test: add Node.js 6 on Windows to Travis CI
joaocgreis Jul 7, 2019
7e7fce3
python: move Python detection to its own file
joaocgreis Jul 8, 2019
66ad305
python: accept Python 3 conditionally
joaocgreis Jul 8, 2019
0878db3
Revert "build,test: add duplicate symbol test"
bnoordhuis Jul 16, 2019
64bb407
v5.0.3: bump version and update changelog
rvagg Jul 16, 2019
c6e3b65
lib: raise the minimum Python version from 2.6 to 2.7
cclauss Jul 11, 2019
5736079
win,src: update win_delay_load_hook.cc to work with /clr
ipetrovic11 Jul 12, 2019
4ef83ed
build: more Python 3 compat, replace compile with ast
cclauss Jul 12, 2019
5459eca
build: import StringIO on Python 2 and Python 3
cclauss Jul 21, 2019
a2bca07
build: add test run Python 3.7 on macOS
cclauss Jul 24, 2019
a2a862f
test: accept Python 3 in test-find-python.js
joaocgreis Jul 23, 2019
2592036
gyp: Python 3 Windows fixes
joaocgreis Jul 23, 2019
c7f1bca
gyp: improve Windows+Cygwin compatibility
Jul 10, 2019
af876e1
src,win: improve unmanaged handling
peter-sabath Aug 8, 2019
a301abc
gyp: use "is" when comparing to None
MrMebelMan Aug 19, 2019
cdb47bd
gyp: assorted typo fixes
XhmikosR Aug 10, 2019
0a4d8c8
gyp: rm semicolons (Python != JavaScript)
MattIPv4 Aug 15, 2019
ca990a1
doc: fix missing argument for setting python path
lagorsse Jun 28, 2019
c4002de
lib: ignore non-critical os.userInfo() failures
rvagg Jul 20, 2019
0384683
lib: adding keep-alive header to download requests
Aug 23, 2019
cdc49ee
bin: fix the usage instructions
halitogunc Sep 24, 2019
5d76938
deps: update tar to 4.4.12
mmarchini Sep 24, 2019
8d4ea7f
doc: update xcode install instructions to match Node's BUILDING
ktrongnhan Sep 21, 2019
d90d9c5
gyp: decode stdout on Python 3
cclauss Sep 25, 2019
67dec14
gyp: more decode stdout on Python 3
cclauss Sep 26, 2019
8e9ec3b
gyp: modify XcodeVersion() to convert "4.2" to "0420" and "10.0" to "…
cclauss Sep 26, 2019
3d1c60a
lib: accept Python 3 by default
joaocgreis Jul 23, 2019
c763ca1
doc: Declare that node-gyp is Python 3 compatible
cclauss Jul 7, 2019
2441932
src,win: add support for fetching arm64 node.lib
richard-townsend-arm Sep 12, 2019
a84b885
gyp: fix undefined name: cflags --> ldflags
cclauss Oct 1, 2019
6f39fd4
v5.0.4: bump version and update changelog
rvagg Sep 26, 2019
ab2a4cc
src: update to standard@14
rvagg Sep 30, 2019
968c906
win: support VS 2017 Desktop Express
joaocgreis Oct 2, 2019
f60ed47
travis: add Python 3.5 and 3.6 tests on Linux
cclauss Oct 2, 2019
f36bd22
gyp: add __lt__ to MSVSSolutionEntry
joaocgreis Oct 2, 2019
dd0e97e
lib: try to find `python` after `python3`
sam-github Oct 3, 2019
b1bf32e
doc: clarify Python configuration, etc
sam-github Oct 3, 2019
77803c3
v5.0.5: bump version and update changelog
rvagg Oct 3, 2019
1a4ff63
v6.0.0: bump version and update changelog
rvagg Sep 26, 2019
5a83630
travis: add Windows + Python 3.8 to the mix
rvagg Oct 15, 2019
032db2a
lib,install: always download SHA sums on Windows
s100 Oct 16, 2019
60e4488
build: avoid bare exceptions in xcode_emulation.py
cclauss Oct 21, 2019
4fff845
travis: ignore failed `brew upgrade npm`, update xcode
cclauss Oct 22, 2019
3538a31
doc: adjustments to the README.md for new users
Oct 14, 2019
b91718e
test: upgrade Linux Travis CI to Python 3.8
cclauss Oct 15, 2019
c60c22d
deps: update deps to roughly match current npm@6
rvagg Oct 15, 2019
f069341
src,win: allow 403 errors for arm64 node.lib
richardlau Oct 23, 2019
bb2eb72
gyp: finish decode stdout on Python 3
cclauss Oct 27, 2019
9c0f340
gyp: fix TypeError in XcodeVersion()
cclauss Oct 27, 2019
d8e09a1
gyp: make cmake python3 compatible
gengjiawen Oct 28, 2019
c0282da
gyp: iteritems() -> items() in compile_commands_json.py
cclauss Oct 27, 2019
1b11be6
gyp: python3 fixes: utf8 decode, use of 'None' in eval
dothebart Oct 16, 2019
8ec2e68
doc: add macOS_Catalina.md document
cclauss Oct 25, 2019
68319a2
v6.0.1: bump version and update changelog
rvagg Oct 24, 2019
c506a6a
test: configure proper devDir for invoking configure()
rvagg Jun 23, 2019
0670e51
test: add header download test
rvagg Oct 30, 2019
20aa0b4
doc: macOS Catalina add two commands
cclauss Nov 10, 2019
04da736
test: fix Python unittests
cclauss Nov 8, 2019
6b8f265
doc: add travis badge
rvagg Nov 18, 2019
f7b6b6b
doc: fix typo in README.md (#1985)
suraneti Dec 13, 2019
5a64e9b
test: initial Github Actions with Ubuntu & macOS
cclauss Dec 2, 2019
d6a7e0e
test: fix macOS Travis on Python 2.7 & 3.7
cclauss Nov 28, 2019
345c70e
test: direct python invocation & simpler pyenv
imatlopez Nov 28, 2019
3bcba2a
lib: noproxy support, match proxy detection to `request`
imatlopez Nov 28, 2019
038b4a3
v5.0.6: bump version and update changelog
rvagg Nov 18, 2019
5a729e8
test: fix typo in header download test (#2001)
richardlau Dec 23, 2019
31ecc84
test: add Windows to GitHub Actions testing (#1996)
cclauss Dec 29, 2019
312c12e
doc: update macOS_Catalina.md (#1992)
jameshome Dec 29, 2019
470cc21
test: remove old docker test harness (#1993)
rvagg Dec 29, 2019
26cd6ea
doc: add GitHub Actions badge (#1994)
rvagg Dec 29, 2019
14f2a07
gyp: list(dict) so we can del dict(key) while iterating
cclauss Dec 31, 2019
9a7dd16
doc: remove backticks from Python version list
rvagg Jan 3, 2020
f242ce4
lib: compatibility with semver ≥ 7 (`new` for semver.Range)
guimard Dec 29, 2019
a79d866
v6.1.0: bump version and update changelog
rvagg Jan 3, 2020
21d635c
feat: update to 6.1.0
surunzi Mar 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--
Thank you for reporting an issue. The more information you can give us, the
better the chance we can fix your problem.

This issue tracker is for issues with node-gyp,
if you have an issue installing a specific module, please file an issue on
that module's issue tracker (`npm issues modulename`).
-->

* **Node Version**: <!-- `node -v` and `npm -v` -->
* **Platform**: <!-- `uname -a` (UNIX), or `systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"` (Windows) -->
* **Compiler**: <!-- `cc -v` (UNIX) or `msbuild /version & cl` (Windows) -->
* **Module**: <!-- what you tried to build/install -->

<details><summary>Verbose output (from npm or node-gyp):</summary>

```
Paste your log here, between the backticks. It can be:
- npm --verbose output,
- or contents of npm-debug.log,
- or output of node-gyp rebuild --verbose.
```

</details>

<!-- Any further details -->

17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
Thank you for your pull request. Please review the below requirements.

Contributor guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
-->

##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] `npm install && npm test` passes
- [ ] tests are included <!-- Bug fixes and new features should include tests -->
- [ ] documentation is changed or added
- [ ] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines)

##### Description of change
<!-- Provide a description of the change -->

40 changes: 40 additions & 0 deletions .github/workflows/Python_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# TODO: Line 15, enable python-version: 3.5
# TODO: Line 36, enable pytest --doctest-modules

name: Python_tests
on: [push, pull_request]
jobs:
Python_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 15
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [2.7, 3.6, 3.7, 3.8] # 3.5,
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest # -r requirements.txt
- name: Lint with flake8
if: matrix.os == 'ubuntu-latest'
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest (Linux and macOS)
if: matrix.os != 'windows-latest'
run: pytest
- name: Test with pytest (Windows)
if: matrix.os == 'windows-latest'
shell: bash
run: GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
# - name: Run doctests with pytest
# run: pytest --doctest-modules
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
gyp/test
node_modules
test/.node-gyp
.ncu
.nyc_output
package-lock.json
7 changes: 0 additions & 7 deletions .jshintrc

This file was deleted.

109 changes: 109 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
dist: xenial
language: python
cache: pip
addons:
homebrew:
update: true
packages:
- npm
- pyenv
jobs:
include:
- name: "Python 2.7 on Linux"
env: NODE_GYP_FORCE_PYTHON=python2
python: 2.7

- name: "Node.js 6 & Python 3.8 on Linux"
python: 3.8
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 6
- name: "Node.js 8 & Python 3.8 on Linux"
python: 3.8
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 8
- name: "Node.js 10 & Python 3.8 on Linux"
python: 3.8
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 10

- name: "Node.js 12 & Python 3.5 on Linux"
python: 3.5
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 12
- name: "Node.js 12 & Python 3.6 on Linux"
python: 3.6
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 12
- name: "Node.js 12 & Python 3.7 on Linux"
python: 3.7
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 12
- name: "Node.js 12 & Python 3.8 on Linux"
python: 3.8
env: NODE_GYP_FORCE_PYTHON=python3
before_install: nvm install 12

- name: "Python 2.7 on macOS"
os: osx
osx_image: xcode11.2
language: shell # 'language: python' is not yet supported on macOS
env: NODE_GYP_FORCE_PYTHON=python2 PATH=$HOME/.pyenv/shims:$PATH PYENV_VERSION=2.7.17
before_install: pyenv install $PYENV_VERSION
- name: "Python 3.8 on macOS"
os: osx
osx_image: xcode11.2
language: shell # 'language: python' is not yet supported on macOS
env: NODE_GYP_FORCE_PYTHON=python3 PATH=$HOME/.pyenv/shims:$PATH PYENV_VERSION=3.8.0
before_install: pyenv install $PYENV_VERSION

- name: "Node.js 6 & Python 2.7 on Windows"
os: windows
language: node_js
node_js: 6 # node
env: >-
PATH=/c/Python27:/c/Python27/Scripts:$PATH
NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
before_install: choco install python2
- name: "Node.js 12 & Python 2.7 on Windows"
os: windows
language: node_js
node_js: 12 # node
env: >-
PATH=/c/Python27:/c/Python27/Scripts:$PATH
NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
before_install: choco install python2

- name: "Node.js 12 & Python 3.7 on Windows"
os: windows
language: node_js
node_js: 12 # node
env: >-
PATH=/c/Python37:/c/Python37/Scripts:$PATH
NODE_GYP_FORCE_PYTHON=/c/Python37/python.exe
before_install: choco install python --version=3.7.4
- name: "Node.js 12 & Python 3.8 on Windows"
os: windows
language: node_js
node_js: 12 # node
env: >-
PATH=/c/Python38:/c/Python38/Scripts:$PATH
NODE_GYP_FORCE_PYTHON=/c/Python38/python.exe
before_install: choco install python

install:
- python -m pip install --upgrade flake8 pytest==4.6.6 # pytest 5 no longer supports legacy Python
before_script:
- python -m flake8 --version
# stop the build if there are Python syntax errors or undefined names
- python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. Two space indentation is OK. The GitHub editor is 127 chars wide
- python -m flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
- npm install
- npm list
script:
- node -e 'require("npmlog").level="verbose"; require("./lib/find-python")(null,()=>{})'
- npm test
- GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" python -m pytest
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
Loading