Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Release proposal: v5.0.4 - #1893

Closed
rvagg wants to merge 21 commits into
masterfrom
v5.x
Closed

Release proposal: v5.0.4#1893
rvagg wants to merge 21 commits into
masterfrom
v5.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

This is the same as the #1892 but without the lone apparent semver-major: #1818. See thread in #1791 (comment) for more discussion on this approach.

Will take advice on what else this needs, I don't have any strong opinions other than "let's get this stuff out".


  • [f753c167c5] - gyp: decode stdout on Python 3 (cclauss) #1890
  • [60a4083523] - doc: update xcode install instructions to match Node's BUILDING (Nhan Khong) #1884
  • [19dbc9ac32] - deps: update tar to 4.4.12 (Matheus Marchini) #1889
  • [5f3ed92181] - bin: fix the usage instructions (Halit Ogunc) #1888
  • [aab118edf1] - lib: adding keep-alive header to download requests (Milad Farazmand) #1863
  • [1186e89326] - lib: ignore non-critical os.userInfo() failures (Rod Vagg) #1835
  • [785e527c3d] - doc: fix missing argument for setting python path (lagorsse) #1802
  • [a97615196c] - gyp: rm semicolons (Python != JavaScript) (MattIPv4) #1858
  • [06019bac24] - gyp: assorted typo fixes (XhmikosR) #1853
  • [3f4972c1ca] - gyp: use "is" when comparing to None (Vladyslav Burzakovskyy) #1860
  • [1cb4708073] - src,win: improve unmanaged handling (Peter Sabath) #1852
  • [5553cd910e] - gyp: improve Windows+Cygwin compatibility (Jose Quijada) #1817
  • [8bcb1fbb43] - gyp: Python 3 Windows fixes (João Reis) #1843
  • [2e24d0a326] - test: accept Python 3 in test-find-python.js (João Reis) #1843
  • [1267b4dc1c] - build: add test run Python 3.7 on macOS (Christian Clauss) #1843
  • [da1b031aa3] - build: import StringIO on Python 2 and Python 3 (Christian Clauss) #1836
  • [fa0ed4aa42] - build: more Python 3 compat, replace compile with ast (cclauss) #1820
  • [18d5c7c9d0] - win,src: update win_delay_load_hook.cc to work with /clr (Ivan Petrovic) #1819

ipetrovic11and others added 18 commits September 26, 2019 13:39
Added "#pragma unmanaged" in win_delay_load_hook.cc to support clr
PR-URL: #1819
Reviewed-By: João Reis <reis@janeasystems.com>
Make Python 3 compatiblity changes so the code works in both Python 2
and Python 3. Especially, make changes required because the compiler
module was removed in Python 3 in favor of the ast module that exists
in both Python 2 and Python 3.
PR-URL: #1820
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This change supports access to StringIO on both Python 2 and Python 3
PR-URL: #1836
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: João Reis <reis@janeasystems.com>
Refs: #1846
PR-URL: #1843
Reviewed-By: João Reis <reis@janeasystems.com>
Fixes: #1826
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1843
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Matt Cowley <me@mattcowley.co.uk>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Fixes: #1782
PR-URL: #1817
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
Used scoped disabling of managed code handling to ensure no other
files get affected.
PR-URL: #1852
Reviewed-By: João Reis <reis@janeasystems.com>
PR-URL: #1860
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
PR-URL: #1853
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #1858
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <r@va.gg>
(accepted with minor modifications by rvagg)
PR-URL: #1802
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1888
Reviewed-By: Rod Vagg <rod@vagg.org>
Fixes: #1887
PR-URL: #1889
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1884
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: #1890
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

This PR isn't meant to be merged into master, it will establish a v5.x branch that we'll maintain like we do in nodejs/node for as long as we need a v5.x release line to live (as yet undetermined).

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions... Implemented on #1894

Comment thread.travis.yml
before_install: nvm install 12
- name: "Python 3.7 on macOS"
os: osx
#osx_image: xcode11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This # should be removed so that we use Py37 instead of Py36.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

Comment threadgyp/gyp_main.py
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in str(stdout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert the if PY3: stdout = stdout.decode("utf-8") code from #1890.

@rvagg

Copy link
Copy Markdown
MemberAuthor

hm, I'm not sure why this isn't showing properly, I've only removed that one commit which makes this the only meaningful diff when doing a git diff v5.x master locally:

diff --git a/lib/find-python.js b/lib/find-python.js
index 30bb25f..1a4390d 100644
--- a/lib/find-python.js+++ b/lib/find-python.js@@ -19,7 +19,7 @@ PythonFinder.prototype = {
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ],
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ],
semverRange: process.env.EXPERIMENTAL_NODE_GYP_PYTHON3 ? '2.7.x || >=3.5.0'
- : '>=2.7.0 <3.0.0',+ : '>=2.6.0 <3.0.0',
// These can be overridden for testing:
execFile: cp.execFile,

The "files changed" isn't correct, at least according to my diff. I suppose it's because this PR is adding one HEAD commit (changelog and version bump) but removing a commit way back in history, and for some reason it's getting confused?

@cclauss the changes you're commenting on are on master so maybe they need a PR to address them?

@cclausscclauss mentioned this pull request Sep 26, 2019
4 tasks
@sam-github

Copy link
Copy Markdown
Contributor

@rvagg This LGTM. @cclauss's comments are addressed in #1894 -- could you land that, and then cherry-pick it into 5.x? That will fix the known py3 issues (and as for unknown issues, we don't know :-).

PR-URL: #1894
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
@rvagg

Copy link
Copy Markdown
MemberAuthor

done, I suppose I'll push this out then!

@rvagg

Copy link
Copy Markdown
MemberAuthor

Included #1895 too and published as v5.0.4. Closing this PR but this branch, v5.x, will live on as our branch to maintain the v5.x series while we also move on to 6.0.0.

@rvaggrvagg closed this Sep 27, 2019
rvagg added a commit that referenced this pull request Oct 2, 2019
@cclausscclauss added the Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 label Aug 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Sass --> Dart Sasshttps://github.com/sass/node-sass/issues/2952

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@rvagg@sam-github@cclauss@ipetrovic11@joaocgreis@peter-sabath@MrMebelMan@XhmikosR@MattIPv4@lagorsse@halitogunc@mmarchini@ktrongnhan