pyup icon indicating copy to clipboard operation
pyup copied to clipboard

Support python_version in requirements

Open BoboTiG opened this issue 8 years ago • 3 comments

Before all: great service/tool, thank you :)

Take this line:

pypiwin32==219;python_version=='2.7'

It will open a PR saying that the version 220 is available. But that new version (https://pypi.python.org/pypi/pypiwin32) is not available for Python 2.7.

BoboTiG avatar Jul 16 '17 13:07 BoboTiG

Ah, that makes sense. With the transition from Python 2 to 3, more and more libraries will probably be Python 3 only. That'd be a great feature to have.

For the time being, as a workaround, you can tell the bot you want to stay on 219 by adding a filter:

pypiwin32==219;python_version=='2.7' # pyup: <=219

jayfk avatar Jul 16 '17 14:07 jayfk

Thank you for the workaround!

BoboTiG avatar Jul 16 '17 14:07 BoboTiG

@jayfk I'm also interested in a future support of environment markers such as python_version=='2.7' and others.

A support for that however would require that a pyup run is performed in context of a particular environment, e.g. a Python version, or an OS version. That would need to be specifiable in the pyup config file. Thoughts?

andy-maier avatar Nov 16 '18 14:11 andy-maier