question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do you pip install package maintained with poetry from github?

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Question

How do you pip instal package (maintained with poetry) from github? When I want people to try latest development version from github, they can’t install it in their venv using pip install git+URL because repo doesn’t have setup.py file. What’s the best solution here - should I add ./dist/* to github, manually create setupy.py or something else?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:24
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

20reactions
jhrmnncommented, Jan 28, 2019

Pip 19.0 was released on 22 January 2019, and I have just successfully Pip-installed a Poetry-managed Python package from a git repository without setup.py. So I guess this issue can be closed.

6reactions
yisraeldovcommented, Aug 15, 2019

@jhrmnn Can you tell he how you got this to work ?

I’m using pip 19.2.2 and I can’t seem to install my poetry project using pip

pip install -e git+git@gitlab.com:yisraeldov/gpiozero-shiftregister.git#egg=gpiozero_shiftregister

It is still trying to run setup.py


...
 FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/hardware/driver/.venv/src/gpiozero-shiftregister/setup.py'

Thanks for any help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependency Management With Python Poetry
With the install command, Poetry checks your pyproject.toml file for dependencies then resolves and installs them. The resolving part is ...
Read more >
Introduction | Documentation | Poetry - Python dependency ...
Installation # · Add Poetry to your PATH. The installer creates a poetry wrapper in a well-known, platform-specific directory: $HOME/.local/bin on Unix. ·...
Read more >
pip install your poetry.lock - bneijt.nl
The best way to install poetry-lock-package is to just add it to poetry using poetry add --dev poetry-lock-package . You could also use...
Read more >
poetry - PyPI
Poetry : Python packaging and dependency management made easy ... Poetry helps you declare, manage and install dependencies of Python projects, ensuring you...
Read more >
Stop using Pip, use Poetry Instead! | by Nick Anthony | Medium
With all that out of the way, poetry usage is as straightforward as pip. We can simply poetry install <package-name> to install our...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found