Signed-off-by: Zang Ruochen <[email protected]>
---
 .../python/python-cssselect.inc               | 20 +++++++++++++++++
 .../python/python-cssselect_0.9.1.bb          | 22 ++-----------------
 .../python/python3-cssselect_0.9.1.bb         |  2 ++
 3 files changed, 24 insertions(+), 20 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-cssselect.inc
 create mode 100644 
meta-openstack/recipes-devtools/python/python3-cssselect_0.9.1.bb

diff --git a/meta-openstack/recipes-devtools/python/python-cssselect.inc 
b/meta-openstack/recipes-devtools/python/python-cssselect.inc
new file mode 100644
index 0000000..377560e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-cssselect.inc
@@ -0,0 +1,20 @@
+DESCRIPTION = "cssselect parses CSS3 Selectors and translates them to XPath 
1.0"
+HOMEPAGE = "http://packages.python.org/cssselect/";
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=952026b3fd2f625f2a3c0aa21da2493d"
+
+SRC_URI[md5sum] = "c74f45966277dc7a0f768b9b0f3522ac"
+SRC_URI[sha256sum] = 
"0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682"
+
+inherit pypi
+
+# DEPENDS_default: python-pip
+
+DEPENDS += " \
+        ${PYTHON_PN}-pip \
+        "
+
+# RDEPENDS_default: 
+RDEPENDS_${PN} += " \
+        "
diff --git a/meta-openstack/recipes-devtools/python/python-cssselect_0.9.1.bb 
b/meta-openstack/recipes-devtools/python/python-cssselect_0.9.1.bb
index 0c4426c..dfd4e84 100644
--- a/meta-openstack/recipes-devtools/python/python-cssselect_0.9.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-cssselect_0.9.1.bb
@@ -1,20 +1,2 @@
-DESCRIPTION = "cssselect parses CSS3 Selectors and translates them to XPath 
1.0"
-HOMEPAGE = "http://packages.python.org/cssselect/";
-SECTION = "devel/python"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=952026b3fd2f625f2a3c0aa21da2493d"
-
-SRC_URI[md5sum] = "c74f45966277dc7a0f768b9b0f3522ac"
-SRC_URI[sha256sum] = 
"0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682"
-
-inherit setuptools pypi
-
-# DEPENDS_default: python-pip
-
-DEPENDS += " \
-        python-pip \
-        "
-
-# RDEPENDS_default: 
-RDEPENDS_${PN} += " \
-        "
+require python-cssselect.inc
+inherit setuptools
diff --git a/meta-openstack/recipes-devtools/python/python3-cssselect_0.9.1.bb 
b/meta-openstack/recipes-devtools/python/python3-cssselect_0.9.1.bb
new file mode 100644
index 0000000..de194f8
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-cssselect_0.9.1.bb
@@ -0,0 +1,2 @@
+require python-cssselect.inc
+inherit setuptools3
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4778): 
https://lists.yoctoproject.org/g/meta-virtualization/message/4778
Mute This Topic: https://lists.yoctoproject.org/mt/64313332/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to