From 401a5e3ac60b0371685b9e7028bb2a6126a4d3ae Mon Sep 17 00:00:00 2001 From: Saurabh Chopra Date: Tue, 24 Oct 2023 15:42:49 +0100 Subject: [PATCH] add `poetry.toml`, remove manual poetry config setup --- docs/DEV.md | 8 -------- poetry.toml | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 poetry.toml diff --git a/docs/DEV.md b/docs/DEV.md index 81b9daacb..5bb45adf1 100644 --- a/docs/DEV.md +++ b/docs/DEV.md @@ -12,14 +12,6 @@ If the command `pyenv` isn't recognized, it hasn't installed to your shell envir ## Poetry Poetry manages project level dependencies and local python versions. Install instructions [here](https://python-poetry.org/docs/). Make sure to follow the printed instructions and add the path to your shell environment, if running the command `poetry --version` after installation doesn't work, it means your path hasn't been updated -Set 2 config settings for poetry once you have it setup and recognized as a command -1. Set poetry to use the local version of python, to be used in conjuction with pyenv later - - - `poetry config virtualenvs.prefer-active-python true` - -2. Tell poetry to create a local folder copy of python inside .venv directory when it's called to manage a project - - - `poetry config virtualenvs.in-project true` ## New Folder Setup To Start from scratch and get a development/QA environemnt setup. This process means you will have a fresh python version with only the dependencies required by darwin-py that is uncorrupted by other packages installed on the system python - clone darwin py repo diff --git a/poetry.toml b/poetry.toml new file mode 100644 index 000000000..5fcef8cd4 --- /dev/null +++ b/poetry.toml @@ -0,0 +1,3 @@ +[virtualenvs] +in-project = true +prefer-active-python = true