Skip to content

Commit dbb19b9

Browse files
authoredJul 11, 2023
BLD: Update Gitpod to use docker installation flow and pip/meson for setup (#54046)
* Update Dockerfile with new Conda version * Update .gitpod.yml with meson build instructions * Update .gitpod.yml with new Dockerfile * Remove lines that cause errors in .gitpod.yml * add precommit hook back * Update gitpod.yml to use docker installation flow * Remove outdated plugin configs * remove trailing whitespace * Update .gitpod.yml to remove conda activation (using docker flow) * fix esbonio language server not installed error * Add pip/meson build to command to fix issues with gitpod prebuild * remove esbonio * enable prebuilds to quickly access pull requests * add statement to close terminal * Remove extra pip/meson command * add comma * add back duplicate command to fix prebuild * remove prebuilds for branches/forks * remove pull request prebuild option * Update gitpod comments * update letter
1 parent 41dfccc commit dbb19b9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
 

‎.gitpod.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
# https://www.gitpod.io/docs/config-start-tasks/#configuring-the-terminal
44
# -------------------------------------------------------------------------
55

6-
# assuming we use dockerhub: name of the docker user, docker image, tag, e.g. https://hub.docker.com/r/pandas/pandas-gitpod/tags
7-
image: pandas/pandas-gitpod:latest
6+
# images for gitpod pandas are in https://hub.docker.com/r/pandas/pandas-gitpod/tags
7+
# we're using the Dockerfile in the base of the repo
8+
image:
9+
file: Dockerfile
810
tasks:
911
- name: Prepare development environment
1012
init: |
1113
mkdir -p .vscode
1214
cp gitpod/settings.json .vscode/settings.json
13-
conda activate pandas-dev
14-
git pull --unshallow # need to force this else the prebuild fails
1515
git fetch --tags
16-
python setup.py build_ext --inplace -j 4
17-
echo "🛠 Completed rebuilding Pandas!! 🛠 "
16+
python -m pip install -ve . --no-build-isolation --config-settings editable-verbose=true
1817
pre-commit install
18+
command: |
19+
python -m pip install -ve . --no-build-isolation --config-settings editable-verbose=true
1920
echo "✨ Pre-build complete! You can close this terminal ✨ "
2021
2122
# --------------------------------------------------------
@@ -37,7 +38,7 @@ vscode:
3738
# avoid adding too many. they each open a pop-up window
3839

3940
# --------------------------------------------------------
40-
# using prebuilds for the container
41+
# Using prebuilds for the container
4142
# With this configuration the prebuild will happen on push to main
4243
github:
4344
prebuilds:

‎gitpod/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# OS/ARCH: linux/amd64
2828
FROM gitpod/workspace-base:latest
2929

30-
ARG MAMBAFORGE_VERSION="22.9.0-1"
30+
ARG MAMBAFORGE_VERSION="23.1.0-3"
3131
ARG CONDA_ENV=pandas-dev
3232
ARG PANDAS_HOME="/home/pandas"
3333

‎gitpod/settings.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"restructuredtext.updateOnTextChanged": "true",
3-
"restructuredtext.updateDelay": 300,
2+
"esbonio.server.pythonPath": "/usr/local/bin/python",
43
"restructuredtext.linter.disabledLinters": ["doc8","rst-lint", "rstcheck"],
5-
"python.defaultInterpreterPath": "/home/gitpod/mambaforge3/envs/pandas-dev/bin/python"
4+
"python.defaultInterpreterPath": "/usr/local/bin/python"
65
}

0 commit comments

Comments
 (0)
Please sign in to comment.