[MacPorts] #64429: poetry: dependency issues with 'keyring' (was: Python poetry dependency issues with 'keyring')

MacPorts noreply at macports.org
Fri Jan 14 03:20:39 UTC 2022


#64429: poetry: dependency issues with 'keyring'
-------------------------------+----------------------
  Reporter:  danieljamesscott  |      Owner:  dgilman
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:
Resolution:                    |   Keywords:
      Port:  poetry            |
-------------------------------+----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => dgilman


Old description:

> When running poetry, I receive the following error:
>
> pkg_resources.DistributionNotFound: The 'keyring<22.0.0,>=21.2.0'
> distribution was not found and is required by poetry
>
> This seems to be caused by the file
> /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
> /site-packages/poetry-1.1.12-py3.9.egg-info/requires.txt which contains
> this restriction.
>
> I currently have poetry 1.1.12 installed, which only appears to set a
> lower bound on keyring https://github.com/python-
> poetry/poetry/blob/master/pyproject.toml#L46 so I'm not sure where the
> upper limit is being set.
>
> Should this limit be set? Is it possible to remove/increase the upper
> bound of the dependency?

New description:

 When running poetry, I receive the following error:

 {{{
 pkg_resources.DistributionNotFound: The 'keyring<22.0.0,>=21.2.0'
 distribution was not found and is required by poetry
 }}}

 This seems to be caused by the file
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/poetry-1.1.12-py3.9.egg-info/requires.txt which contains
 this restriction.

 I currently have poetry 1.1.12 installed, which only appears to set a
 lower bound on keyring https://github.com/python-
 poetry/poetry/blob/master/pyproject.toml#L46 so I'm not sure where the
 upper limit is being set.

 Should this limit be set? Is it possible to remove/increase the upper
 bound of the dependency?

--

Comment:

 poetry changed its keyring dependency to `>=21.2.0` in [https://github.com
 /python-poetry/poetry/commit/06dfddece6d8865f12324664e74959884ba3ea27 this
 commit]. Although 1.1.12 was released in November 2021 and the above
 change was made in May 2021, it was not included in the 1.1.12 release
 because the change was made on the master branch while the 1.1.12 release
 was cut from the 1.1 branch. I [https://github.com/python-
 poetry/poetry/pull/4003#issuecomment-1012713559 asked them] to backport
 this fix to the 1.1 branch. In the mean time, we could backport the fix in
 the Portfile.

-- 
Ticket URL: <https://trac.macports.org/ticket/64429#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list