All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nathan Hartman" <nathan.hartman@windriver.com>
To: <meta-virtualization@lists.yoctoproject.org>
Cc: Nathan Hartman <hnathan918@gmail.com>,
	Nathan Hartman <nathan.hartman@windriver.com>
Subject: [meta-virtualization][m-c-s][PATCH 3/3] mock: Add python3 version
Date: Thu, 13 Feb 2020 14:48:17 -0500	[thread overview]
Message-ID: <20200213194816.31473-3-nathan.hartman@windriver.com> (raw)
In-Reply-To: <20200213194816.31473-1-nathan.hartman@windriver.com>

From: Nathan Hartman <hnathan918@gmail.com>

Signed-off-by: Nathan Hartman <nathan.hartman@windriver.com>
---
 .../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

diff --git a/meta-openstack/recipes-devtools/python/python-mock.inc b/meta-openstack/recipes-devtools/python/python-mock.inc
new file mode 100644
index 0000000..f05061f
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-mock.inc
@@ -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"
diff --git a/meta-openstack/recipes-devtools/python/python-mock_1.0.1.bb b/meta-openstack/recipes-devtools/python/python-mock_1.0.1.bb
deleted file mode 100644
index badb21c..0000000
--- a/meta-openstack/recipes-devtools/python/python-mock_1.0.1.bb
+++ /dev/null
@@ -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"
diff --git a/meta-openstack/recipes-devtools/python/python3-mock_4.0.1.bb b/meta-openstack/recipes-devtools/python/python3-mock_4.0.1.bb
new file mode 100644
index 0000000..3dcb028
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-mock_4.0.1.bb
@@ -0,0 +1,5 @@
+require python-mock.inc
+inherit setuptools3
+
+SRC_URI[md5sum] = "8f48ba3fd059e7cfad92f8354064adfd"
+SRC_URI[sha256sum] = "2a572b715f09dd2f0a583d8aeb5bb67d7ed7a8fd31d193cf1227a99c16a67bc3"
\ No newline at end of file
-- 
2.20.1


  parent reply	other threads:[~2020-02-13 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-13 19:48 [meta-virtualization][m-c-s][PATCH 1/3] tox: Add python3 version nathan.hartman
2020-02-13 19:48 ` [meta-virtualization][m-c-s][PATCH 2/3] pep8: " Nathan Hartman
2020-02-13 19:48 ` Nathan Hartman [this message]
2020-02-27 22:20 ` [meta-virtualization][m-c-s][PATCH 1/3] tox: " Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200213194816.31473-3-nathan.hartman@windriver.com \
    --to=nathan.hartman@windriver.com \
    --cc=hnathan918@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.