Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add poetry config file poetry.toml #700

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading