summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorTim Orling <timothy.t.orling@linux.intel.com>2020-11-27 20:24:27 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-30 14:42:22 +0000
commit075deea2b2a57120267d306914a018b3d5debbc8 (patch)
tree0075ac3a2c5a1d846011cfc44c0b6b298a5d8a19 /meta/recipes-devtools/python
parent225fbb0c41e5773cb3bf8b99198994b12d5b2090 (diff)
downloadpoky-075deea2b2a57120267d306914a018b3d5debbc8.tar.gz
python3-pytest: move from meta-python
Simple powerful testing with python (From OE-Core rev: 3299ddeab5eb32a21efaee63c2b7f490089b8476) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch39
-rw-r--r--meta/recipes-devtools/python/python3-pytest_6.1.2.bb38
2 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch b/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
new file mode 100644
index 0000000000..8c5c17247e
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
@@ -0,0 +1,39 @@
1From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001
2From: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
3Date: Wed, 28 Aug 2019 16:12:27 +0900
4Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for
5 setuptools-scm
6
7The setup_requires argument forces the download of the egg file for setuptools-scm
8during the do_compile phase. This download is incompatible with the typical fetch
9and mirror structure. The only usage of scm is the generation of the _version.py
10file and in the release tarball it is already correctly created
11
12Upstream-Status: Inappropriate [oe specific]
13
14Signed-off-by: Derek Straka <derek@asterius.io>
15
16Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
17
18Rebase for pytest 6.1.0.
19
20Signed-off-by: Kai Kang <kai.kang@windriver.com>
21---
22 setup.cfg | 1 -
23 1 file changed, 1 deletion(-)
24
25diff --git a/setup.cfg b/setup.cfg
26index 60f6564..c4d1471 100644
27--- a/setup.cfg
28+++ b/setup.cfg
29@@ -55,7 +55,6 @@ package_dir =
30 =src
31 setup_requires =
32 setuptools>=40.0
33- setuptools-scm
34 zip_safe = no
35
36 [options.entry_points]
37--
382.17.1
39
diff --git a/meta/recipes-devtools/python/python3-pytest_6.1.2.bb b/meta/recipes-devtools/python/python3-pytest_6.1.2.bb
new file mode 100644
index 0000000000..6872da5cfa
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pytest_6.1.2.bb
@@ -0,0 +1,38 @@
1SUMMARY = "Simple powerful testing with python"
2
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
5
6SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
7
8SRC_URI[sha256sum] = "c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316ad3823e"
9
10inherit update-alternatives pypi setuptools3
11
12RDEPENDS_${PN}_class-target += " \
13 ${PYTHON_PN}-attrs \
14 ${PYTHON_PN}-debugger \
15 ${PYTHON_PN}-doctest \
16 ${PYTHON_PN}-iniconfig \
17 ${PYTHON_PN}-json \
18 ${PYTHON_PN}-pluggy \
19 ${PYTHON_PN}-py \
20 ${PYTHON_PN}-setuptools \
21 ${PYTHON_PN}-six \
22 ${PYTHON_PN}-atomicwrites \
23 ${PYTHON_PN}-importlib-metadata \
24 ${PYTHON_PN}-pathlib2 \
25 ${PYTHON_PN}-wcwidth \
26 ${PYTHON_PN}-more-itertools \
27 ${PYTHON_PN}-packaging \
28"
29
30ALTERNATIVE_${PN} += "py.test pytest"
31
32NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
33ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
34
35ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
36ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
37
38BBCLASSEXTEND = "native nativesdk"