Skip to content

Commit bef342c

Browse files
authored
Louis/pythonpath-fix (#73)
* Re-enable flaky tests * Fix #58 With promises. * Remove redundant Python strings * Reorder stream execution * Cleanup code * Fix venv path app-root-path was incorrectly resolving the project path when the package is installed directly in Node-RED. * Remove app-root-path package * Remove PythonShell package PythonShell packages functionality is no longer required. * Update dedent-js to be dev dependency Given that all of the Python snippets are correctly indented anyway in snippets.js, having dedent-js as a dependency is no longer required. Kept it as a dev-dependency though for unit tests. * Update packages * Fix #58 (again) This fix is better than the previous one.
1 parent 9c262e2 commit bef342c

File tree

4 files changed

+154
-178
lines changed

4 files changed

+154
-178
lines changed

package-lock.json

Lines changed: 102 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@
3535
"postinstall": "npm run venv"
3636
},
3737
"dependencies": {
38-
"app-root-path": "^3.0.0",
3938
"async-mutex": "^0.3.1",
40-
"dedent-js": "^1.0.1",
41-
"python-shell": "^3.0.0",
4239
"string.prototype.replaceall": "^1.0.5"
4340
},
4441
"devDependencies": {
4542
"chai": "^4.3.4",
43+
"dedent-js": "^1.0.1",
4644
"eslint": "^7.29.0",
4745
"eslint-config-google": "^0.14.0",
4846
"mocha": "^9.0.3",
@@ -69,7 +67,7 @@
6967
"hadamard-gate": "quantum/nodes/hadamard-gate/hadamard-gate.js",
7068
"cnot-gate": "quantum/nodes/cnot-gate/cnot-gate.js",
7169
"toffoli-gate": "quantum/nodes/toffoli-gate/toffoli-gate.js",
72-
"controlled-u-gate":"quantum/nodes/controlled-u-gate/controlled-u-gate.js",
70+
"controlled-u-gate": "quantum/nodes/controlled-u-gate/controlled-u-gate.js",
7371
"measure": "quantum/nodes/measure/measure.js",
7472
"local-simulator": "quantum/nodes/local-simulator/local-simulator.js",
7573
"ibm-quantum-system": "quantum/nodes/ibm-quantum-system/ibm-quantum-system.js",

0 commit comments

Comments
 (0)