summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2021-03-08 18:18:07 +0200
committerKhem Raj <raj.khem@gmail.com>2021-03-11 19:59:04 -0800
commit2da0632281ff98179747388eb9bacf1dfde3ddc4 (patch)
tree8f9bf247a2f2d7709ea08dfa88adfd25bb242d01 /meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb
parent1fddb17ca2c2c6fbd7ff7e3680a16ed698ad7dbe (diff)
downloadmeta-openembedded-2da0632281ff98179747388eb9bacf1dfde3ddc4.tar.gz
python3-prettytable: Upgrade 2.0.0 -> 2.1.0
Upgrade to release 2.1.0: - Support formatting options in get_json_string() - Replace setuptools/pkg_resources with importlib.metadata for getting version - Docs: Add documentation for align, max_width, etc. - Docs: Remove reference to Python 2.x print statement in README - Docs: Update get_html_string with thead and tbody tags Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb b/meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb
new file mode 100644
index 0000000000..fe7206255c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-prettytable_2.1.0.bb
@@ -0,0 +1,39 @@
1SUMMARY = "Python library for displaying tabular data in a ASCII table format"
2HOMEPAGE = "http://code.google.com/p/prettytable"
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://COPYING;md5=c9a6829fcd174d9535b46211917c7671"
5
6SRC_URI[sha256sum] = "5882ed9092b391bb8f6e91f59bcdbd748924ff556bb7c634089d5519be87baa0"
7
8do_install_append() {
9 perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "*.txt" -o -name "PKG-INFO"`
10 for f in $perm_files; do
11 chmod 644 "${f}"
12 done
13}
14
15UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/"
16UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)"
17
18BBCLASSEXTEND = "native nativesdk"
19inherit pypi ptest setuptools3
20
21SRC_URI += " \
22 file://run-ptest \
23"
24
25DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
26
27RDEPENDS_${PN} += " \
28 ${PYTHON_PN}-math \
29 ${PYTHON_PN}-html \
30 ${PYTHON_PN}-wcwidth \
31"
32
33RDEPENDS_${PN}-ptest += " \
34 ${PYTHON_PN}-pytest \
35"
36
37do_install_ptest() {
38 cp -f ${S}/tests/test_prettytable.py ${D}${PTEST_PATH}/
39}