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

feat: Use poetry everywhere #463

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat: Use poetry everywhere #463

wants to merge 6 commits into from

Conversation

theskumar
Copy link
Member

@theskumar theskumar commented Jan 3, 2023

Why was this change necessary?

This project gereates requirements.txt for legacy reasons
which didn't require poetry to be installed on the CI, heroku
or other places.

Installing poetry is cheap and infact used in the docker and github
actions already. This PR installs poetry during setup with ansible and
heroku as well. Eliminating the need for keeping requirements.txt in the
source control. poetry.lock is used instead for installation via poetry cli.

How does it address the problem?

  • Update ansible to use poetry
  • Do not generate requirements.txt files from poetry
  • Upgrade poetry version to 1.3.1

Are there any side effects?

Poetry becomes a hard dependency for installing and managing
python dependencies everywhere.

closes: #476

- Update ansible to use poetry
- Do not generate requirements.txt files from poetry
- Upgrade poetry version to 1.3.1
@CuriousLearner
Copy link
Contributor

The changes looks good to me. However, I was thinking to keep vagrant (and possibly update it with the latest Ubuntu version on AWS). My rationale on keeping it is that it helps in testing ansible deployments and any changes that are done there. Otherwise, they'll have to be tested on a dev/qa server.

Please let me know what you think.

@theskumar
Copy link
Member Author

I was more worried about its maintainability of it. But a agree that it's useful. If it can be updated to match with the supported version it will be worth not removing it.

@CuriousLearner
Copy link
Contributor

#465

@theskumar theskumar changed the title feat: Use poetry everywhere, remove vagrant support feat: Use poetry everywhere Dec 20, 2023
@theskumar
Copy link
Member Author

Updated code so it doesn't touch on vagrant or VM setup

@theskumar theskumar self-assigned this Dec 20, 2023
@theskumar theskumar marked this pull request as draft December 20, 2023 14:54
@theskumar theskumar marked this pull request as ready for review December 20, 2023 15:05
@skhaz
Copy link

skhaz commented Dec 20, 2023

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Handle poetry in provisioner/ansible setup
3 participants