prjemian / pyRestTable

Format a nice table in reST (reStructuredText) from Python

Home Page:http://prjemian.github.io/pyRestTable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest version uploaded to pypi does not have the source zip included

aramboi opened this issue · comments

This prevents installing the latest version if pyRestTable is in the install_requires of another package, and throws an error on installation because an older version is found on Pypi, namely 2016.1021.0:

Searching for pyRestTable
Reading https://pypi.python.org/simple/pyRestTable/
/usr/lib/python2.7/site-packages/pkg_resources/__init__.py:2510: PEP440Warning: 'pyRestTable (2014-02-15)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as les
s than 0.0. It is recommend to migrate to PEP 440 compatible versions.
  PEP440Warning,
Best match: pyRestTable 2016.1021.0
Downloading https://pypi.python.org/packages/fd/27/b3746c5e5ea5a8992ae2772d5eeeed573cdb84b7cf10a67993269559d69c/pyRestTable-2016.1021.0.zip#md5=77c3724b2deac0d935bcecdbfcb54012
Processing pyRestTable-2016.1021.0.zip
Writing /tmp/easy_install-Y49xQ_/pyRestTable-2016.1021.0/setup.cfg
Running pyRestTable-2016.1021.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Y49xQ_/pyRestTable-2016.1021.0/egg-dist-tmp-spoc4c
zip_safe flag not set; analyzing archive contents...
pyRestTable.__init__: module references __file__
pyRestTable._version: module references __file__
creating /usr/lib/python2.7/site-packages/pyRestTable-2016.1021.0-py2.7.egg
Extracting pyRestTable-2016.1021.0-py2.7.egg to /usr/lib/python2.7/site-packages
Adding pyRestTable 2016.1021.0 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/pyRestTable-2016.1021.0-py2.7.egg

Installing via pip works without any issues because it uses the wheel archive, while setuptools seems to look for the zipped source code.

Uploaded a source distribution file now. See: https://pypi.python.org/pypi?name=pyRestTable&version=2016.1024.0&:action=files

The commands are included in pypi.bat so this should be SOP from now on. Your point that sdist upload is useful is good.

Thanks for the quick fix.