Skip to contentSkip to conversation

tox: Add python3 version

PATCH In review [email protected] 2 participants 4 messages Feb 13, 2020 – Feb 27, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 tox: Add python3 version

From: Nathan Hartman <[email protected]>

---
 .../{python-tox_1.9.2.bb => python-tox.inc}     | 17 +++++++----------
 .../python/python3-tox_3.14.3.bb                |  5 +++++
 2 files changed, 12 insertions(+), 10 deletions(-)
 rename meta-openstack/recipes-devtools/python/{python-tox_1.9.2.bb => python-tox.inc} (56%)
 create mode 100644 meta-openstack/recipes-devtools/python/python3-tox_3.14.3.bb
meta-openstack/recipes-devtools/python/python-tox.inc renamed from meta-openstack/recipes-devtools/python/python-tox_1.9.2.bb +7 -10
similarity index 56%
rename from meta-openstack/recipes-devtools/python/python-tox_1.9.2.bb
rename to meta-openstack/recipes-devtools/python/python-tox.inc
index 8184fb5..66b1355 100644
@@ -2,21 +2,18 @@ DESCRIPTION = "virtualenv-based automation of test activities"
 HOMEPAGE = "http://tox.testrun.org"
 SECTION = "devel/python"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=2d0fc2c2c954dc4d41043e67d4a8d8e7"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f24505dfbdd8c22c61de6383f2e74bf9"
 
-SRC_URI[md5sum] = "f4db4d6a82d6a651e457ba55ef370258"
-SRC_URI[sha256sum] = "3125a15da7381f59f835a25bd259a84acb7a69858c81e386c50027bd842bb91b"
-
-inherit setuptools3 pypi
+inherit pypi
 
 DEPENDS += " \
-        python-pip \
+        ${PYTHON_PN}-pip \
         "
 
 RDEPENDS_${PN} += " \
-        python-virtualenv \
-        python-py \
-        python-pytest \
+        ${PYTHON_PN}-virtualenv \
+        ${PYTHON_PN}-py \
+        ${PYTHON_PN}-pytest \
         "
 
 do_install_append() {
@@ -24,7 +21,7 @@ do_install_append() {
     install -d ${D}/${sysconfdir}/${SRCNAME}
     cp ${S}/tox.ini    ${D}/${sysconfdir}/${SRCNAME}
     cp ${S}/setup.py   ${D}/${sysconfdir}/${SRCNAME}
-    cp ${S}/README.rst ${D}/${sysconfdir}/${SRCNAME}
+    cp ${S}/README.md ${D}/${sysconfdir}/${SRCNAME}
 
     ln -s ${PYTHON_SITEPACKAGES_DIR}/tox ${D}/${sysconfdir}/${SRCNAME}/tox
 }
meta-openstack/recipes-devtools/python/python3-tox_3.14.3.bb new file +5 -0
new file mode 100644
index 0000000..678413a
@@ -0,0 +1,5 @@
+inherit setuptools3
+require python-tox.inc
+
+SRC_URI[md5sum] = "8b695d482786dd51643e10953bbd8c89"
+SRC_URI[sha256sum] = "06ba73b149bf838d5cd25dc30c2dd2671ae5b2757cf98e5c41a35fe449f131b3"
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/3 pep8: Add python3 version

From: Nathan Hartman <[email protected]>

---
 .../python/{python-pep8_1.6.2.bb => python-pep8.inc}   | 10 +++++-----
 .../recipes-devtools/python/python3-pep8_1.7.1.bb      |  5 +++++
 2 files changed, 10 insertions(+), 5 deletions(-)
 rename meta-openstack/recipes-devtools/python/{python-pep8_1.6.2.bb => python-pep8.inc} (58%)
 create mode 100644 meta-openstack/recipes-devtools/python/python3-pep8_1.7.1.bb
meta-openstack/recipes-devtools/python/python-pep8.inc renamed from meta-openstack/recipes-devtools/python/python-pep8_1.6.2.bb +5 -5
similarity index 58%
rename from meta-openstack/recipes-devtools/python/python-pep8_1.6.2.bb
rename to meta-openstack/recipes-devtools/python/python-pep8.inc
index 7a131d7..959c3d1 100644
@@ -2,13 +2,13 @@ DESCRIPTION = "Python style guide checker"
 HOMEPAGE = "https://github.com/dreamhost/cliff"
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://README.rst;md5=b0d37793ab91ca25ad5c200e9ea22331"
+LIC_FILES_CHKSUM = "file://README.rst;md5=d8ebbbe831259ce010179d2f310b0f3e"
 
 SRC_URI[md5sum] = "a03bb494859e87b42601b61b1b043a0c"
 SRC_URI[sha256sum] = "603a46e5c358ce20ac4807a0eeafac7505d1125a4c1bd8378757ada06f61bed8"
 
-inherit setuptools3 pypi
+inherit pypi
 
-RDEPENDS_${PN} += "python-prettytable \
-            python-cmd2 \
-            python-pyparsing"
\ No newline at end of file
+RDEPENDS_${PN} += "${PYTHON_PN}-prettytable \
+            ${PYTHON_PN}-cmd2 \
+            ${PYTHON_PN}-pyparsing"
\ No newline at end of file
meta-openstack/recipes-devtools/python/python3-pep8_1.7.1.bb new file +5 -0
new file mode 100644
index 0000000..64fd154
@@ -0,0 +1,5 @@
+inherit setuptools3
+require python-pep8.inc
+
+SRC_URI[md5sum] = "603821d06db945c71d811b5a8d78423c"
+SRC_URI[sha256sum] = "fe249b52e20498e59e0b5c5256aa52ee99fc295b26ec9eaa85776ffdb9fe6374"
\ No newline at end of file
Signature · 1 line
2.20.1
#3 lore raw

PATCH 3/3 mock: Add python3 version

In reply to [email protected]

From: Nathan Hartman <[email protected]>

---
 .../recipes-devtools/python/python-mock.inc     | 14 ++++++++++++++
 .../python/python-mock_1.0.1.bb                 | 17 -----------------
 .../python/python3-mock_4.0.1.bb                |  5 +++++
 3 files changed, 19 insertions(+), 17 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-mock.inc
 delete mode 100644 meta-openstack/recipes-devtools/python/python-mock_1.0.1.bb
 create mode 100644 meta-openstack/recipes-devtools/python/python3-mock_4.0.1.bb
meta-openstack/recipes-devtools/python/python-mock.inc new file +14 -0
new file mode 100644
index 0000000..f05061f
@@ -0,0 +1,14 @@
+DESCRIPTION = "A Python Mocking and Patching Library for Testing"
+HOMEPAGE = "https://pypi.python.org/pypi/mock"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=de9dfbf780446b18aab11f00baaf5b7e"
+
+inherit pypi
+
+RDEPENDS_${PN} += "${PYTHON_PN}-prettytable \
+            ${PYTHON_PN}-cmd2 \
+            ${PYTHON_PN}-pyparsing \
+            ${PYTHON_PN}-mccabe \
+            ${PYTHON_PN}-pep8 \
+            ${PYTHON_PN}-pyflakes"
meta-openstack/recipes-devtools/python/python-mock_1.0.1.bb deleted +0 -17
deleted file mode 100644
index badb21c..0000000
@@ -1,17 +0,0 @@
-DESCRIPTION = "A Python Mocking and Patching Library for Testing"
-HOMEPAGE = "https://pypi.python.org/pypi/mock"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=80e5ba73891255687dff3bee2b4cbb16"
-
-SRC_URI[md5sum] = "c3971991738caa55ec7c356bbc154ee2"
-SRC_URI[sha256sum] = "b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f"
-
-inherit setuptools3 pypi
-
-RDEPENDS_${PN} += "python-prettytable \
-            python-cmd2 \
-            python-pyparsing \
-            python-mccabe \
-            python-pep8 \
-            python-pyflakes"
meta-openstack/recipes-devtools/python/python3-mock_4.0.1.bb new file +5 -0
new file mode 100644
index 0000000..3dcb028
@@ -0,0 +1,5 @@
+require python-mock.inc
+inherit setuptools3
+
+SRC_URI[md5sum] = "8f48ba3fd059e7cfad92f8354064adfd"
+SRC_URI[sha256sum] = "2a572b715f09dd2f0a583d8aeb5bb67d7ed7a8fd31d193cf1227a99c16a67bc3"
\ No newline at end of file
Signature · 1 line
2.20.1
#2 lore raw
In reply to Nathan Hartman

Thanks Nathan,

These are now merged.

Bruce

In message: [meta-virtualization][m-c-s][PATCH 1/3] tox: Add python3 version

Quoted 70 lines · on 13/02/2020 Nathan Hartman wrote:

From: Nathan Hartman <[email protected]>

---
 .../{python-tox_1.9.2.bb => python-tox.inc}     | 17 +++++++----------
 .../python/python3-tox_3.14.3.bb                |  5 +++++
 2 files changed, 12 insertions(+), 10 deletions(-)
 rename meta-openstack/recipes-devtools/python/{python-tox_1.9.2.bb => python-tox.inc} (56%)
 create mode 100644 meta-openstack/recipes-devtools/python/python3-tox_3.14.3.bb
meta-openstack/recipes-devtools/python/python-tox.inc renamed from meta-openstack/recipes-devtools/python/python-tox_1.9.2.bb +7 -10
similarity index 56%
rename from meta-openstack/recipes-devtools/python/python-tox_1.9.2.bb
rename to meta-openstack/recipes-devtools/python/python-tox.inc
index 8184fb5..66b1355 100644
@@ -2,21 +2,18 @@ DESCRIPTION = "virtualenv-based automation of test activities"
 HOMEPAGE = "http://tox.testrun.org"
 SECTION = "devel/python"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=2d0fc2c2c954dc4d41043e67d4a8d8e7"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f24505dfbdd8c22c61de6383f2e74bf9"
 
-SRC_URI[md5sum] = "f4db4d6a82d6a651e457ba55ef370258"
-SRC_URI[sha256sum] = "3125a15da7381f59f835a25bd259a84acb7a69858c81e386c50027bd842bb91b"
-
-inherit setuptools3 pypi
+inherit pypi
 
 DEPENDS += " \
-        python-pip \
+        ${PYTHON_PN}-pip \
         "
 
 RDEPENDS_${PN} += " \
-        python-virtualenv \
-        python-py \
-        python-pytest \
+        ${PYTHON_PN}-virtualenv \
+        ${PYTHON_PN}-py \
+        ${PYTHON_PN}-pytest \
         "
 
 do_install_append() {
@@ -24,7 +21,7 @@ do_install_append() {
     install -d ${D}/${sysconfdir}/${SRCNAME}
     cp ${S}/tox.ini    ${D}/${sysconfdir}/${SRCNAME}
     cp ${S}/setup.py   ${D}/${sysconfdir}/${SRCNAME}
-    cp ${S}/README.rst ${D}/${sysconfdir}/${SRCNAME}
+    cp ${S}/README.md ${D}/${sysconfdir}/${SRCNAME}
 
     ln -s ${PYTHON_SITEPACKAGES_DIR}/tox ${D}/${sysconfdir}/${SRCNAME}/tox
 }
meta-openstack/recipes-devtools/python/python3-tox_3.14.3.bb new file +5 -0
new file mode 100644
index 0000000..678413a
@@ -0,0 +1,5 @@
+inherit setuptools3
+require python-tox.inc
+
+SRC_URI[md5sum] = "8b695d482786dd51643e10953bbd8c89"
+SRC_URI[sha256sum] = "06ba73b149bf838d5cd25dc30c2dd2671ae5b2757cf98e5c41a35fe449f131b3"
Signature · 1 line
2.20.1