[meta-virtualization] [PATCH] python-docker-pycreds & python-docker: Add recipe for python2

David Bensoussan minipada at gmail.com
Fri Jan 25 05:19:20 PST 2019


---
 recipes-devtools/python/python-docker-pycreds.inc   |  7 +++++++
 .../python/python-docker-pycreds_0.2.1.bb           |  3 +++
 recipes-devtools/python/python-docker.inc           |  5 +++++
 recipes-devtools/python/python-docker_2.5.1.bb      | 11 +++++++++++
 .../python/python3-docker-pycreds_0.2.1.bb          |  8 +-------
 recipes-devtools/python/python3-docker_2.5.1.bb     | 13 +++----------
 6 files changed, 30 insertions(+), 17 deletions(-)
 create mode 100644 recipes-devtools/python/python-docker-pycreds.inc
 create mode 100644 recipes-devtools/python/python-docker-pycreds_0.2.1.bb
 create mode 100644 recipes-devtools/python/python-docker.inc
 create mode 100644 recipes-devtools/python/python-docker_2.5.1.bb

diff --git a/recipes-devtools/python/python-docker-pycreds.inc b/recipes-devtools/python/python-docker-pycreds.inc
new file mode 100644
index 0000000..e76267d
--- /dev/null
+++ b/recipes-devtools/python/python-docker-pycreds.inc
@@ -0,0 +1,7 @@
+SUMMARY = "Python bindings for the docker credentials store API"
+HOMEPAGE = "https://github.com/shin-/dockerpy-creds"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI[md5sum] = "0d80d5aebab771faf7e422b759c3055b"
+SRC_URI[sha256sum] = "93833a2cf280b7d8abbe1b8121530413250c6cd4ffed2c1cf085f335262f7348"
diff --git a/recipes-devtools/python/python-docker-pycreds_0.2.1.bb b/recipes-devtools/python/python-docker-pycreds_0.2.1.bb
new file mode 100644
index 0000000..f6ddc8d
--- /dev/null
+++ b/recipes-devtools/python/python-docker-pycreds_0.2.1.bb
@@ -0,0 +1,3 @@
+inherit pypi setuptools
+
+require python-docker-pycreds.inc
diff --git a/recipes-devtools/python/python-docker.inc b/recipes-devtools/python/python-docker.inc
new file mode 100644
index 0000000..f23b537
--- /dev/null
+++ b/recipes-devtools/python/python-docker.inc
@@ -0,0 +1,5 @@
+SRC_URI[md5sum] = "7d917152976df075e6e90ee853df641f"
+SRC_URI[sha256sum] = "b876e6909d8d2360e0540364c3a952a62847137f4674f2439320ede16d6db880"
+
+DEPENDS += "${PYTHON_PN}-pip-native"
+
diff --git a/recipes-devtools/python/python-docker_2.5.1.bb b/recipes-devtools/python/python-docker_2.5.1.bb
new file mode 100644
index 0000000..9dc83e8
--- /dev/null
+++ b/recipes-devtools/python/python-docker_2.5.1.bb
@@ -0,0 +1,11 @@
+inherit pypi setuptools
+
+RDEPENDS_${PN} += " \
+	python-backports-ssl \
+	python-docker-pycreds \
+	python-requests \
+	python-websocket-client \
+"
+
+require python-docker.inc
+
diff --git a/recipes-devtools/python/python3-docker-pycreds_0.2.1.bb b/recipes-devtools/python/python3-docker-pycreds_0.2.1.bb
index 4038410..52423d2 100644
--- a/recipes-devtools/python/python3-docker-pycreds_0.2.1.bb
+++ b/recipes-devtools/python/python3-docker-pycreds_0.2.1.bb
@@ -1,9 +1,3 @@
-SUMMARY = "Python bindings for the docker credentials store API"
-HOMEPAGE = "https://github.com/shin-/dockerpy-creds"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
-
 inherit pypi setuptools3
 
-SRC_URI[md5sum] = "0d80d5aebab771faf7e422b759c3055b"
-SRC_URI[sha256sum] = "93833a2cf280b7d8abbe1b8121530413250c6cd4ffed2c1cf085f335262f7348"
+require python-docker-pycreds.inc
diff --git a/recipes-devtools/python/python3-docker_2.5.1.bb b/recipes-devtools/python/python3-docker_2.5.1.bb
index 341d95c..0dca028 100644
--- a/recipes-devtools/python/python3-docker_2.5.1.bb
+++ b/recipes-devtools/python/python3-docker_2.5.1.bb
@@ -1,17 +1,10 @@
-SUMMARY = "A Python library for the Docker Engine API."
-HOMEPAGE = "https://github.com/docker/docker-py"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=34f3846f940453127309b920eeb89660"
-
 inherit pypi setuptools3
 
-SRC_URI[md5sum] = "7d917152976df075e6e90ee853df641f"
-SRC_URI[sha256sum] = "b876e6909d8d2360e0540364c3a952a62847137f4674f2439320ede16d6db880"
-
-DEPENDS += "${PYTHON_PN}-pip-native"
-
 RDEPENDS_${PN} += " \
 	python3-docker-pycreds \
 	python3-requests \
 	python3-websocket-client \
 "
+
+require python-docker.inc
+
-- 
2.17.1



More information about the meta-virtualization mailing list