Skip to content

Commit

Permalink
BLD: Update Gitpod to use docker installation flow and pip/meson for …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
theuerc authored Jul 11, 2023
1 parent 41dfccc commit dbb19b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
15 changes: 8 additions & 7 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
# https://www.gitpod.io/docs/config-start-tasks/#configuring-the-terminal
# -------------------------------------------------------------------------

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

# --------------------------------------------------------
# using prebuilds for the container
# Using prebuilds for the container
# With this configuration the prebuild will happen on push to main
github:
prebuilds:
Expand Down
2 changes: 1 addition & 1 deletion gitpod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# OS/ARCH: linux/amd64
FROM gitpod/workspace-base:latest

ARG MAMBAFORGE_VERSION="22.9.0-1"
ARG MAMBAFORGE_VERSION="23.1.0-3"
ARG CONDA_ENV=pandas-dev
ARG PANDAS_HOME="/home/pandas"

Expand Down
5 changes: 2 additions & 3 deletions gitpod/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"restructuredtext.updateOnTextChanged": "true",
"restructuredtext.updateDelay": 300,
"esbonio.server.pythonPath": "/usr/local/bin/python",
"restructuredtext.linter.disabledLinters": ["doc8","rst-lint", "rstcheck"],
"python.defaultInterpreterPath": "/home/gitpod/mambaforge3/envs/pandas-dev/bin/python"
"python.defaultInterpreterPath": "/usr/local/bin/python"
}

0 comments on commit dbb19b9

Please sign in to comment.