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 E83AA138334 for ; Tue, 19 Jun 2018 20:24:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CFE67E093E; Tue, 19 Jun 2018 20:24:12 +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 86C0FE093E for ; Tue, 19 Jun 2018 20:24:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 21698335C91 for ; Tue, 19 Jun 2018 20:24:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 144712AD for ; Tue, 19 Jun 2018 20:24:08 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1529439699.fbed90f9e30a1a777976377bc0ae4f87568c8baa.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-twitter/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-twitter/Manifest dev-python/python-twitter/python-twitter-3.4.2.ebuild X-VCS-Directories: dev-python/python-twitter/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: fbed90f9e30a1a777976377bc0ae4f87568c8baa X-VCS-Branch: master Date: Tue, 19 Jun 2018 20:24:08 +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-Archives-Salt: a1f738c5-62de-4b1b-86c5-40a78b8b665e X-Archives-Hash: 93ea227d7c86fbd0a34262a6264269da commit: fbed90f9e30a1a777976377bc0ae4f87568c8baa Author: Louis Sautier gentoo org> AuthorDate: Tue Jun 19 20:19:43 2018 +0000 Commit: Louis Sautier gentoo org> CommitDate: Tue Jun 19 20:21:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbed90f9 dev-python/python-twitter: v3.4.2, fix tests, examples, add doc Require responses > 0.6.0 otherwise tests fail because of https://github.com/getsentry/responses/issues/159 Closes: https://bugs.gentoo.org/582728 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-python/python-twitter/Manifest | 1 + .../python-twitter/python-twitter-3.4.2.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-python/python-twitter/Manifest b/dev-python/python-twitter/Manifest index 86bd6e9243b..035d9eb01d1 100644 --- a/dev-python/python-twitter/Manifest +++ b/dev-python/python-twitter/Manifest @@ -1 +1,2 @@ DIST python-twitter-3.3.tar.gz 84696 BLAKE2B aad833904e0127fca4043bf66187e7ff5a4175c7c86cf9b053c7d0bc6c9f25d2bc102a631d479ebd4ce81b515aea0f058473993a1b7f5a03751dd83f39e9a3c3 SHA512 72e4133abddf86a19b8701f846df7eb99b426b8835e457455935a656f38c266fb2930d8a145d5d280ef2e0f0096511b29dcdf98b94bd53b6a661ea575cfb3265 +DIST python-twitter-3.4.2.tar.gz 5145121 BLAKE2B 2ac45ae8fde3cfccb794d8496efdb0066c887101b6a6ac55ad6fd0f9fda8f50db1245284236c5fa0fd8eb7419c11eb253777d78092ea138d2f0a5115db861a89 SHA512 23d009e006864bb9dbf9c10223531a0e2aeefd4ca59852849f49f41e36b6db29e820a58c8a43f23c7bda0c68b6eb19a5557ef649bae2cbb1f1e406f78a918f92 diff --git a/dev-python/python-twitter/python-twitter-3.4.2.ebuild b/dev-python/python-twitter/python-twitter-3.4.2.ebuild new file mode 100644 index 00000000000..bc33c87db6b --- /dev/null +++ b/dev-python/python-twitter/python-twitter-3.4.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 + +DESCRIPTION="Python wrapper around the Twitter API" +HOMEPAGE="https://github.com/bear/python-twitter" +# Upstream does not include tests or doc in the PyPI tarballs +# https://github.com/bear/python-twitter/pull/572 +SRC_URI="https://github.com/bear/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-macos" +IUSE="doc examples test" + +RDEPEND=" + dev-python/oauth2[${PYTHON_USEDEP}] + dev-python/simplejson[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/requests-oauthlib[${PYTHON_USEDEP}]" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/responses-0.6.1[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Not actually required unless we want to do setup.py test + # https://github.com/bear/python-twitter/pull/573 + sed -i "s/'pytest-runner'//" setup.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build doc doc/_build/html || die + HTML_DOCS=( doc/_build/html/. ) + fi +} + +python_test() { + py.test || die "tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docinto examples + dodoc -r examples/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +}