diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-13 08:16:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-14 06:28:02 +0100 |
commit | b947ea37496ef88025b615cd8627388d2fae0f3b (patch) | |
tree | 1489de38c4b4bda6fa90a1d1ecf093b5b5e11cc6 /meta/recipes-devtools | |
parent | 1b685309e07d75b1c3fea990ec1812b6c0fc6a6f (diff) | |
download | poky-b947ea37496ef88025b615cd8627388d2fae0f3b.tar.gz |
python3-testtools: Fix build problems from incorrect build backend
testtools uses the hatchling backend so:
* merge the inc back into the recipe
* drop setuptools
* use the hatchling backend
* add the needed vcs dependency
* drop the now unneeded python3-pbr dependency
This means the submodules are included in packaging, fixing build failures
and the verison in the wheel is no longer 0.0.0
Prior to this fix, testtools in buildtools tarball was completely
broken.
(From OE-Core rev: fe46107e6bf4880d97f03b5e55d722d64f922889)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python-testtools.inc | 27 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-testtools_2.7.1.bb | 21 |
2 files changed, 19 insertions, 29 deletions
diff --git a/meta/recipes-devtools/python/python-testtools.inc b/meta/recipes-devtools/python/python-testtools.inc deleted file mode 100644 index e9dd97ec1c..0000000000 --- a/meta/recipes-devtools/python/python-testtools.inc +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | SUMMARY = "Extensions to the Python standard library unit testing framework" | ||
2 | HOMEPAGE = "https://pypi.org/project/testtools/" | ||
3 | SECTION = "devel/python" | ||
4 | LICENSE = "Apache-2.0" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e2c9d3e8ba7141c83bfef190e0b9379a" | ||
6 | |||
7 | inherit pypi | ||
8 | |||
9 | SRC_URI[sha256sum] = "df6de96010e29ee21f637a147eabf30d50b25e3841dd1d68f93ee89ce77e366c" | ||
10 | |||
11 | DEPENDS += " \ | ||
12 | python3-pbr \ | ||
13 | " | ||
14 | |||
15 | # Satisfy setup.py 'setup_requires' | ||
16 | DEPENDS += " \ | ||
17 | python3-pbr-native \ | ||
18 | " | ||
19 | |||
20 | RDEPENDS:${PN} += "\ | ||
21 | python3-doctest \ | ||
22 | python3-extras \ | ||
23 | python3-pbr \ | ||
24 | python3-six \ | ||
25 | " | ||
26 | |||
27 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-devtools/python/python3-testtools_2.7.1.bb b/meta/recipes-devtools/python/python3-testtools_2.7.1.bb index 79e46a02de..cc7e055632 100644 --- a/meta/recipes-devtools/python/python3-testtools_2.7.1.bb +++ b/meta/recipes-devtools/python/python3-testtools_2.7.1.bb | |||
@@ -1,3 +1,20 @@ | |||
1 | inherit setuptools3 | 1 | SUMMARY = "Extensions to the Python standard library unit testing framework" |
2 | require python-testtools.inc | 2 | HOMEPAGE = "https://pypi.org/project/testtools/" |
3 | SECTION = "devel/python" | ||
4 | LICENSE = "Apache-2.0" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e2c9d3e8ba7141c83bfef190e0b9379a" | ||
6 | |||
7 | DEPENDS += "python3-hatch-vcs-native" | ||
8 | |||
9 | inherit pypi python_hatchling | ||
10 | |||
11 | SRC_URI[sha256sum] = "df6de96010e29ee21f637a147eabf30d50b25e3841dd1d68f93ee89ce77e366c" | ||
12 | |||
13 | RDEPENDS:${PN} += "\ | ||
14 | python3-doctest \ | ||
15 | python3-extras \ | ||
16 | python3-six \ | ||
17 | " | ||
18 | |||
19 | BBCLASSEXTEND = "nativesdk" | ||
3 | 20 | ||