Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone a Poetry project onto my PC and continue using Poetry

It seems a simple question. I forked someone else's Github repository. This project is developed with and dependencies are managed by Poetry. The directory structure is there, pyproject.toml is there, poetry.lock is there.

I have set up poetry on my local PC. And now what?

I have gone through 473 tutorials and all tell me how to set up a new Poetry project. In the best case they also tell how to create a new repo on Github, and create a new Poetry project out of it. Some explain how to migrate an existing non-Poetry project to Poetry.

I don't want to. This is what I want:

  • Clone a project which is developed using Poetry
  • Run the Python application, find the bug, whatever, change the code retest, and commit to git.
  • Just as the upstream developer did when he was working on this project.

I know how to use Git. I know how to use Github. I have installed Poetry and created a new test project. I can run it, I have a virtual environment, I can use Poetry shell.

I just don't know how to clone an existing Github project and continue developing in the Poetry environment.

I am using a Linux platform but I think the question is platform independent.

like image 588
Johannes Linkels Avatar asked Nov 27 '25 19:11

Johannes Linkels


1 Answers

poetry install
poetry run python YOUR_SCRIPT_NAME.py

Just extending answer from comments @tbrugere @chepner

like image 84
Dan.py Avatar answered Nov 30 '25 09:11

Dan.py



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!