Skip to content

Commit

Permalink
add poetry.toml, remove manual poetry config setup (#700)
Browse files Browse the repository at this point in the history
No good reason not to merge this now, as it's non functional, and only affects the install process.
  • Loading branch information
saurbhc authored Oct 25, 2023
1 parent be3ba68 commit 930db77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[virtualenvs]
in-project = true
prefer-active-python = true

0 comments on commit 930db77

Please sign in to comment.