aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/python-deprecated_1.2.7.bb
blob: ca3956f54b8c9263e626c89de29f4867f14f1cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SUMMARY = "Python @deprecated decorator to deprecate old python classes, functions or methods."
HOMEPAGE = "https://github.com/tantale/deprecated"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=44288e26f4896bdab14072d4fa35ff01"

SRC_URI[md5sum] = "93d65f6a4efc9aebebfd28c9413dfd19"
SRC_URI[sha256sum] = "408038ab5fdeca67554e8f6742d1521cd3cd0ee0ff9d47f29318a4f4da31c308"

PYPI_PACKAGE = "Deprecated"

inherit pypi setuptools

S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"

RDEPENDS_${PN} += "python-wrapt"

PNBLACKLIST[python-deprecated] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"