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

Add support for installation of poetry 2.x #164

Open
moattarwork opened this issue Jan 15, 2025 · 7 comments
Open

Add support for installation of poetry 2.x #164

moattarwork opened this issue Jan 15, 2025 · 7 comments

Comments

@moattarwork
Copy link

Currently, the issue can be resolved by referring to the hashcode of the 2.0.1 as

      - name: Install Poetry
        uses: snok/install-poetry@v1
        with:
          installation-arguments: --git https://github.com/python-poetry/poetry.git@bd500dd3bdfaec3de6894144c9cedb3a9358be84

However I think it requires a more sustainable solution possible using pipx

@sondrelg
Copy link
Member

What happens if you specify version: 2.0.1?

bahill added a commit to broadinstitute/hca-ingest-migration that referenced this issue Feb 3, 2025
@mahmoudhossam
Copy link
Contributor

What happens if you specify version: 2.0.1?

Fails for me even if I specify 2.0.1

@gitonthescene
Copy link

gitonthescene commented Feb 12, 2025

FWIW, my workflow is failing for python3.8. I believe it's related to this issue.

It took me a while to generate the log from the workflow in my own Docker instance, but this is what it shows:

ERROR: Could not find a version that satisfies the requirement poetry==2.0.1 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.0.post1, 0.4.1, 0.4.2, 0.5.0b1, 0.5.0b2, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3b1, 0.6.3b2, 0.6.3b3, 0.6.3b4, 0.6.3b5, 0.6.3b6, 0.6.3b7, 0.6.3, 0.6.4b1, 0.6.4, 0.6.5, 0.7.0b1, 0.7.0b2, 0.7.0b3, 0.7.0b4, 0.7.0, 0.7.1, 0.8.0a0, 0.8.0a1, 0.8.0a2, 0.8.0a3, 0.8.0a4, 0.8.0, 0.8.1a0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5a0, 0.8.5, 0.8.6, 0.9.0a0, 0.9.0a1, 0.9.0a2, 0.9.0a3, 0.9.0, 0.9.1, 0.10.0a0, 0.10.0a1, 0.10.0a2, 0.10.0a3, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0a0, 0.11.0a1, 0.11.0a2, 0.11.0a3, 0.11.0a4, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.12.0a0, 0.12.0a1, 0.12.0a2, 0.12.0a3, 0.12.0a4, 0.12.0a5, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 0.12.6, 0.12.7, 0.12.8, 0.12.9, 0.12.10, 0.12.11, 0.12.12, 0.12.13, 0.12.14, 0.12.15, 0.12.16, 0.12.17, 1.0.0a0, 1.0.0a1, 1.0.0a2, 1.0.0a3, 1.0.0a4, 1.0.0a5, 1.0.0b1, 1.0.0b2, 1.0.0b3, 1.0.0b4, 1.0.0b5, 1.0.0b6, 1.0.0b7, 1.0.0b8, 1.0.0b9, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.1.0a1, 1.1.0a2, 1.1.0a3, 1.1.0b1, 1.1.0b2, 1.1.0b3, 1.1.0b4, 1.1.0rc1, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.1.11, 1.1.12, 1.1.13, 1.1.14, 1.1.15, 1.2.0a1, 1.2.0a2, 1.2.0b1, 1.2.0b2, 1.2.0b3, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5)
ERROR: No matching distribution found for poetry==2.0.1

Traceback:

  File "/tmp/tmp.Wpwszq2GDN", line 937, in main
    return installer.run()
  File "/tmp/tmp.Wpwszq2GDN", line 574, in run
    self.install(version)
  File "/tmp/tmp.Wpwszq2GDN", line 596, in install
    self.install_poetry(version, env)
  File "/tmp/tmp.Wpwszq2GDN", line 699, in install_poetry
    env.pip("install", specification)
  File "/tmp/tmp.Wpwszq2GDN", line 389, in pip
    return self.python("-m", "pip", *args, **kwargs)
  File "/tmp/tmp.Wpwszq2GDN", line 386, in python
    return self.run(self._python, *args, **kwargs)
  File "/tmp/tmp.Wpwszq2GDN", line 379, in run
    raise PoetryInstallationError(

@sondrelg
Copy link
Member

@gitonthescene
Copy link

That look like the exact issue I linked to.

@sondrelg
Copy link
Member

It is. And it states the reason why python 3.8 will fail: Poetry v2 requires Python 3.9+.

@gitonthescene
Copy link

right

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

4 participants