From 85741ad261c962df2bf91c18103962f710f7859c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 20 Sep 2020 11:22:47 +0200 Subject: dev-python/pyusb: 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/pyusb/pyusb-1.0.2-r1.ebuild | 30 ++++++++++++++++++++++++++++++ dev-python/pyusb/pyusb-1.0.2.ebuild | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) create mode 100644 dev-python/pyusb/pyusb-1.0.2-r1.ebuild delete mode 100644 dev-python/pyusb/pyusb-1.0.2.ebuild (limited to 'dev-python/pyusb') diff --git a/dev-python/pyusb/pyusb-1.0.2-r1.ebuild b/dev-python/pyusb/pyusb-1.0.2-r1.ebuild new file mode 100644 index 000000000000..02a1d97b136a --- /dev/null +++ b/dev-python/pyusb/pyusb-1.0.2-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) + +inherit distutils-r1 + +DESCRIPTION="USB support for Python" +HOMEPAGE="https://pyusb.github.io/pyusb/ https://pypi.org/project/pyusb/" +SRC_URI="https://github.com/walac/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +# pypi releases don't include tests +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc x86" +IUSE="" + +### This version is compatible with both 0.X and 1.X versions of libusb +DEPEND="virtual/libusb:= + dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +DOCS="README.rst docs/tutorial.rst" + +python_test() { + cd tests || die + "${PYTHON}" testall.py || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/pyusb/pyusb-1.0.2.ebuild b/dev-python/pyusb/pyusb-1.0.2.ebuild deleted file mode 100644 index f6dfae4b0c7f..000000000000 --- a/dev-python/pyusb/pyusb-1.0.2.ebuild +++ /dev/null @@ -1,30 +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,3_7,3_8} ) - -inherit distutils-r1 - -DESCRIPTION="USB support for Python" -HOMEPAGE="https://pyusb.github.io/pyusb/ https://pypi.org/project/pyusb/" -SRC_URI="https://github.com/walac/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -# pypi releases don't include tests -#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc x86" -IUSE="" - -### This version is compatible with both 0.X and 1.X versions of libusb -DEPEND="virtual/libusb:= - dev-python/setuptools[${PYTHON_USEDEP}]" -RDEPEND="${DEPEND}" - -DOCS="README.rst docs/tutorial.rst" - -python_test() { - cd tests || die - "${PYTHON}" testall.py || die "Tests failed with ${EPYTHON}" -} -- cgit v1.2.3-65-gdbad