1
0
Fork 0
gitlint/.devcontainer/postCreateCommand.sh
Daniel Baumann 2efee3d3ab
Merging upstream version 0.19.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-13 06:07:32 +01:00

24 lines
No EOL
647 B
Bash
Executable file

#!/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