Poetry: get-poetry.py to install from git

Created on 18 Mar 2019  路  10Comments  路  Source: python-poetry/poetry

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the documentation and believe that my question is not covered.

Question

How do I get get-poetry.py to install the newest version of poetry from git? i.e. to install something even newer than the newest pre-release release on GH?

stale

Most helpful comment

I am not specifically trying to run get-poetry.py against git. What I am trying to do is:

  1. Use features that have been added to poetry since the last release (specifically #757)
  2. Not pollute my virtualenv with the deps of poetry. get-poetry.py handles this, but I am open to other solutions.

All 10 comments

What's wrong with?

git clone ...
cd poetry
python setup.py

No setup.py for one.

Ohhh...
You are right of course... the power of habit...
Anyway, I am not sure if pip supports this yet. A workaround could be to install a (pre-)released poetry version and then use it to create a newer poetry wheel using poetry build. Not really elegant, but...

Once I have the wheel (which I built along the lines outlined), how do I get get-poetry.py to install that wheel such that the install doesn't conflict with the package deps. (i.e. I can't just run pip install on the wheel).

You will use pip to install the wheel.

But all this feels a bit strange. What exactly are you trying to achieve? Help in development? Try a new feature?

It's not a question for a senior Python & Github user.
And it is not the purpose of get-poetry.py.

I am not specifically trying to run get-poetry.py against git. What I am trying to do is:

  1. Use features that have been added to poetry since the last release (specifically #757)
  2. Not pollute my virtualenv with the deps of poetry. get-poetry.py handles this, but I am open to other solutions.

For others who find this - I'm currently using the workaround described by @pmav99

A workaround could be to install a (pre-)released poetry version and then use it to create a newer poetry wheel using poetry build.

#!/bin/bash

set -ex

pip install poetry
git clone --branch develop --single-branch https://github.com/sdispater/poetry
cd poetry
poetry build
pip install dist/poetry*.whl

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings