summaryrefslogtreecommitdiffstats
path: root/.devcontainer/postCreateCommand.sh
blob: e2f0f76d778a7f7c629bd676370f35e465ce818c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -x

brew install asdf
brew install hatch
source "$(brew --prefix asdf)/libexec/asdf.sh"

# Install latest python
asdf plugin add python
asdf install python 3.11.0
asdf global python 3.11.0

# You can easily install other python versions like so:
# asdf install python 3.6.15
# asdf install python 3.7.15
# asdf install python 3.8.15
# asdf install python 3.9.15
# asdf install python 3.10.8
# asdf install python pypy3.9-7.3.9

# Setup virtualenv, install all dependencies
cd /workspaces/gitlint
$(asdf which python) -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt -r test-requirements.txt -r doc-requirements.txt