Linux dev environment steps
Prerequisites
Install system dependencies
Setup pyenv for project
pyenv virtualenv 3.10 hitfactorpy
: create a virtualenv named “hitfactorpy” using python v3.10
pyenv local hitfactorpy
: configure pyenv to use “hitfactorpy” for the current directory
pyenv activate hitfactorpy
: activate the virtualenv
poetry config virtualenvs.prefer-active-python true
- Verify output of
poetry env info
; the paths for Virtualenv
and System
should match the value of $PYENV_ROOT
(default: $HOME/.pyenv
)
Development
- Install dependencies:
poetry install
- Test:
poetry run tox
- Build:
poetry build