mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/deprecated: Bump to 1.2.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST deprecated-1.2.10.gh.tar.gz 2967353 BLAKE2B 941fa81dd27940be4fde1219a9fe127777354aa2054b15178cade4a859b01f8dff426e0da8161bac580ff6446b44767f3207b474bb5f555826239db039085497 SHA512 4bd53b759d04ab15c74a4c147b2c69c73aed6e40555acf0e84cf0c5b7ffe248da234bd1311c5629f9357d50bc08e55e81363340dcfdabe88933525bcc7859a70
|
||||
DIST deprecated-1.2.11.gh.tar.gz 2968469 BLAKE2B 5b1b8872e8786897a51ff96a659ceef0deed81b3cf02edc1f69b6ee504a3c4510621b56678dd28fa795231dfe8481daf3a77bb151ee117fe0541af1983412548 SHA512 343f62a7a658569de885ac923a1de7f7b4cc5bf63d27d1b13474795ca38cc52932e35133b45d05c1b42d498af56f5945fad5c49b3cbdebda70337294da5d84c4
|
||||
|
||||
32
dev-python/deprecated/deprecated-1.2.11.ebuild
Normal file
32
dev-python/deprecated/deprecated-1.2.11.ebuild
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python @deprecated decorator to deprecate old API"
|
||||
HOMEPAGE="https://github.com/tantale/deprecated"
|
||||
SRC_URI="
|
||||
https://github.com/tantale/deprecated/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/wrapt[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local deselect=()
|
||||
|
||||
[[ ${EPYTHON} == pypy3 ]] && deselect+=(
|
||||
tests/test_deprecated.py::test_respect_global_filter
|
||||
tests/test_deprecated_class.py::test_class_respect_global_filter
|
||||
)
|
||||
|
||||
pytest -vv ${deselect[@]/#/--deselect } || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user