Re: [Distutils] specifying dependencies to latest major/minor

Dec. 3, 2010
3:13 p.m.
At 03:14 PM 12/3/2010 +0100, Alan Franzoni wrote:
Hello, I've got some issues with dependency specification; this seems to apply both to setuptools and distribute.
Let's suppose I want to have a dependency on a certain library major.minor , because I want to depend on a certain API - which is supposed to be stable for that lib unless at least the minor changes - but I want to pick in any bugfix release they might end up with.
I'd like to do something like "pick up the latest 1.1 release of mylib"
The only way to do it seems to be this:
install_requires = [ "mylib>=1.1, <1.1.999" ]
if I use just == 1.1 , it picks 1.1.0 . If I use >= 1.1 and <1.2.0, it will pick beta releases for 1.2 as well.
Use ">=1.1,<1.2dev".
5228
Age (days ago)
5228
Last active (days ago)
0 comments
1 participants
participants (1)
-
P.J. Eby