aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2019-08-30 13:58:05 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-09-03 15:51:20 -0400
commit76779b613ed16667d1c39dfad4b91620e9549f89 (patch)
tree9127812e7860cad51c86ec0b06c125472cbb2f46 /meta-openstack
parentbd81d776d4debf4966c555b4c325bb1536c64049 (diff)
downloadmeta-cloud-services-76779b613ed16667d1c39dfad4b91620e9549f89.tar.gz
meta-cloud-services-76779b613ed16667d1c39dfad4b91620e9549f89.tar.bz2
meta-cloud-services-76779b613ed16667d1c39dfad4b91620e9549f89.zip
python-httpretty: Add python3 version
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/recipes-devtools/python/python-httpretty.inc18
-rw-r--r--meta-openstack/recipes-devtools/python/python-httpretty_0.9.6.bb19
-rw-r--r--meta-openstack/recipes-devtools/python/python3-httpretty_0.9.6.bb3
3 files changed, 23 insertions, 17 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-httpretty.inc b/meta-openstack/recipes-devtools/python/python-httpretty.inc
new file mode 100644
index 0000000..f39e283
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-httpretty.inc
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2014 Wind River Systems, Inc.
+#
+DESCRIPTION = "HTTP client mock for Python"
+HOMEPAGE = "https://pypi.python.org/pypi/httpretty"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=113a91608a1d89039af9393c39bcaa2c"
+
+SRC_URI[md5sum] = "3b881b519e0f405caaf8aaa63f3508c0"
+SRC_URI[sha256sum] = "01b52d45077e702eda491f4fe75328d3468fd886aed5dcc530003e7b2b5939dc"
+
+inherit pypi
+
+DEPENDS += " \
+ ${PYTHON_PN}-pip \
+ "
+
diff --git a/meta-openstack/recipes-devtools/python/python-httpretty_0.9.6.bb b/meta-openstack/recipes-devtools/python/python-httpretty_0.9.6.bb
index 68d79f3..8993807 100644
--- a/meta-openstack/recipes-devtools/python/python-httpretty_0.9.6.bb
+++ b/meta-openstack/recipes-devtools/python/python-httpretty_0.9.6.bb
@@ -1,18 +1,3 @@
-#
-# Copyright (C) 2014 Wind River Systems, Inc.
-#
-DESCRIPTION = "HTTP client mock for Python"
-HOMEPAGE = "https://pypi.python.org/pypi/httpretty"
-SECTION = "devel/python"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYING;md5=113a91608a1d89039af9393c39bcaa2c"
-
-SRC_URI[md5sum] = "3b881b519e0f405caaf8aaa63f3508c0"
-SRC_URI[sha256sum] = "01b52d45077e702eda491f4fe75328d3468fd886aed5dcc530003e7b2b5939dc"
-
-inherit setuptools pypi
-
-DEPENDS += " \
- python-pip \
- "
+inherit setuptools
+require python-httpretty.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-httpretty_0.9.6.bb b/meta-openstack/recipes-devtools/python/python3-httpretty_0.9.6.bb
new file mode 100644
index 0000000..b9f7699
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-httpretty_0.9.6.bb
@@ -0,0 +1,3 @@
+inherit setuptools3
+require python-httpretty.inc
+