Skip to content

Commit

Permalink
Second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jan 19, 2022
1 parent e3ffe42 commit 82ad737
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
channels: conda-forge

- name: Install the package
env:
NODE_OPTIONS: --openssl-legacy-provider
run: |
pip install .
Expand All @@ -59,8 +57,6 @@ jobs:
run: flake8 bqplot --ignore=E501,W504,W503

- name: JavaScript prettyfier
env:
NODE_OPTIONS: --openssl-legacy-provider
run: |
yarn install
yarn run prettier --check .
Expand All @@ -70,8 +66,6 @@ jobs:
run: pytest tests examples/Marks

- name: JavaScript tests
env:
NODE_OPTIONS: --openssl-legacy-provider
run: yarn run test
working-directory: js

Expand All @@ -82,8 +76,6 @@ jobs:
sha256sum * | tee SHA256SUMS
- name: Pack JavaScript package
env:
NODE_OPTIONS: --openssl-legacy-provider
run: |
yarn pack
mv bqplot*.tgz ../dist
Expand Down
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);

0 comments on commit 82ad737

Please sign in to comment.