Diff pyrate-limiter-2.10.0 with a pyrate-limiter-3.0.1

/usr/portage/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild 2023-10-09 14:52:30.348368372 +0300
4 4
EAPI=8
5 5

  
6 6
DISTUTILS_USE_PEP517=poetry
7
PYTHON_COMPAT=( python3_{10..12} )
7
PYTHON_COMPAT=( python3_{10..11} )
8 8

  
9
inherit distutils-r1
9
inherit distutils-r1 multiprocessing pypi
10 10

  
11 11
DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
12 12
HOMEPAGE="
13 13
	https://github.com/vutran1710/PyrateLimiter/
14 14
	https://pypi.org/project/pyrate-limiter/
15 15
"
16
SRC_URI="
17
	https://github.com/vutran1710/PyrateLimiter/archive/refs/tags/v${PV}.tar.gz
18
		-> ${P}.gh.tar.gz
19
"
20
S="${WORKDIR}/PyrateLimiter-${PV}"
21 16

  
22 17
LICENSE="MIT"
23 18
SLOT="0"
......
31 26
BDEPEND="
32 27
	test? (
33 28
		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
34
		dev-python/django[${PYTHON_USEDEP}]
35
		dev-python/django-redis[${PYTHON_USEDEP}]
36
		dev-python/fakeredis[${PYTHON_USEDEP}]
37
		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
38 29
		dev-python/pytest-xdist[${PYTHON_USEDEP}]
39 30
		dev-python/pyyaml[${PYTHON_USEDEP}]
40 31
	)
......
55 46
# 	dev-python/sphinxcontrib-apidoc
56 47
distutils_enable_tests pytest
57 48

  
58
src_prepare() {
59
	# workaround installing LICENSE into site-packages
60
	sed -i -e 's:^include:exclude:' pyproject.toml || die
61
	distutils-r1_src_prepare
49
src_test() {
50
	local redis_pid="${T}"/redis.pid
51
	local redis_port=6379
52

  
53
	# Spawn Redis itself for testing purposes
54
	einfo "Spawning Redis"
55
	einfo "NOTE: Port ${redis_port} must be free"
56
	"${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
57
		daemonize yes
58
		pidfile ${redis_pid}
59
		port ${redis_port}
60
		bind 127.0.0.1 ::1
61
		${extra_conf}
62
	EOF
63

  
64
	# Run the tests
65
	distutils-r1_src_test
66

  
67
	# Clean up afterwards
68
	kill "$(<"${redis_pid}")" || die
69
}
70

  
71
python_test() {
72
	epytest -n "$(makeopts_jobs)" --dist=worksteal
62 73
}
Thank you!