You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I.e., pointing to the latest release of the package (or compatible).
I'd like to package the package as an RPM for CentOS 8 (+ EPEL), where importlib-metadata ^3.7.3 is not available, but 0.23 is. I have a nox session which tests whether my code works with 0.23 (it does), so now I'd like to specify in pyproject.toml the package works with ==0.23 || ^3.7.3. This seems to be needed because if I simply keep ^3.7.3 the CLI entry-point fails to load when running on CentOS 8 (when python3-importlib-metadata, i.e. version 0.23 is installed):
DistributionNotFound: The 'importlib-metadata<4.0.0,>=3.7.3' distribution was not found and is required by gptsum.
However, I can't figure out how to specify these 'or' version bounds properly, and for them to be accepted by all pieces of the stack (i.e., Poetry, Setuptools, Pip,...).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a project which depends on the
importlib-metadata
package. Inpyproject.toml
, this dependency is specified usingI.e., pointing to the latest release of the package (or compatible).
I'd like to package the package as an RPM for CentOS 8 (+ EPEL), where
importlib-metadata ^3.7.3
is not available, but0.23
is. I have anox
session which tests whether my code works with0.23
(it does), so now I'd like to specify inpyproject.toml
the package works with==0.23 || ^3.7.3
. This seems to be needed because if I simply keep^3.7.3
the CLI entry-point fails to load when running on CentOS 8 (whenpython3-importlib-metadata
, i.e. version0.23
is installed):However, I can't figure out how to specify these 'or' version bounds properly, and for them to be accepted by all pieces of the stack (i.e., Poetry, Setuptools, Pip,...).
PEP440 doesn't really bring much hope...
Is this possible at all?
Beta Was this translation helpful? Give feedback.
All reactions