diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2017-11-18 18:15:30 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-13 14:00:52 +0000 |
commit | 13f34dfc55cad2f218822a9c765625e47d0b340a (patch) | |
tree | 186d4018820711de13fc9adbd564e22f5ee73c69 /meta | |
parent | 43140b571b3f13773633262e34a09ecda887d302 (diff) | |
download | poky-13f34dfc55cad2f218822a9c765625e47d0b340a.tar.gz |
python-git: use pypi.bbclass
* Simplify python3-git by using pypi.bbclass
* Consolidate common content in .inc
(From OE-Core rev: 5288e401c769a80f499d0775dd9bd1304e2298f4)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python-git.inc | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-git_2.1.7.bb | 5 |
2 files changed, 21 insertions, 10 deletions
diff --git a/meta/recipes-devtools/python/python-git.inc b/meta/recipes-devtools/python/python-git.inc index 0b7e44ac0c..7b0707e008 100644 --- a/meta/recipes-devtools/python/python-git.inc +++ b/meta/recipes-devtools/python/python-git.inc | |||
@@ -8,14 +8,30 @@ SECTION = "devel/python" | |||
8 | LICENSE = "BSD-3-Clause" | 8 | LICENSE = "BSD-3-Clause" |
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8b8d26c37c1d5a04f9b0186edbebc183" | 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8b8d26c37c1d5a04f9b0186edbebc183" |
10 | 10 | ||
11 | SRC_URI = "https://files.pythonhosted.org/packages/source/G/GitPython/GitPython-${PV}.tar.gz" | 11 | PYPI_PACKAGE = "GitPython" |
12 | |||
13 | inherit pypi | ||
12 | 14 | ||
13 | SRC_URI[md5sum] = "a63fdd2a650694ea23e268fd0c952034" | 15 | SRC_URI[md5sum] = "a63fdd2a650694ea23e268fd0c952034" |
14 | SRC_URI[sha256sum] = "13c7cd99c2bf277fc99accfc25148752fa90e7cc6c6d08a3f01d229dacb461d9" | 16 | SRC_URI[sha256sum] = "13c7cd99c2bf277fc99accfc25148752fa90e7cc6c6d08a3f01d229dacb461d9" |
15 | 17 | ||
16 | UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/GitPython/" | 18 | DEPENDS = "${PYTHON_PN}-gitdb" |
17 | UPSTREAM_CHECK_REGEX = "/GitPython/(?P<pver>(\d+[\.\-_]*)+)" | ||
18 | |||
19 | S = "${WORKDIR}/GitPython-${PV}" | ||
20 | 19 | ||
20 | RDEPENDS_${PN} += "${PYTHON_PN}-argparse \ | ||
21 | ${PYTHON_PN}-datetime \ | ||
22 | ${PYTHON_PN}-enum \ | ||
23 | ${PYTHON_PN}-gitdb \ | ||
24 | ${PYTHON_PN}-io \ | ||
25 | ${PYTHON_PN}-lang \ | ||
26 | ${PYTHON_PN}-logging \ | ||
27 | ${PYTHON_PN}-math \ | ||
28 | ${PYTHON_PN}-netclient \ | ||
29 | ${PYTHON_PN}-re \ | ||
30 | ${PYTHON_PN}-shell \ | ||
31 | ${PYTHON_PN}-stringold \ | ||
32 | ${PYTHON_PN}-subprocess \ | ||
33 | ${PYTHON_PN}-unittest \ | ||
34 | ${PYTHON_PN}-unixadmin \ | ||
35 | git \ | ||
36 | " | ||
21 | BBCLASSEXTEND = "nativesdk" | 37 | BBCLASSEXTEND = "nativesdk" |
diff --git a/meta/recipes-devtools/python/python3-git_2.1.7.bb b/meta/recipes-devtools/python/python3-git_2.1.7.bb index 4ac2a0ec79..ac320fa56b 100644 --- a/meta/recipes-devtools/python/python3-git_2.1.7.bb +++ b/meta/recipes-devtools/python/python3-git_2.1.7.bb | |||
@@ -1,7 +1,2 @@ | |||
1 | require python-git.inc | 1 | require python-git.inc |
2 | |||
3 | DEPENDS = "python3-gitdb" | ||
4 | |||
5 | inherit setuptools3 | 2 | inherit setuptools3 |
6 | |||
7 | RDEPENDS_${PN} += "python3-gitdb python3-lang python3-io python3-shell python3-math python3-re python3-subprocess python3-stringold python3-unixadmin python3-enum python3-logging python3-datetime python3-netclient python3-unittest python3-argparse git" | ||