From b48b9ecfe3c32ae708b828dd9b840d53d0386b15 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 20 Sep 2020 11:23:14 +0200 Subject: dev-python/regex: 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/regex/regex-2020.4.4-r1.ebuild | 36 +++++++++++++++++++++++++++++++ dev-python/regex/regex-2020.4.4.ebuild | 36 ------------------------------- 2 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 dev-python/regex/regex-2020.4.4-r1.ebuild delete mode 100644 dev-python/regex/regex-2020.4.4.ebuild (limited to 'dev-python/regex') diff --git a/dev-python/regex/regex-2020.4.4-r1.ebuild b/dev-python/regex/regex-2020.4.4-r1.ebuild new file mode 100644 index 000000000000..7c9ea45b80ac --- /dev/null +++ b/dev-python/regex/regex-2020.4.4-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} pypy3 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Alternative regular expression module to replace re" +HOMEPAGE="https://bitbucket.org/mrabarnett/mrab-regex" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86" +IUSE="doc" + +PATCHES=( + "${FILESDIR}/regex-2019.11.1-pypy.patch" +) + +python_test() { + distutils_install_for_testing + + pushd "${BUILD_DIR}/lib" > /dev/null || die + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" + popd > /dev/null || die +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/Features.html ) + local DOCS=( README.rst docs/*.rst ) + + distutils-r1_python_install_all +} diff --git a/dev-python/regex/regex-2020.4.4.ebuild b/dev-python/regex/regex-2020.4.4.ebuild deleted file mode 100644 index 807392594a6e..000000000000 --- a/dev-python/regex/regex-2020.4.4.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python{2_7,3_{6..9}} pypy3 ) - -inherit distutils-r1 flag-o-matic - -DESCRIPTION="Alternative regular expression module to replace re" -HOMEPAGE="https://bitbucket.org/mrabarnett/mrab-regex" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86" -IUSE="doc" - -PATCHES=( - "${FILESDIR}/regex-2019.11.1-pypy.patch" -) - -python_test() { - distutils_install_for_testing - - pushd "${BUILD_DIR}/lib" > /dev/null || die - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" - popd > /dev/null || die -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/Features.html ) - local DOCS=( README.rst docs/*.rst ) - - distutils-r1_python_install_all -} -- cgit v1.2.3-65-gdbad