#8 Add a script that makes it easier to track bundled libs
Closed 8 months ago by churchyard. Opened a year ago by churchyard.
rpms/ churchyard/python-pip vendor_meta  into  master

file added
+27

@@ -0,0 +1,27 @@ 

+ #!/usr/bin/bash -eu

+ 

+ if [ $# -ne 1 ]; then

+   echo "Usage: ./vendor_meta.sh pip-10.0.0/src/pip/_vendor/vendor.txt"

+   exit 1

+ fi

+ 

+ py3bundles=''

+ licenses=''

+ 

+ while read req; do

+   req=$(echo $req | cut -f1 -d' ')

+   name=$(echo $req | cut -f1 -d'=')

+   version=$(echo $req | cut -f3 -d'=' | tr -d '\r')

+   echo "Provides: bundled(python2dist($name)) = $version"

+   py3bundles="$py3bundles\nProvides: bundled(python3dist($name)) = $version"

+   license="$(pyp2rpm -v ${version} --no-venv ${name} | grep '^License:' | sed -e 's/License:\s*//')"

+   licenses="$licenses\n$name: $license"

+ done < $1

+ 

+ echo

+ echo

+ echo -e "$py3bundles"

+ 

+ echo

+ echo

+ echo -e "$licenses"

$ ./vendor_meta.sh pip-10.0.0/src/pip/_vendor/vendor.txt
Provides: bundled(python2dist(appdirs)) = 1.4.3
Provides: bundled(python2dist(distlib)) = 0.2.6
Provides: bundled(python2dist(distro)) = 1.2.0
Provides: bundled(python2dist(html5lib)) = 1.0.1
Provides: bundled(python2dist(six)) = 1.11.0
Provides: bundled(python2dist(colorama)) = 0.3.9
Provides: bundled(python2dist(CacheControl)) = 0.12.4
Provides: bundled(python2dist(msgpack-python)) = 0.5.6
Provides: bundled(python2dist(lockfile)) = 0.12.2
Provides: bundled(python2dist(progress)) = 1.3
Provides: bundled(python2dist(ipaddress)) = 1.0.19
Provides: bundled(python2dist(packaging)) = 17.1
Provides: bundled(python2dist(pyparsing)) = 2.2.0
Provides: bundled(python2dist(pytoml)) = 0.1.14
Provides: bundled(python2dist(retrying)) = 1.3.3
Provides: bundled(python2dist(requests)) = 2.18.4
Provides: bundled(python2dist(chardet)) = 3.0.4
Provides: bundled(python2dist(idna)) = 2.6
Provides: bundled(python2dist(urllib3)) = 1.22
Provides: bundled(python2dist(certifi)) = 2018.1.18
Provides: bundled(python2dist(setuptools)) = 39.0.1
Provides: bundled(python2dist(webencodings)) = 0.5.1



Provides: bundled(python3dist(appdirs)) = 1.4.3
Provides: bundled(python3dist(distlib)) = 0.2.6
Provides: bundled(python3dist(distro)) = 1.2.0
Provides: bundled(python3dist(html5lib)) = 1.0.1
Provides: bundled(python3dist(six)) = 1.11.0
Provides: bundled(python3dist(colorama)) = 0.3.9
Provides: bundled(python3dist(CacheControl)) = 0.12.4
Provides: bundled(python3dist(msgpack-python)) = 0.5.6
Provides: bundled(python3dist(lockfile)) = 0.12.2
Provides: bundled(python3dist(progress)) = 1.3
Provides: bundled(python3dist(ipaddress)) = 1.0.19
Provides: bundled(python3dist(packaging)) = 17.1
Provides: bundled(python3dist(pyparsing)) = 2.2.0
Provides: bundled(python3dist(pytoml)) = 0.1.14
Provides: bundled(python3dist(retrying)) = 1.3.3
Provides: bundled(python3dist(requests)) = 2.18.4
Provides: bundled(python3dist(chardet)) = 3.0.4
Provides: bundled(python3dist(idna)) = 2.6
Provides: bundled(python3dist(urllib3)) = 1.22
Provides: bundled(python3dist(certifi)) = 2018.1.18
Provides: bundled(python3dist(setuptools)) = 39.0.1
Provides: bundled(python3dist(webencodings)) = 0.5.1



appdirs: MIT
distlib: Python license
distro: Apache License, Version 2.0
html5lib: MIT License
six: MIT
colorama: BSD
CacheControl: None
msgpack-python: Apache 2.0
lockfile: None
progress: ISC
ipaddress: Python Software Foundation License
packaging: BSD or Apache License, Version 2.0
pyparsing: MIT License
pytoml: MIT
retrying: Apache 2.0
requests: Apache 2.0
chardet: LGPL
idna: BSD-like
urllib3: MIT
certifi: MPL-2.0
setuptools: None
webencodings: BSD

The licensing info is far from perfect, yet at least it's something.

I have no idea. Do we want to track such files in dist git? Nobody seems to care :(

It's official, nobody cares.

Pull-Request has been closed by churchyard

8 months ago