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

Upgrade to Poetry #853

Closed
karkir0003 opened this issue Jul 7, 2023 · 0 comments · Fixed by #863
Closed

Upgrade to Poetry #853

karkir0003 opened this issue Jul 7, 2023 · 0 comments · Fixed by #863
Assignees
Labels
backend backend tasks dependencies Pull requests that update a dependency file

Comments

@karkir0003
Copy link
Member

Currently, our python backend strongly depends on anaconda to manage the environment + packages. This results in a lack of dev/prod separation.

Solution: Use poetry as a python package manager tool to better define our dev/prod dependencies.

  1. Create pyproject.toml file in the poetry-setup branch. the initial file is created, but you will have to populate the dependencies (look in conda/environment.yml or requirements.txt for inspiration)
  2. add python dependencies to be used in dev or prod mode
  3. update python build check github actions to use poetry to setup environment
  4. update dockerfiles to use poetry to setup environment
  5. Ensure that if u install a python dependency, the pyproject.toml file is updated (we don't want to manually add dependencies to environment.yml file or requirements.txt)

Goal: our frontend and backend both have package manager support that automatically gives the updated set of dependencies for setting up frontend and backend services

Branch setup instructions:

git switch poetry-setup

if that doesn't work, try the following

git fetch origin
git switch -c poetry-setup origin/poetry-setup
@karkir0003 karkir0003 added dependencies Pull requests that update a dependency file backend backend tasks labels Jul 7, 2023
@codingwithsurya codingwithsurya linked a pull request Jul 9, 2023 that will close this issue
@karkir0003 karkir0003 removed a link to a pull request Jul 12, 2023
@codingwithsurya codingwithsurya linked a pull request Jul 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend backend tasks dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants