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 9DE4D1382C5 for ; Sat, 24 Mar 2018 08:46:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E213CE08DA; Sat, 24 Mar 2018 08:46:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 AB520E08DA for ; Sat, 24 Mar 2018 08:46:32 +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 0A504335C07 for ; Sat, 24 Mar 2018 08:46:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C887825A for ; Sat, 24 Mar 2018 08:46:28 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1521881172.466d1ab1a0f249640f16151c535fc307eb6019c1.radhermit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/twine/files/, dev-python/twine/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/twine/Manifest dev-python/twine/files/twine-1.11.0-tests.patch dev-python/twine/metadata.xml dev-python/twine/twine-1.11.0.ebuild X-VCS-Directories: dev-python/twine/ dev-python/twine/files/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 466d1ab1a0f249640f16151c535fc307eb6019c1 X-VCS-Branch: master Date: Sat, 24 Mar 2018 08:46:28 +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: 5b1b3222-c993-45b1-a4e5-b977285287fd X-Archives-Hash: 66b9ddf9e35bba6b2d92b2010305b700 commit: 466d1ab1a0f249640f16151c535fc307eb6019c1 Author: Tim Harder gentoo org> AuthorDate: Sat Mar 24 08:43:56 2018 +0000 Commit: Tim Harder gentoo org> CommitDate: Sat Mar 24 08:46:12 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=466d1ab1 dev-python/twine: initial import Closes: https://bugs.gentoo.org/567064 dev-python/twine/Manifest | 1 + dev-python/twine/files/twine-1.11.0-tests.patch | 18 +++++++++++ dev-python/twine/metadata.xml | 12 ++++++++ dev-python/twine/twine-1.11.0.ebuild | 40 +++++++++++++++++++++++++ 4 files changed, 71 insertions(+) diff --git a/dev-python/twine/Manifest b/dev-python/twine/Manifest new file mode 100644 index 00000000000..d86f366ef82 --- /dev/null +++ b/dev-python/twine/Manifest @@ -0,0 +1 @@ +DIST twine-1.11.0.tar.gz 55301 BLAKE2B 88e88bc88a6dc8320064b3e296d85f1614d1ecf1628c8442737566ac58c3296b2292f147c0b39047a1d13a3ac98297fd7a77a0ba6fdb6ff04e59d16bc8ed463a SHA512 28e588f26b59bc9f4a8481caf2353934ad6927734762ffebb4416c147ec9e6dffb37092def20a76eb888c94b27f97e013dacc42c63e5dcda30f4290bb6c90a22 diff --git a/dev-python/twine/files/twine-1.11.0-tests.patch b/dev-python/twine/files/twine-1.11.0-tests.patch new file mode 100644 index 00000000000..386a4ebcf3a --- /dev/null +++ b/dev-python/twine/files/twine-1.11.0-tests.patch @@ -0,0 +1,18 @@ +Check for python2 support first, then python3. This should help avoid importing +the wrong module for python2 where the builtins module can be provided by the +futures package. + +--- twine-1.11.0/tests/test_utils.py ++++ twine-1.11.0/tests/test_utils.py +@@ -19,9 +19,9 @@ + import textwrap + + try: +- import builtins +-except ImportError: + import __builtin__ as builtins ++except ImportError: ++ import builtins + + import pytest + diff --git a/dev-python/twine/metadata.xml b/dev-python/twine/metadata.xml new file mode 100644 index 00000000000..3b7872fa6a9 --- /dev/null +++ b/dev-python/twine/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + twine + pypa/twine + + diff --git a/dev-python/twine/twine-1.11.0.ebuild b/dev-python/twine/twine-1.11.0.ebuild new file mode 100644 index 00000000000..053b8a76763 --- /dev/null +++ b/dev-python/twine/twine-1.11.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 + +DESCRIPTION="Collection of utilities for publishing packages on PyPI" +HOMEPAGE="https://twine.readthedocs.io/ https://github.com/pypa/twine https://pypi.python.org/pypi/twine" +SRC_URI="https://github.com/pypa/twine/archive/${PV}.tar.gz -> ${P}.tar.gz" +# pypi tarballs don't contain test data +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + ) +" +RDEPEND="${CDEPEND} + >=dev-python/tqdm-4.14[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.4.2[${PYTHON_USEDEP}] + >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.8.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' python{2_7,3_4,3_5}) +" + +PATCHES=( "${FILESDIR}"/${P}-tests.patch ) + +python_test() { + py.test -v tests || die "tests fail with ${EPYTHON}" +}