From 9b704c8fd59ce49947d5e0583b926c0d3518cb44 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 20 Sep 2020 11:18:19 +0200 Subject: dev-python/csv23: Remove python2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/csv23/csv23-0.3.2-r1.ebuild | 29 +++++++++++++++++++++++++++++ dev-python/csv23/csv23-0.3.2.ebuild | 32 -------------------------------- 2 files changed, 29 insertions(+), 32 deletions(-) create mode 100644 dev-python/csv23/csv23-0.3.2-r1.ebuild delete mode 100644 dev-python/csv23/csv23-0.3.2.ebuild (limited to 'dev-python/csv23') diff --git a/dev-python/csv23/csv23-0.3.2-r1.ebuild b/dev-python/csv23/csv23-0.3.2-r1.ebuild new file mode 100644 index 000000000000..a2facab53e10 --- /dev/null +++ b/dev-python/csv23/csv23-0.3.2-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Python 2/3 unicode CSV compatibility layer" +HOMEPAGE=" + https://pypi.org/project/csv23/ + https://github.com/xflr6/csv23/" +SRC_URI="https://github.com/xflr6/csv23/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86" + +BDEPEND=" + test? ( + >=dev-python/pytest-4.6[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/--cov/d' setup.cfg || die + distutils-r1_src_prepare +} diff --git a/dev-python/csv23/csv23-0.3.2.ebuild b/dev-python/csv23/csv23-0.3.2.ebuild deleted file mode 100644 index 799997c56b15..000000000000 --- a/dev-python/csv23/csv23-0.3.2.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) -inherit distutils-r1 - -DESCRIPTION="Python 2/3 unicode CSV compatibility layer" -HOMEPAGE=" - https://pypi.org/project/csv23/ - https://github.com/xflr6/csv23/" -SRC_URI="https://github.com/xflr6/csv23/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86" - -# note: upstream really uses mock at runtime -RDEPEND=" - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2)" -BDEPEND=" - test? ( - >=dev-python/pytest-4.6[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] )" - -distutils_enable_tests pytest - -src_prepare() { - sed -i -e '/--cov/d' setup.cfg || die - distutils-r1_src_prepare -} -- cgit v1.2.3-65-gdbad