Skip to content

Commit 474cfe8

Browse files
committed
Move six to tools and add to LICENSE
1 parent d3c7034 commit 474cfe8

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

β€Ž.travis.ymlβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
install: *ccache-setup-steps
2525
script:
2626
- pyenv global ${PYTHON_VERSION}
27-
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/deps"
27+
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/tools"
2828
- ./configure
2929
- make -j2 -C out V=1 v8
3030

@@ -39,7 +39,7 @@ jobs:
3939
install: *ccache-setup-steps
4040
script:
4141
- pyenv global ${PYTHON_VERSION}
42-
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/deps"
42+
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/tools"
4343
- ./configure
4444
- make -j2 V=1
4545
- cp out/Release/node /home/travis/.ccache
@@ -53,7 +53,7 @@ jobs:
5353
- cp /home/travis/.ccache/node out/Release/node
5454
script:
5555
- pyenv global ${PYTHON_VERSION}
56-
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/deps"
56+
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/tools"
5757
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
5858

5959
- name: "Test C++ Suites"
@@ -70,7 +70,7 @@ jobs:
7070
- touch config.gypi
7171
script:
7272
- pyenv global ${PYTHON_VERSION}
73-
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/deps"
73+
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/tools"
7474
- out/Release/cctest
7575
- make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
7676
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
@@ -80,7 +80,7 @@ jobs:
8080
node_js: "node"
8181
install:
8282
- pyenv global ${PYTHON_VERSION}
83-
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/deps"
83+
- export PYTHONPATH="${PYTHONPATH}:$(pwd)/tools"
8484
- make lint-py-build || true
8585
script:
8686
- NODE=$(which node) make lint lint-py

β€ŽLICENSEβ€Ž

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,3 +1507,26 @@ The externally maintained libraries used by Node.js are:
15071507
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15081508
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15091509
"""
1510+
1511+
- six, located at tools/six.py, is licensed as follows:
1512+
"""
1513+
Copyright (c) 2010-2019 Benjamin Peterson
1514+
1515+
Permission is hereby granted, free of charge, to any person obtaining a copy
1516+
of this software and associated documentation files (the "Software"), to deal
1517+
in the Software without restriction, including without limitation the rights
1518+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1519+
copies of the Software, and to permit persons to whom the Software is
1520+
furnished to do so, subject to the following conditions:
1521+
1522+
The above copyright notice and this permission notice shall be included in all
1523+
copies or substantial portions of the Software.
1524+
1525+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1526+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1527+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1528+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1529+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1530+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1531+
SOFTWARE.
1532+
"""

β€Žtools/license-builder.shβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,6 @@ addlicense "HdrHistogram" "deps/histogram" "$(cat ${rootdir}/deps/histogram/LICE
106106
addlicense "node-heapdump" "src/heap_utils.cc" \
107107
"$(curl -sL https://raw.githubusercontent.com/bnoordhuis/node-heapdump/0ca52441e46241ffbea56a389e2856ec01c48c97/LICENSE)"
108108

109+
addlicense "six" "tools/six.py" "$(sed -e '/^$/,$d' -e 's/^#//' -e 's/^ //' ${rootdir}/tools/six.py)"
110+
109111
mv $tmplicense $licensefile

β€Ždeps/six.pyβ€Ž renamed to β€Žtools/six.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def python_2_unicode_compatible(klass):
934934
__path__ = [] # required for PEP 302 and PEP 451
935935
__package__ = __name__ # see PEP 366 @ReservedAssignment
936936
if globals().get("__spec__") is not None:
937-
__spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable
937+
__spec__.submodule_search_locations = [] # noqa PEP 451 @UndefinedVariable
938938
# Remove other six meta path importers, since they cause problems. This can
939939
# happen if six is removed from sys.modules and then reloaded. (Setuptools does
940940
# this for some reason.)

0 commit comments

Comments
Β (0)