myint / yolk

Command-line tool for querying PyPI and Python packages installed on your system (with Python 3 support)
https://pypi.python.org/pypi/yolk3k
BSD 3-Clause "New" or "Revised" License
66 stars 12 forks source link

yolk -V reports versions even if they have no download available #4

Closed coventry closed 9 years ago

coventry commented 9 years ago

Is this intended/documented behavior?

% yolk -V theano # Reports unavailable version
Theano 0.7.0rc2
% #####################################################################
% # Demonstrations that it's unavailable at the moment
% #####################################################################
% pip install theano==0.7.0rc2
Collecting theano==0.7.0rc2
  Could not find a version that satisfies the requirement theano==0.7.0rc2 (from versions: 0.3.0rc4, 0.3.0, 0.3.1rc1, 0.3.1rc2, 0.3.1, 0.4.0rc1, 0.4.0rc2, 0.4.0rc3, 0.4.0rc4, 0.4.0, 0.4.1rc1, 0.4.1rc2, 0.4.1, 0.5.0rc1, 0.5.0rc2, 0.5.0, 0.6.0rc1, 0.6.0rc2, 0.6.0rc3, 0.6.0rc5, 0.6.0)
  No distributions matching the version for theano==0.7.0rc2
% wget -q -O - https://pypi.python.org/simple/theano/ | grep 0.7.0rc2
% 
myint commented 9 years ago

I get different output:

$ wget -q -O - https://pypi.python.org/simple/theano/ | grep 0.7.0rc2
<a href="../../packages/source/T/Theano/Theano-0.7.0rc2.tar.gz#md5=86f22ad5de5cfcce79bdee354bf1a313" rel="internal">Theano-0.7.0rc2.tar.gz</a><br/>
<a href="../../packages/source/T/Theano/Theano-0.7.0rc2.zip#md5=1ad767188042be049345643decf449d8" rel="internal">Theano-0.7.0rc2.zip</a><br/>

Maybe there was some lag between the author creating the release and actually uploading the tarball.

coventry commented 9 years ago

Yes, it was corrected after I reported the problem. It might be good if yolk provided a warning and a suggestion to contact the package owner when it encounters this discrepancy.