Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/socket-burst-dampener/
Date: Sun, 29 Aug 2021 19:32:00
Message-Id: 1630265349.49d3ce92badba96cb64b61f4d6801a6b829adb43.arthurzam@gentoo
1 commit: 49d3ce92badba96cb64b61f4d6801a6b829adb43
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 29 04:53:46 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 29 19:29:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49d3ce92
7
8 net-misc/socket-burst-dampener: enable py3.10, cleanup test
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 .../socket-burst-dampener-1.3.1.ebuild | 24 +++++++---------------
13 1 file changed, 7 insertions(+), 17 deletions(-)
14
15 diff --git a/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild b/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild
16 index 8135e65af85..4685d688a2c 100644
17 --- a/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild
18 +++ b/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild
19 @@ -1,33 +1,23 @@
20 # Copyright 1999-2021 Gentoo Authors
21 # Distributed under the terms of the GNU General Public License v2
22
23 -EAPI=7
24 -PYTHON_COMPAT=( python3_{7,8,9} )
25 +EAPI=8
26
27 +PYTHON_COMPAT=( python3_{8..10} )
28 inherit distutils-r1
29
30 DESCRIPTION="A daemon that spawns one command per connection, and dampens connection bursts"
31 -HOMEPAGE="https://github.com/zmedico/socket-burst-damener"
32 +HOMEPAGE="https://github.com/zmedico/socket-burst-dampener"
33 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34
35 LICENSE="Apache-2.0"
36 KEYWORDS="~amd64 ~x86"
37 SLOT="0"
38 -IUSE="test"
39 -RESTRICT="!test? ( test )"
40 -RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
41 -BDEPEND="${RDEPEND}
42 - test? (
43 - dev-python/pytest[${PYTHON_USEDEP}]
44 - dev-python/pytest-cov[${PYTHON_USEDEP}]
45 - )
46 -"
47 +
48 +distutils_enable_tests pytest
49
50 src_prepare() {
51 - sed -i "s:^\(__version__ =\).*:\\1 \"${PV}\":" src/${PN//-/_}.py || die
52 + # remove "v" prefix from version
53 + sed -e '/__version__/s/"v/"/' -i src/${PN//-/_}.py || die
54 distutils-r1_src_prepare
55 }
56 -
57 -python_test() {
58 - esetup.py test || die "tests failed for ${EPYTHON}"
59 -}