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

Ideas #1

Open
rcaneill opened this issue Mar 24, 2022 · 4 comments
Open

Ideas #1

rcaneill opened this issue Mar 24, 2022 · 4 comments

Comments

@rcaneill
Copy link
Owner

So here is the story:

I had a pipenv environment that I somehow broke when installing a package. I did not had proper git versionning of the Pipfile and Pipfile.lock so I spent 3 days correcting my error. In the meantime I also shifted from pipenv to poetry. Anyway, I need to ensure that this will never happen to me again!

Now, how to do it? The idea is to create a new git branch before updating / installing a new package, do all stuff in this branch, run tests, and if everything is fine, merge to master.

Sticky notes:

  • Use poetry.toml (or poetry config --local virtualenvs.path ~/tmp/pypoetry)
$ cat poetry.toml
[virtualenvs]
path = "/home/romain/tmp/pypoetry"
  • Use git branch --show-current or echo $(git branch --show-current) to use git branch name in virtualenvs.path
@rcaneill
Copy link
Owner Author

  • Think how to write tests for the updates / installs
  • Think how to write tests for this repository
  • What language to use? Python? Bash?

@rcaneill
Copy link
Owner Author

@rcaneill
Copy link
Owner Author

See python-poetry/poetry#1579

@rcaneill
Copy link
Owner Author

See python-poetry/poetry#2404

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

No branches or pull requests

1 participant