From 19744f19c5d667caa692882f171f64fb8fdeb9fb Mon Sep 17 00:00:00 2001 From: Jeffrey Lin Date: Sat, 22 Feb 2020 22:37:51 -0500 Subject: net-libs/stem: EAPI 7; add pypy3 support Signed-off-by: Jeffrey Lin Closes: https://github.com/gentoo/gentoo/pull/14745 Signed-off-by: Andreas Sturmlechner --- net-libs/stem/stem-1.8.0-r1.ebuild | 47 ++++++++++++++++++++++++++++++++++++++ net-libs/stem/stem-1.8.0.ebuild | 46 ------------------------------------- 2 files changed, 47 insertions(+), 46 deletions(-) create mode 100644 net-libs/stem/stem-1.8.0-r1.ebuild delete mode 100644 net-libs/stem/stem-1.8.0.ebuild (limited to 'net-libs') diff --git a/net-libs/stem/stem-1.8.0-r1.ebuild b/net-libs/stem/stem-1.8.0-r1.ebuild new file mode 100644 index 000000000000..d24b6703b468 --- /dev/null +++ b/net-libs/stem/stem-1.8.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=(python3_{6,7,8} pypy3) +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 + +DESCRIPTION="Stem is a Python controller library for Tor" +HOMEPAGE="https://stem.torproject.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] + net-vpn/tor ) + dev-python/setuptools[${PYTHON_USEDEP}]" + +RDEPEND="net-vpn/tor" + +DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} ) + +python_prepare_all() { + # Disable failing test + sed -i -e "/test_expand_path/a \ + \ \ \ \ return" test/integ/util/system.py || die + sed -i -e "/test_parsing_with_example/a \ + \ \ \ \ return" test/unit/manual.py || die + sed -i -e "/test_parsing_with_unknown_options/a \ + \ \ \ \ return" test/unit/manual.py || die + sed -i -e "/test_saving_manual/a \ + \ \ \ \ return" test/unit/manual.py || die + sed -i -e "/test_sdist_matches_git/a \ + \ \ \ \ return" test/integ/installation.py || die + sed -i -e "/test_connections_by_ss/a \ + \ \ \ \ return" test/integ/util/connection.py || die + distutils-r1_python_prepare_all +} + +python_test() { + ${PYTHON} run_tests.py --all --target RUN_ALL || die +} diff --git a/net-libs/stem/stem-1.8.0.ebuild b/net-libs/stem/stem-1.8.0.ebuild deleted file mode 100644 index 95d26e15939c..000000000000 --- a/net-libs/stem/stem-1.8.0.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=(python{3_6,3_7}) - -inherit vcs-snapshot distutils-r1 - -DESCRIPTION="Stem is a Python controller library for Tor" -HOMEPAGE="https://stem.torproject.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] - net-vpn/tor ) - dev-python/setuptools[${PYTHON_USEDEP}]" - -RDEPEND="net-vpn/tor" - -DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} ) - -python_prepare_all() { - # Disable failing test - sed -i -e "/test_expand_path/a \ - \ \ \ \ return" test/integ/util/system.py || die - sed -i -e "/test_parsing_with_example/a \ - \ \ \ \ return" test/unit/manual.py || die - sed -i -e "/test_parsing_with_unknown_options/a \ - \ \ \ \ return" test/unit/manual.py || die - sed -i -e "/test_saving_manual/a \ - \ \ \ \ return" test/unit/manual.py || die - sed -i -e "/test_sdist_matches_git/a \ - \ \ \ \ return" test/integ/installation.py || die - sed -i -e "/test_connections_by_ss/a \ - \ \ \ \ return" test/integ/util/connection.py || die - distutils-r1_python_prepare_all -} - -python_test() { - ${PYTHON} run_tests.py --all --target RUN_ALL || die -} -- cgit v1.2.3-65-gdbad