-
-
Notifications
You must be signed in to change notification settings - Fork 6
Dev environment
For easy contribution here you find the recommended setup:
-
Update or install Homebrew Check and update your home-brew:
brew doctor brew update
If you have no home-brew you can easily install it:
xcode-select --install /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" echo >> /Users/sallius/.zprofile echo 'eval "$(/usr/local/bin/brew shellenv)"' >> /Users/sallius/.zprofile eval "$(/usr/local/bin/brew shellenv)"
-
Install 'vscode' from code.visualstudio.com
brew install --cask visual-studio-code
-
Install 'docker-desktop' from www.docker.com
brew install --cask docker
-
Install
pyenv
so we can easily switch the Python versionA description how to install
pyenv
you will find here: pyenv projectOn MacOs you should use
home-brew
. Before you install new things, please check your installation and updatehome-brew
.Then install
pyenv
and set some environments for your shellbrew install pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zprofile echo [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zprofile echo 'eval "$(pyenv init -)"' >> ~/.zprofile
-
Download repositories
-
Setup a virtual environment with
pyenv
andvenv
Start
vscode
and enter the workspace of the proxy. Then open a new terminal (zsh
) and create the python environment:pyenv install 3.12.7 pyenv local 3.12.7 pyenv exec python3 -m venv .venv source .venv/bin/activate
-
Install 'python' packages:
python3 -m pip install --upgrade pip python3 -m pip install -r requirements.txt python3 -m pip install -r requirements-test.txt
-
Install
vscode
packages:Python
,Pylance
,Docker
,Flake8
,yUML
,Markdown All In One
,markdownlint
,Coverage Gutters
-
Optional: install hadolint for Dockerfile checking
brew install hadolint
and install the
vscode
package:hadolint
Please ask questions in the discussions area