This practice is for Unix
- Use Homebrew to install Pipx
- Use Pipx to install Poetry and Tox
- Use Homebrew (or official installer) to install Pyenv and Pyenv-virtualenv
- Use Pyenv install Python versions
- Run
pyenv global 3.a 3.b 3.c
to set global Python versions(plural)1
- Run
poetry new PROJECT_NAME
to create a new Poetry project - Run
pyenv local 3.a 3.b 3.c
to set multiple local Python versions - Run
poetry env use 3.a
to create a Poetry virtual environment - [Optional] Run
poetry install
to install current package into virtual environment - Develop
- Run
pyenv virtualenv 3.a PROJECT_NAME
to create a new virtual environment - Run
pyenv local PROJECT_NAME 3.a 3.b 3.c
to set multiple local Python versions - [Optional] Run
pip install --editable .
to install current package into virtual environment - Develop
- https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html#src-layout
- https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure%3E
- https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/