diff options
| author | Tim Orling <timothy.t.orling@linux.intel.com> | 2020-11-27 20:24:27 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-30 14:42:22 +0000 |
| commit | 075deea2b2a57120267d306914a018b3d5debbc8 (patch) | |
| tree | 0075ac3a2c5a1d846011cfc44c0b6b298a5d8a19 | |
| parent | 225fbb0c41e5773cb3bf8b99198994b12d5b2090 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch | 39 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-pytest_6.1.2.bb | 38 |
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 @@ | |||
| 1 | From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yuan Chao <yuanc.fnst@cn.fujitsu.com> | ||
| 3 | Date: Wed, 28 Aug 2019 16:12:27 +0900 | ||
| 4 | Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for | ||
| 5 | setuptools-scm | ||
| 6 | |||
| 7 | The setup_requires argument forces the download of the egg file for setuptools-scm | ||
| 8 | during the do_compile phase. This download is incompatible with the typical fetch | ||
| 9 | and mirror structure. The only usage of scm is the generation of the _version.py | ||
| 10 | file and in the release tarball it is already correctly created | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [oe specific] | ||
| 13 | |||
| 14 | Signed-off-by: Derek Straka <derek@asterius.io> | ||
| 15 | |||
| 16 | Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com> | ||
| 17 | |||
| 18 | Rebase for pytest 6.1.0. | ||
| 19 | |||
| 20 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 21 | --- | ||
| 22 | setup.cfg | 1 - | ||
| 23 | 1 file changed, 1 deletion(-) | ||
| 24 | |||
| 25 | diff --git a/setup.cfg b/setup.cfg | ||
| 26 | index 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 | -- | ||
| 38 | 2.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 @@ | |||
| 1 | SUMMARY = "Simple powerful testing with python" | ||
| 2 | |||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b" | ||
| 5 | |||
| 6 | SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch " | ||
| 7 | |||
| 8 | SRC_URI[sha256sum] = "c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316ad3823e" | ||
| 9 | |||
| 10 | inherit update-alternatives pypi setuptools3 | ||
| 11 | |||
| 12 | RDEPENDS_${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 | |||
| 30 | ALTERNATIVE_${PN} += "py.test pytest" | ||
| 31 | |||
| 32 | NATIVE_LINK_NAME[pytest] = "${bindir}/pytest" | ||
| 33 | ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest" | ||
| 34 | |||
| 35 | ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test" | ||
| 36 | ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test" | ||
| 37 | |||
| 38 | BBCLASSEXTEND = "native nativesdk" | ||
