Support for PyPi sdist
Closed this issue · 3 comments
We are using ubi_reader as a dependency link in our PyPI repository.
pip install imgunbundler --extra-index-url http://myrepo:8081/simple --trusted-host myrepo --process-dependency-links -v
We are starting to hit some issues with upper versions of pip not properly processing the dependency links. We even read that it could be eventually they stop supporting dependency links due to security issues. We were wondering if we could help get a sdist up to the official pypi repository so the community of users could take advantage of the Python Package Index.
Hi jwstric2,
That sounds like a good idea. I looked over the process, looks like I just need to register, fill out some forms and upload. Should be able to get that up over the weekend or very soon at least.
-Jason
Hi jwstric2,
I uploaded it to PyPi https://pypi.python.org/pypi/ubi-reader/0.5.0 Let me know how/if it works for you, I've never uploaded a package to PyPi, but think I got it right.
-Jason
Jason,
This looks great and from early indications seems to work great. See below for a quick install/manual test with our application:
pip.log from install (pip 9.0.1):
Collecting ubi-reader==0.5 (from imgunbundler==1.5.1)
3 location(s) to search for versions of ubi-reader:
* https://pypi.python.org/simple/ubi-reader/
* http://trust-dev-2.cisco.com:8081/simple/ubi-reader/
* http://trust-dev-2.cisco.com:8081/simple/ubi-reader/
Getting page https://pypi.python.org/simple/ubi-reader/
Analyzing links from page https://pypi.python.org/simple/ubi-reader/
Found link https://pypi.python.org/packages/aa/76/baae6e67580b4ea8d7420e27737eb4d4e9b61de9bad613f7d483454eb063/ubi_reader-0.5.0.tar.gz#md5=2438446f562d8ffbc4100df655fd8ed6 (from https://pypi.python.org/simple/ubi-reader/), version: 0.5.0
Getting page http://trust-dev-2.cisco.com:8081/simple/ubi-reader/
Analyzing links from page https://pypi.python.org/simple/ubi-reader/
Found link https://pypi.python.org/packages/aa/76/baae6e67580b4ea8d7420e27737eb4d4e9b61de9bad613f7d483454eb063/ubi_reader-0.5.0.tar.gz#md5=2438446f562d8ffbc4100df655fd8ed6 (from https://pypi.python.org/simple/ubi-reader/), version: 0.5.0
Using version 0.5.0 (newest of versions: 0.5.0)
Downloading ubi_reader-0.5.0.tar.gz
Downloading from URL https://pypi.python.org/packages/aa/76/baae6e67580b4ea8d7420e27737eb4d4e9b61de9bad613f7d483454eb063/ubi_reader-0.5.0.tar.gz#md5=2438446f562d8ffbc4100df655fd8ed6 (from https://pypi.python.org/simple/ubi-reader/)
Running setup.py (path:/tmp/pip-build-VPDCiR/ubi-reader/setup.py) egg_info for package ubi-reader
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/ubi_reader.egg-info
writing pip-egg-info/ubi_reader.egg-info/PKG-INFO
writing top-level names to pip-egg-info/ubi_reader.egg-info/top_level.txt
writing dependency_links to pip-egg-info/ubi_reader.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/ubi_reader.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/ubi_reader.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/ubi_reader.egg-info/SOURCES.txt'
Source in /tmp/pip-build-VPDCiR/ubi-reader has version 0.5.0, which satisfies requirement ubi-reader==0.5 from https://pypi.python.org/packages/aa/76/baae6e67580b4ea8d7420e27737eb4d4e9b61de9bad613f7d483454eb063/ubi_reader-0.5.0.tar.gz#md5=2438446f562d8ffbc4100df655fd8ed6 (from imgunbundler==1.5.1)
Virtual Environment Path from the download:
[root@trust-reg-13 ubireader]# pwd
/usr/local/share/coronafm_virtualenv/lib/python2.7/site-packages/ubireader
[root@trust-reg-13 ubireader]# ls -al
total 72
drwxr-xr-x. 4 root root 4096 Apr 2 22:39 .
drwxr-xr-x. 33 root root 4096 Apr 2 22:39 ..
-rw-r--r--. 1 root root 1842 Apr 2 22:39 debug.py
-rw-r--r--. 1 root root 1471 Apr 2 22:39 debug.pyc
-rw-r--r--. 1 root root 0 Apr 2 22:39 __init__.py
-rw-r--r--. 1 root root 141 Apr 2 22:39 __init__.pyc
-rw-r--r--. 1 root root 1383 Apr 2 22:39 settings.py
-rw-r--r--. 1 root root 442 Apr 2 22:39 settings.pyc
drwxr-xr-x. 3 root root 4096 Apr 2 22:39 ubi
drwxr-xr-x. 2 root root 4096 Apr 2 22:39 ubifs
-rw-r--r--. 1 root root 7670 Apr 2 22:39 ubi_io.py
-rw-r--r--. 1 root root 8394 Apr 2 22:39 ubi_io.pyc
-rw-r--r--. 1 root root 5337 Apr 2 22:39 utils.py
-rw-r--r--. 1 root root 4106 Apr 2 22:39 utils.pyc
Pip list
[root@trust-reg-13 ~]# source /usr/local/share/coronafm_virtualenv/bin/activate
(coronafm_virtualenv)[root@trust-reg-13 ~]# pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
appdirs (1.4.3)
construct (2.5.3)
cstruct (1.0)
distribute (0.7.3)
imgunbundler (1.5.1)
libarchive (0.4.3)
libqcow-python (20160119)
nose (1.3.7)
nose2 (0.6.5)
packaging (16.8)
pip (9.0.1)
pyliblzma (0.5.3)
pyparsing (2.2.0)
python-lzo (1.11)
setuptools (34.3.3)
six (1.10.0)
ubi-reader (0.5.0)
virtualenv (13.1.2)
wheel (0.24.0)
A quick test revealed the application correctly loading the library and correctly running. Thank you for taking the time to look at this.
Thanks again,
Jonathan