From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3534A138334 for ; Tue, 18 Jun 2019 07:07:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6ED15E0885; Tue, 18 Jun 2019 07:07:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4052BE0885 for ; Tue, 18 Jun 2019 07:07:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58ADA3463D9 for ; Tue, 18 Jun 2019 07:07:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4CD0614 for ; Tue, 18 Jun 2019 07:07:50 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1560841654.cbf5e0813c639946e746436fb8d40227d1ef34a5.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/deprecated/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/deprecated/Manifest dev-python/deprecated/deprecated-1.2.5.ebuild dev-python/deprecated/metadata.xml X-VCS-Directories: dev-python/deprecated/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: cbf5e0813c639946e746436fb8d40227d1ef34a5 X-VCS-Branch: master Date: Tue, 18 Jun 2019 07:07:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 32134aef-9a41-4fa3-afdf-dc3c9ad236a9 X-Archives-Hash: 9624c74e6ad71a8d69f46a5d8f5f6eb2 commit: cbf5e0813c639946e746436fb8d40227d1ef34a5 Author: Michał Górny gentoo org> AuthorDate: Tue Jun 18 06:02:11 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jun 18 07:07:34 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbf5e081 dev-python/deprecated: New package A package to handle deprecations in API. Required for PyGithub bump. Signed-off-by: Michał Górny gentoo.org> dev-python/deprecated/Manifest | 1 + dev-python/deprecated/deprecated-1.2.5.ebuild | 27 +++++++++++++++++++++++++++ dev-python/deprecated/metadata.xml | 11 +++++++++++ 3 files changed, 39 insertions(+) diff --git a/dev-python/deprecated/Manifest b/dev-python/deprecated/Manifest new file mode 100644 index 00000000000..73924199cbe --- /dev/null +++ b/dev-python/deprecated/Manifest @@ -0,0 +1 @@ +DIST deprecated-1.2.5.gh.tar.gz 5038752 BLAKE2B 82ceadca4ccef4309b2a7d493620cc8a4dd9160ab7449a3019c9e9bc3a99e8016b6125d4165b71813d9543b7629d55372affdbd14ad2c71d101061595bdb677c SHA512 3a16b5d4f2475788ce919c327b668bb8852dab88adfa959826c9b68ccbfba3207a1c60ca164edacde8a756bd3895225af944a51eebde1230a93a973145231234 diff --git a/dev-python/deprecated/deprecated-1.2.5.ebuild b/dev-python/deprecated/deprecated-1.2.5.ebuild new file mode 100644 index 00000000000..4f502db5e1b --- /dev/null +++ b/dev-python/deprecated/deprecated-1.2.5.ebuild @@ -0,0 +1,27 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) +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" +IUSE="test" + +RDEPEND="dev-python/wrapt[${PYTHON_USEDEP}]" +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + pytest -vv || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/deprecated/metadata.xml b/dev-python/deprecated/metadata.xml new file mode 100644 index 00000000000..22e0d6d87f6 --- /dev/null +++ b/dev-python/deprecated/metadata.xml @@ -0,0 +1,11 @@ + + + + + mgorny@gentoo.org + Michał Górny + + + python@gentoo.org + +