Installing from the source distribution fails for Shippo 1.2.2 with Python 3.5:
[root@localhost ~]# pip install shippo
Collecting shippo
Using cached shippo-1.2.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-5_1ok3na/shippo/setup.py", line 5, in <module>
from version import VERSION
ImportError: No module named 'version'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5_1ok3na/shippo/
This is because version.py is not included in the base directory of the archive with setup.py. Moving import VERSION to beneath the line where shippo/ is added to the search paths for modules fixes this issue. I think this change also makes /version.py unnecessary.
Tests, wheels, and source distributions created on Python 2.7 and 3.5. All tests pass and all distribution packages install successfully.
Installing from the source distribution fails for Shippo 1.2.2 with Python 3.5:
This is because version.py is not included in the base directory of the archive with setup.py. Moving
import VERSION
to beneath the line where shippo/ is added to the search paths for modules fixes this issue. I think this change also makes /version.py unnecessary.Tests, wheels, and source distributions created on Python 2.7 and 3.5. All tests pass and all distribution packages install successfully.