python3-term: Upgrade 2.3 -> 2.4

Upgrade to release 2.4:

- Add Python 3.8-3.10 to tox.ini. Remove old Python versions.
- Replace deprecated python setup.py test in tox.ini.
- Remove deprecated test_suite from setup.py.
- Move metadata to setup.cfg and add a pyproject.toml file.
- Include tests in sdist but not in wheel.
- Fix escape sequence warning in byte string literal.
- Open /dev/tty in binary mode under both Python 2 and 3.
- Officially change opentty's bufsize argument default from 1 to
  -1. Under Python 3, 1 has effectively meant -1 all along but
  Python 3.8 now issues a warning.
- Add readto, getfgcolor, getbgcolor, islightmode, and isdarkmode.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Leon Anavi 2022-08-17 18:35:38 +03:00 committed by Khem Raj
parent 330b46745c
commit 2605770745

View File

@ -3,9 +3,10 @@ SECTION = "devel/python"
LICENSE = "Python-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d90e2d280a4836c607520383d1639be1"
SRC_URI[md5sum] = "ab0c1bce381b1109fe4390c56aa06237"
SRC_URI[sha256sum] = "3dcc8c212e04700784e5c1c5b601916ba0549ae6025b35b64fd62144899e7180"
PYPI_PACKAGE_EXT = "zip"
SRC_URI[sha256sum] = "2cca4cf5f83035ca12627c4bbeff2891ad4711666247a790fd8200d73f38c3f0"
inherit pypi setuptools3
RDEPENDS:${PN} = "\
${PYTHON_PN}-io \
"