ApprovalTests.Python icon indicating copy to clipboard operation
ApprovalTests.Python copied to clipboard

When I install approvaltests with poetry add, approval_utilities is not installed as a required dependency

Open jmasonlee opened this issue 2 years ago • 2 comments

jmasonlee avatar Apr 05 '23 20:04 jmasonlee

To give more context:

❯ python --version
Python 3.11.8

❯ poetry --version
Poetry (version 1.8.2)

❯ poetry new foobar
Created package foobar in foobar

❯ cd foobar

❯ poetry add approvaltests
Creating virtualenv foobar-GBYzWmta-py3.11 in /home/pez/.cache/pypoetry/virtualenvs
Using version ^11.2.0 for approvaltests

Updating dependencies
Resolving dependencies... (0.0s)

Because no versions of approvaltests match >11.2.0,<12.0.0
 and approvaltests (11.2.0) depends on approval-utilities (11.2.0), approvaltests (>=11.2.0,<12.0.0) requires approval-utilities (11.2.0).
So, because no versions of approval-utilities match 11.2.0
 and foobar depends on approvaltests (^11.2.0), version solving failed.

alepez avatar Apr 09 '24 10:04 alepez

When specifying the version to 11.1.3, it works as expected.

poetry add approvaltests@=11.1.3

so this issue seems to be affecting only the last version 11.2.0

alepez avatar Apr 09 '24 10:04 alepez