From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1207897-garchives=archives.gentoo.org@lists.gentoo.org> 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 7711013835B for <garchives@archives.gentoo.org>; Sun, 20 Sep 2020 14:08:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B98FE08FB; Sun, 20 Sep 2020 14:08:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 3FFDFE08FB for <gentoo-commits@lists.gentoo.org>; Sun, 20 Sep 2020 14:08:58 +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 BF7C6340AEC for <gentoo-commits@lists.gentoo.org>; Sun, 20 Sep 2020 14:08:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 678DD342 for <gentoo-commits@lists.gentoo.org>; Sun, 20 Sep 2020 14:08:55 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> 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" <mgorny@gentoo.org> Message-ID: <1600610928.dce2ca7d7db3a6260762217db5a98be0d7e4f73a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/virtualenv/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/virtualenv/virtualenv-16.7.10-r1.ebuild dev-python/virtualenv/virtualenv-16.7.10.ebuild dev-python/virtualenv/virtualenv-20.0.31-r1.ebuild dev-python/virtualenv/virtualenv-20.0.31.ebuild X-VCS-Directories: dev-python/virtualenv/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: dce2ca7d7db3a6260762217db5a98be0d7e4f73a X-VCS-Branch: master Date: Sun, 20 Sep 2020 14:08:55 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0c880cb6-965d-40f4-bd2b-8380ab55af8b X-Archives-Hash: 6e50122101aa50e5aa113cd3635d3d19 commit: dce2ca7d7db3a6260762217db5a98be0d7e4f73a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Sep 20 13:48:41 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Sep 20 14:08:48 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dce2ca7d dev-python/virtualenv: Remove python2 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> ...16.7.10.ebuild => virtualenv-16.7.10-r1.ebuild} | 31 +++++++++++----------- ...20.0.31.ebuild => virtualenv-20.0.31-r1.ebuild} | 21 +++++++-------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/dev-python/virtualenv/virtualenv-16.7.10.ebuild b/dev-python/virtualenv/virtualenv-16.7.10-r1.ebuild similarity index 70% rename from dev-python/virtualenv/virtualenv-16.7.10.ebuild rename to dev-python/virtualenv/virtualenv-16.7.10-r1.ebuild index e4d99e7a79d..898e23e80b6 100644 --- a/dev-python/virtualenv/virtualenv-16.7.10.ebuild +++ b/dev-python/virtualenv/virtualenv-16.7.10-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 @@ -26,16 +26,14 @@ RESTRICT="!test? ( test )" RDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}]" BDEPEND="${RDEPEND} test? ( - $(python_gen_cond_dep ' - >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pypiserver[${PYTHON_USEDEP}] - dev-python/pytest-localserver[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - ' -3) + >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pypiserver[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] )" DOCS=( docs/index.rst docs/changes.rst ) @@ -55,13 +53,14 @@ distutils_enable_sphinx docs \ dev-python/towncrier python_test() { - if ! python_is_python3; then - ewarn "Tests are skipped on py2, please test externally" - return - fi - cp "${S}"/LICENSE.txt "${BUILD_DIR}"/lib || \ die "Could not copy LICENSE.txt with ${EPYTHON}" pytest -vv tests || die "Tests fail with ${EPYTHON}" } + +pkg_postinst() { + elog "Please note that while virtualenv package no longer supports" + elog "Python 2.7, you can still create py2.7 virtualenvs via:" + elog " $ virtualenv -p /usr/bin/python2.7 ..." +} diff --git a/dev-python/virtualenv/virtualenv-20.0.31.ebuild b/dev-python/virtualenv/virtualenv-20.0.31-r1.ebuild similarity index 86% rename from dev-python/virtualenv/virtualenv-20.0.31.ebuild rename to dev-python/virtualenv/virtualenv-20.0.31-r1.ebuild index 874b73871c3..4e1a69e4749 100644 --- a/dev-python/virtualenv/virtualenv-20.0.31.ebuild +++ b/dev-python/virtualenv/virtualenv-20.0.31-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python{2_7,3_{6..9}} pypy3 ) +PYTHON_COMPAT=( python3_{6..9} pypy3 ) DISTUTILS_USE_SETUPTOOLS=manual inherit distutils-r1 @@ -28,16 +28,12 @@ RDEPEND=" >=dev-python/filelock-3[${PYTHON_USEDEP}] >=dev-python/setuptools-41[${PYTHON_USEDEP}] >=dev-python/six-1.9.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/contextlib2-0.6.0[${PYTHON_USEDEP}] - >=dev-python/pathlib2-2.3.3[${PYTHON_USEDEP}] - ' -2) $(python_gen_cond_dep ' >=dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}] - ' -2 python3_{6,7} pypy3) + ' python3_{6,7} pypy3) $(python_gen_cond_dep ' >=dev-python/importlib_resources-1.0[${PYTHON_USEDEP}] - ' -2 python3_6 pypy3)" + ' python3_6 pypy3)" # coverage is used somehow magically in virtualenv, maybe it actually # tests something useful BDEPEND=" @@ -79,10 +75,7 @@ src_configure() { } python_test() { - if ! python_is_python3; then - ewarn "Tests are skipped on py2, please test externally" - return - elif [[ ${EPYTHON} == pypy3 ]]; then + if [[ ${EPYTHON} == pypy3 ]]; then # TODO: skip with better granularity ewarn "Skipping broken tests on pypy3" return @@ -92,3 +85,9 @@ python_test() { pytest -vv || die "Tests fail with ${EPYTHON}" } + +pkg_postinst() { + elog "Please note that while virtualenv package no longer supports" + elog "Python 2.7, you can still create py2.7 virtualenvs via:" + elog " $ virtualenv -p 2.7 ..." +}