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

get-poetry.py to install from git #968

Closed
2 tasks done
cancan101 opened this issue Mar 18, 2019 · 11 comments
Closed
2 tasks done

get-poetry.py to install from git #968

cancan101 opened this issue Mar 18, 2019 · 11 comments

Comments

@cancan101
Copy link

  • 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 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?

@pmav99
Copy link
Contributor

pmav99 commented Mar 19, 2019

What's wrong with?

git clone ...
cd poetry
python setup.py

@cancan101
Copy link
Author

No setup.py for one.

@pmav99
Copy link
Contributor

pmav99 commented Mar 19, 2019

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...

@cancan101
Copy link
Author

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).

@pmav99
Copy link
Contributor

pmav99 commented Mar 19, 2019

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?

@cancan101
Copy link
Author

I am looking to use: #757.

@cancan101
Copy link
Author

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 Install: option to skip current project package #757)
  2. Not pollute my virtualenv with the deps of poetry. get-poetry.py handles this, but I am open to other solutions.

@tommilligan
Copy link
Contributor

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

@stale
Copy link

stale bot commented Dec 10, 2019

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.

@stale stale bot added the stale label Dec 10, 2019
@finswimmer
Copy link
Member

This is now possible using the new installer script install-poetry.py

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants