From 84e9296f127b58cf6be00cce3288790c40212d8d Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 15:03:37 -0400 Subject: [PATCH 01/19] first try at auto build --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ba68ce843a..fa4c704cfd0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -249,6 +249,34 @@ jobs: - store_artifacts: path: packages/python/plotly/dist + full_build: + docker: + - image: cimg/node:12.13.0 + environment: + LANG: en_US.UTF-8 + resource_class: large + + steps: + - checkout + + - run: + name: Create conda environment + command: | + wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh + chmod +x miniconda.sh + ./miniconda.sh -b -p $HOME/miniconda + $HOME/miniconda/bin/conda create -n env --yes python=3.9 conda-build conda-verify + + - run: + name: Build JS + command: | + cd packages/javascript/jupyterlab-plotly + rm -rf node_modules && npm install && npm run build:prod + cd ../../python/plotly + conda activate env + python setup.py sdist bdist_wheel + conda build recipe/ + build-doc: resource_class: xlarge docker: @@ -384,6 +412,9 @@ workflows: dev_build: jobs: - plotlyjs_dev_build + release_build: + jobs: + - full_build build: jobs: From 3ff0e7ca7b032ced7095a2ad6d22d9a8761073f4 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 15:26:31 -0400 Subject: [PATCH 02/19] first try at auto build --- .circleci/config.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fa4c704cfd0..f6103271595 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -266,15 +266,27 @@ jobs: chmod +x miniconda.sh ./miniconda.sh -b -p $HOME/miniconda $HOME/miniconda/bin/conda create -n env --yes python=3.9 conda-build conda-verify + $HOME/miniconda/bin/conda install -c conda-forge jupyterlab - run: - name: Build JS + name: NPM Build command: | + conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod - cd ../../python/plotly + + - run: + name: PyPI Build + command: | conda activate env + cd packages/python/plotly python setup.py sdist bdist_wheel + + - run: + name: Conda Build + command: | + conda activate env + cd packages/python/plotly conda build recipe/ build-doc: From 01a1463e4c93a74202e8b171765a7cd48a483a52 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 15:28:55 -0400 Subject: [PATCH 03/19] first try at auto build --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6103271595..6dad72aeefc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,21 +271,21 @@ jobs: - run: name: NPM Build command: | - conda activate env + $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod - run: name: PyPI Build command: | - conda activate env + $HOME/miniconda/bin/conda activate env cd packages/python/plotly python setup.py sdist bdist_wheel - run: name: Conda Build command: | - conda activate env + $HOME/miniconda/bin/conda activate env cd packages/python/plotly conda build recipe/ From 254a33627f6eb1c07fc23b1240007065d350b8e4 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 15:31:35 -0400 Subject: [PATCH 04/19] first try at auto build --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6dad72aeefc..bb49949cbc8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,6 +271,7 @@ jobs: - run: name: NPM Build command: | + . $HOME//miniconda/etc/profile.d/conda.sh $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod @@ -278,6 +279,7 @@ jobs: - run: name: PyPI Build command: | + . $HOME//miniconda/etc/profile.d/conda.sh $HOME/miniconda/bin/conda activate env cd packages/python/plotly python setup.py sdist bdist_wheel @@ -285,6 +287,7 @@ jobs: - run: name: Conda Build command: | + . $HOME//miniconda/etc/profile.d/conda.sh $HOME/miniconda/bin/conda activate env cd packages/python/plotly conda build recipe/ From 54a282dee5c8b4d4ce711bc48f25eb1328239f29 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 15:33:42 -0400 Subject: [PATCH 05/19] first try at auto build --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bb49949cbc8..c341e063e9c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,7 +271,7 @@ jobs: - run: name: NPM Build command: | - . $HOME//miniconda/etc/profile.d/conda.sh + $HOME/miniconda/bin/conda init bash $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod From 0fdc225dcea204f9b0467c2cd4cdc717549fa734 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 15:39:59 -0400 Subject: [PATCH 06/19] first try at auto build --- .circleci/config.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c341e063e9c..8385adcc1ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,26 +271,20 @@ jobs: - run: name: NPM Build command: | - $HOME/miniconda/bin/conda init bash - $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly - rm -rf node_modules && npm install && npm run build:prod + $HOME/miniconda/bin/conda run -n env rm -rf node_modules && npm install && npm run build:prod - run: name: PyPI Build command: | - . $HOME//miniconda/etc/profile.d/conda.sh - $HOME/miniconda/bin/conda activate env cd packages/python/plotly - python setup.py sdist bdist_wheel + $HOME/miniconda/bin/conda run -n env python setup.py sdist bdist_wheel - run: name: Conda Build command: | - . $HOME//miniconda/etc/profile.d/conda.sh - $HOME/miniconda/bin/conda activate env cd packages/python/plotly - conda build recipe/ + $HOME/miniconda/bin/conda run -n env conda build recipe/ build-doc: resource_class: xlarge From cff41411ffb7129ab1af05d10a25bcbf0e3f5390 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:32:53 -0400 Subject: [PATCH 07/19] first try at auto build --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8385adcc1ed..2d9ecea08e5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -267,24 +267,28 @@ jobs: ./miniconda.sh -b -p $HOME/miniconda $HOME/miniconda/bin/conda create -n env --yes python=3.9 conda-build conda-verify $HOME/miniconda/bin/conda install -c conda-forge jupyterlab + $HOME/miniconda/bin/conda init bash - run: name: NPM Build command: | + $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly - $HOME/miniconda/bin/conda run -n env rm -rf node_modules && npm install && npm run build:prod + rm -rf node_modules && npm install && npm run build:prod - run: name: PyPI Build command: | + $HOME/miniconda/bin/conda activate env cd packages/python/plotly - $HOME/miniconda/bin/conda run -n env python setup.py sdist bdist_wheel + python setup.py sdist bdist_wheel - run: name: Conda Build command: | + $HOME/miniconda/bin/conda activate env cd packages/python/plotly - $HOME/miniconda/bin/conda run -n env conda build recipe/ + conda build recipe/ build-doc: resource_class: xlarge From 831fde8f0f510d03eba29884a1550714c4b3f547 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:35:27 -0400 Subject: [PATCH 08/19] first try at auto build --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2d9ecea08e5..5aba8063d16 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -265,10 +265,9 @@ jobs: wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh chmod +x miniconda.sh ./miniconda.sh -b -p $HOME/miniconda - $HOME/miniconda/bin/conda create -n env --yes python=3.9 conda-build conda-verify - $HOME/miniconda/bin/conda install -c conda-forge jupyterlab $HOME/miniconda/bin/conda init bash - + $HOME/miniconda/bin/conda create -n env --yes python=3.9 conda-build conda-verify + $HOME/miniconda/bin/conda install -n env -c conda-forge jupyterlab - run: name: NPM Build command: | From d6203386ebbb0a0be38607d04a3847ce843e625b Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:40:29 -0400 Subject: [PATCH 09/19] first try at auto build --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5aba8063d16..7e33fa236ae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,6 +271,7 @@ jobs: - run: name: NPM Build command: | + source $HOME/miniconda/etc/profile.d/conda.sh $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod From e2f6629ffd06a8150471f0bb631586247aee05c0 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:43:03 -0400 Subject: [PATCH 10/19] first try at auto build --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e33fa236ae..7fa8bb4b37d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,7 +271,7 @@ jobs: - run: name: NPM Build command: | - source $HOME/miniconda/etc/profile.d/conda.sh + source $HOME/.bashrc $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod From bbf348f9fca836a5bd9da311318b705b98b55b2c Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:46:01 -0400 Subject: [PATCH 11/19] first try at auto build --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7fa8bb4b37d..d7a22ddad1b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -271,7 +271,7 @@ jobs: - run: name: NPM Build command: | - source $HOME/.bashrc + export PATH=$HOME/minconda3/bin:$PATH $HOME/miniconda/bin/conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod From a214a5c9121c7e962a069c7e411c75e55f646c0c Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:48:19 -0400 Subject: [PATCH 12/19] first try at auto build --- .circleci/config.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d7a22ddad1b..f7022b7949f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -251,7 +251,7 @@ jobs: full_build: docker: - - image: cimg/node:12.13.0 + - image: continuumio/miniconda3 environment: LANG: en_US.UTF-8 resource_class: large @@ -262,17 +262,12 @@ jobs: - run: name: Create conda environment command: | - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b -p $HOME/miniconda - $HOME/miniconda/bin/conda init bash - $HOME/miniconda/bin/conda create -n env --yes python=3.9 conda-build conda-verify - $HOME/miniconda/bin/conda install -n env -c conda-forge jupyterlab + conda create -n env --yes python=3.9 conda-build conda-verify + conda install -n env -c conda-forge jupyterlab - run: name: NPM Build command: | - export PATH=$HOME/minconda3/bin:$PATH - $HOME/miniconda/bin/conda activate env + conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod From 7a01007639a0ad4741f63bd6c311c2809279a8d2 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:49:47 -0400 Subject: [PATCH 13/19] first try at auto build --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f7022b7949f..56a987d42c9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -264,6 +264,8 @@ jobs: command: | conda create -n env --yes python=3.9 conda-build conda-verify conda install -n env -c conda-forge jupyterlab + conda init bash + conda activate env - run: name: NPM Build command: | From 242202670004c77cd0a03c6ce9610eea19e9189f Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:52:14 -0400 Subject: [PATCH 14/19] first try at auto build --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 56a987d42c9..44f46c942fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -265,7 +265,6 @@ jobs: conda create -n env --yes python=3.9 conda-build conda-verify conda install -n env -c conda-forge jupyterlab conda init bash - conda activate env - run: name: NPM Build command: | From 514cac1e6ee2723a63237cdc3bdec4528dc00ae8 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:58:11 -0400 Subject: [PATCH 15/19] first try at auto build --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 44f46c942fb..558cb020546 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -268,6 +268,7 @@ jobs: - run: name: NPM Build command: | + eval "$(conda shell.bash hook)" conda activate env cd packages/javascript/jupyterlab-plotly rm -rf node_modules && npm install && npm run build:prod From 7af1e632f869635f6490eb2f0d4dcc18c23f1cd3 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 16:59:55 -0400 Subject: [PATCH 16/19] first try at auto build --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 558cb020546..c5596413e03 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -264,6 +264,7 @@ jobs: command: | conda create -n env --yes python=3.9 conda-build conda-verify conda install -n env -c conda-forge jupyterlab + conda install -c conda-forge nodejs=12 conda init bash - run: name: NPM Build From 5a8ba4a51d219454a995c712244d5b81953fad39 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 17:07:33 -0400 Subject: [PATCH 17/19] first try at auto build --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c5596413e03..30dd66bc578 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -277,14 +277,16 @@ jobs: - run: name: PyPI Build command: | - $HOME/miniconda/bin/conda activate env + eval "$(conda shell.bash hook)" + conda activate env cd packages/python/plotly python setup.py sdist bdist_wheel - run: name: Conda Build command: | - $HOME/miniconda/bin/conda activate env + eval "$(conda shell.bash hook)" + conda activate env cd packages/python/plotly conda build recipe/ From 1acdeb9a72327ea553ad8c368271b1455e35ecb4 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 19:04:30 -0400 Subject: [PATCH 18/19] store artifacts --- .circleci/config.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 30dd66bc578..0ce9e212308 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -266,13 +266,15 @@ jobs: conda install -n env -c conda-forge jupyterlab conda install -c conda-forge nodejs=12 conda init bash + - run: - name: NPM Build + name: initial NPM Build command: | eval "$(conda shell.bash hook)" conda activate env cd packages/javascript/jupyterlab-plotly - rm -rf node_modules && npm install && npm run build:prod + npm install + npm run build:prod - run: name: PyPI Build @@ -282,6 +284,10 @@ jobs: cd packages/python/plotly python setup.py sdist bdist_wheel + - store_artifacts: + path: packages/python/plotly/dist + destination: dist + - run: name: Conda Build command: | @@ -290,6 +296,20 @@ jobs: cd packages/python/plotly conda build recipe/ + - store_artifacts: + path: /opt/conda/envs/env/conda-bld/noarch/ + destination: conda_dist + + - run: + name: NPM Pack + command: | + cd packages/javascript/jupyterlab-plotly + npm pack + + - store_artifacts: + path: packages/javascript/jupyterlab-plotly/jupyterlab-plotly-*.tgz + destination: npm_build + build-doc: resource_class: xlarge docker: From 809aeb018d9170d695abc6d7e89891207100746f Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Sun, 8 May 2022 21:13:01 -0400 Subject: [PATCH 19/19] store artifacts --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0ce9e212308..74b9df07d0e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -295,9 +295,11 @@ jobs: conda activate env cd packages/python/plotly conda build recipe/ + mkdir conda_dist + mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 conda_dist - store_artifacts: - path: /opt/conda/envs/env/conda-bld/noarch/ + path: packages/python/plotly/conda_dist destination: conda_dist - run: @@ -305,10 +307,12 @@ jobs: command: | cd packages/javascript/jupyterlab-plotly npm pack + mkdir npm_dist + mv jupyterlab-plotly*.tgz npm_dist - store_artifacts: - path: packages/javascript/jupyterlab-plotly/jupyterlab-plotly-*.tgz - destination: npm_build + path: packages/javascript/jupyterlab-plotly/npm_dist + destination: npm_dist build-doc: resource_class: xlarge