amoffat / sh

Python process launching

Home Page:https://sh.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install sh 2.0.2 in Poetry due to python constraint

antdking opened this issue · comments

We have a library that supports python 3.8.0+.

Unfortunately, this means we can't install sh>=2.0 in Poetry (yes, it's their backwards constraint at fault) without messy conditional constraints.

The current project's Python requirement (>=3.8.0,<3.12.0) is not compatible with some of the required packages Python requirement:
  - sh requires Python >=3.8.1,<4.0, so it will not be satisfied for Python >=3.8.0,<3.8.1

Because no versions of sh match >2.0.2,<3.0.0
 and sh (2.0.2) requires Python >=3.8.1,<4.0, sh is forbidden.
So, because datapane-components depends on sh (^2.0.2), version solving failed.

Can you relax your constraint to be >=3.8.0 please? I can't see any reference for why it needs to be pinned to >=3.8.1.

This is a consequence of our flake8 dependency, which requires Python >= 3.8.1. See https://github.com/PyCQA/flake8/blob/45699b61ae4522864c60480c80d7c2ffb952d52e/setup.cfg#L41

ah ha! I see you're also bitten by the same logic.

No worries!