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 3EE23138331 for ; Sat, 24 Feb 2018 03:21:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D4E8E0877; Sat, 24 Feb 2018 03:21:33 +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 4C7DCE0877 for ; Sat, 24 Feb 2018 03:21:32 +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 8A2C1335C4E for ; Sat, 24 Feb 2018 03:21:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D6A7C23C for ; Sat, 24 Feb 2018 03:21:28 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1519442466.836ae4fbbac161b4c2c1e373fd9e2ba182e5091f.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/py/, dev-python/py/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/py/Manifest dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch dev-python/py/py-1.5.2.ebuild X-VCS-Directories: dev-python/py/ dev-python/py/files/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 836ae4fbbac161b4c2c1e373fd9e2ba182e5091f X-VCS-Branch: master Date: Sat, 24 Feb 2018 03:21: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: 02e95da0-4882-4eef-bdb2-789413be8b5b X-Archives-Hash: c658f36dd6227954b7163b884daa624b commit: 836ae4fbbac161b4c2c1e373fd9e2ba182e5091f Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Feb 24 01:37:45 2018 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Feb 24 03:21:06 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=836ae4fb dev-python/py: Bump to v1.5.2 Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-python/py/Manifest | 1 + .../py/files/py-1.5.2-skip-apiwarn-pytest31.patch | 14 +++++++ dev-python/py/py-1.5.2.ebuild | 46 ++++++++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/dev-python/py/Manifest b/dev-python/py/Manifest index 046a9fbbae3..c774ff54a63 100644 --- a/dev-python/py/Manifest +++ b/dev-python/py/Manifest @@ -1,2 +1,3 @@ DIST py-1.4.30.tar.gz 191796 BLAKE2B 1d908f5f29788868cb7c4da49bc8a9343176030df4549a992e06245d1d56d74ddf0477048992d282aa59e6ace1ff695a7e2c2c6f00b55f185bc91d0df8b6a6dd SHA512 dd9d92f8eaf8e5fc61bfb7feb4b07df5ae1745ebf88bcbe9d62589caa9e1f7d8beae5b2d20b407520919e47391cd50cf2d5323556fa5bd90a37e120b1d394d7a DIST py-1.4.34.tar.gz 194450 BLAKE2B 3e5733bb53d4f7eb8e6d43a5140f2ddf692d4272b564a9dd4fe8ede2cb4d0296e7c8764957bf4615f5cc4272d07997d126133dfce8ac8837f01d91bf557023d2 SHA512 2e19c82c8315274bffe0ba2c7e20ae3af95f942c40c16121ec953af186f8ff33e8f427c070e137bb04b7cc6dcc6779e35df3911c08595fd3294b5ec9897706e1 +DIST py-1.5.2.tar.gz 189542 BLAKE2B f0c5995121492ebca7bab9e73b7db61edf014be8e7d76822c72ded9ea19dd647dc0a83cbbcbf732c4ddae9070126cecb00958b623ca43d2219b7be8519b5b58e SHA512 ad92110d56caba2be44c6759350b05ceb882165ad0f58e6cce8361273be874b20b01856d685b142a83edff77b41bcce2911cf5797db5253b4f3e9b36e703c07d diff --git a/dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch b/dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch new file mode 100644 index 00000000000..36727df9366 --- /dev/null +++ b/dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch @@ -0,0 +1,14 @@ +https://github.com/pytest-dev/py/issues/162 + +--- a/testing/log/test_warning.py ++++ b/testing/log/test_warning.py +@@ -8,8 +8,7 @@ import py + mypath = py.path.local(__file__).new(ext=".py") + + +-win = sys.platform.startswith('win') +-pytestmark = pytest.mark.skipif(win and LooseVersion(pytest.__version__) >= LooseVersion('3.1'), ++pytestmark = pytest.mark.skipif(LooseVersion(pytest.__version__) >= LooseVersion('3.1'), + reason='apiwarn is not compatible with pytest >= 3.1 (#162)') + + diff --git a/dev-python/py/py-1.5.2.ebuild b/dev-python/py/py-1.5.2.ebuild new file mode 100644 index 00000000000..3c27d6bfde9 --- /dev/null +++ b/dev-python/py/py-1.5.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="library with cross-python path, ini-parsing, io, code, log facilities" +HOMEPAGE="http://pylib.readthedocs.org/ https://pypi.python.org/pypi/py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc test" + +RDEPEND="" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${P}-skip-apiwarn-pytest31.patch ) + +python_prepare_all() { + sed -e 's:intersphinx_mapping:#&:' -i doc/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_test() { + # 1 failure, test_comments, under both pypy only. + # Also appears the home repo has no issue tracker. + [[ "${EPYTHON}" == pypy ]] && return + py.test -v -v || die "testing failed with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/html/. ) + distutils-r1_python_install_all +}