diff options
Diffstat (limited to 'dev-python/deprecated')
-rw-r--r-- | dev-python/deprecated/Manifest | 2 | ||||
-rw-r--r-- | dev-python/deprecated/deprecated-1.2.11.ebuild | 32 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/deprecated/Manifest b/dev-python/deprecated/Manifest index de888ac9d4a0..65374839f60d 100644 --- a/dev-python/deprecated/Manifest +++ b/dev-python/deprecated/Manifest @@ -1,4 +1,6 @@ AUX deprecated-1.2.10-py39.patch 2040 BLAKE2B cd8f7c7b29c3a81bcccf907fca26864801db0440fa675581222d20d39dbfc19eeead1a708cea3b500ae15af0f3f0c64e2838a7ec8a8b57b540ced07d1641e1d5 SHA512 5cece72f18f0faab35814cd2b59bd441a0f21ebb3b2c392d9e0936df4c321d15dcefe7333615462d2fda57cf640cb8e5a95d2e2486502caec33894ddb1faf49e 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 EBUILD deprecated-1.2.10.ebuild 541 BLAKE2B 5524c1b9b3b15cde003796d375aad6de29c108c63477888eb3b121379d954ef7c1cd7f56ec083fa3af6171620953c4d05302bac062724a2c9bb53d156a3638af SHA512 46df883300a946665d23e11095eb04608e53223d8dea557cdf049353d9a25a76e6e0bf2f2f16d7578463b36564d2c92d6901de25c531eb43a29a9fd54ccb1a66 +EBUILD deprecated-1.2.11.ebuild 789 BLAKE2B 19a6074b6cdaf5024001e5887aac551d1b5f3e752a9c85f3b8116a13c20dd33fbd77e6cb776aef6b15571dd614d053271af4fae0d72abddbeae2c6d368dd638a SHA512 cd746e095ae9947ecc01e74b7c1132a179a00d37b7665d821723ddeafc27cf7ed413cf87f3623b74027378ed466cadc9d5e298e68173d35ee6fa5384ffe327e9 MISC metadata.xml 315 BLAKE2B 8016c6be7019b2ef9b31533e8a75480e8f57eb09f0d9f5de5ba53093fbd1e04fc4299f0b18ec4c56b89c2ee06718d3bab8442a28cf457a7fc87c99469738ca05 SHA512 c5c38075210982e49af49da7e3094c4aea053e3cbfce85fa7e8549d842cfefdf3f9d537b85380370093d3e9bc3d108822b1c620eadf369267cbec865c4d5d15e diff --git a/dev-python/deprecated/deprecated-1.2.11.ebuild b/dev-python/deprecated/deprecated-1.2.11.ebuild new file mode 100644 index 000000000000..1b72f93f7450 --- /dev/null +++ b/dev-python/deprecated/deprecated-1.2.11.ebuild @@ -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}" +} |