Skip to content
Merged

Fix CI #1440

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,6 @@ jobs:
run: mamba install yarn jupyterlab=2

- name: Install the labextension
env:
NODE_OPTIONS: --openssl-legacy-provider
run: jupyter labextension install dist/bqplot*.tgz --debug
1 change: 1 addition & 0 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
},
"jupyterlab": {
"extension": "lib/jupyterlab-plugin",
"webpackConfig": "webpack.lab.config.js",
"outputDir": "../share/jupyter/labextensions/bqplot",
"sharedPackages": {
"@jupyter-widgets/base": {
Expand Down
7 changes: 7 additions & 0 deletions js/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
const path = require('path');

const crypto = require('crypto');

// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
const cryptoOrigCreateHash = crypto.createHash;
crypto.createHash = (algorithm) =>
cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);

const rules = [
{
test: /\.css$/,
Expand Down
6 changes: 6 additions & 0 deletions js/webpack.lab.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const crypto = require('crypto');

// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
const cryptoOrigCreateHash = crypto.createHash;
crypto.createHash = (algorithm) =>
cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);
2 changes: 1 addition & 1 deletion test-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- pandas >=1.0.0,<2.0.0
- bqscales >=0.2.2,<0.3
- scipy
- jupyterlab=3.2
- jupyterlab
- jupyter-packaging
- pytest
- nbval
Expand Down