[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-04-30 Thread Michał Górny
commit: aac25425831b4fd0ef35d94a865023a74b674ac1
Author: Michał Górny  gentoo  org>
AuthorDate: Wed May  1 04:25:32 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed May  1 04:34:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aac25425

dev-python/pyrate-limiter: Bump to 3.6.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.6.1.ebuild | 75 ++
 2 files changed, 76 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index c4f6f47427ae..55c15d3fb6d2 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,2 +1,3 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate_limiter-3.6.0.tar.gz 280021 BLAKE2B 
4ff5e115376cfb5d860c4cd6437ccbb323e40f96bb81a9933f6f648d029c0f3a1d6674e1a9e1c0309a7087a9d1eb670918ca60d3c960e8acab017e12ffa5c28e
 SHA512 
1f7f92203be443c27e2825022462c51eec2e276a4e58afc129599eacde21da55ed8229b0e5c7af21e650eb896b22c73f5fd227f56c1455cbd8d506894fed73a9
+DIST pyrate_limiter-3.6.1.tar.gz 280264 BLAKE2B 
042601c2f80fc855301cda8be4af2547afdfb9532a93a418201db312535a12fa30b2469024ee318a14cb51f422b70b6aeef96d41978eb8f8c31d046a0a73
 SHA512 
b57cbd40473eab549ede0045451d1178dccfcac73f328bf4fe8106172602b52bafe612e2fa2df09f9fe99bdf68c3c7447e8d4f749ba260f3b29656100718c02b

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.6.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.6.1.ebuild
new file mode 100644
index ..276657b6cf9d
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.6.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+)
+EPYTEST_XDIST=1
+
+distutils_enable_sphinx docs \
+   dev-python/sphinx-autodoc-typehints \
+   dev-python/sphinx-copybutton \
+   dev-python/furo \
+   dev-python/myst-parser \
+   dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   # postgres tests require psycopg-pool
+   epytest -p asyncio -p rerunfailures --reruns=5 -k "not postgres"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-04-30 Thread Michał Górny
commit: f6289325fdda0dd1943a4a60f41d320922fce8fe
Author: Michał Górny  gentoo  org>
AuthorDate: Wed May  1 04:25:09 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed May  1 04:34:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6289325

dev-python/pyrate-limiter: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  3 -
 .../pyrate-limiter/pyrate-limiter-3.2.1.ebuild | 74 --
 .../pyrate-limiter/pyrate-limiter-3.3.0.ebuild | 74 --
 .../pyrate-limiter/pyrate-limiter-3.4.1.ebuild | 74 --
 4 files changed, 225 deletions(-)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 62f1e9eab14b..c4f6f47427ae 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,5 +1,2 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
-DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B 
eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21
 SHA512 
cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7
-DIST pyrate_limiter-3.3.0.tar.gz 278153 BLAKE2B 
df0e3aaf53150fb905be994c8bcc268e45bafddf795514eb8a6ee56da25e998b85336f48331a2720cbf501cb6feee806c9c17d99adcb4647979f6d79f960cc9f
 SHA512 
ee2cc0c573c7b696e6a6444eca85b4e5c8315c291b6ab64ed5e60cfd54298cd9aca1efdbfb7a669b92f8169848c03287ecb0a3f50c9281a4bc15acfc1713e300
-DIST pyrate_limiter-3.4.1.tar.gz 278251 BLAKE2B 
c1894a190d0d70134683723d8ffa2b216ebf724cd409e9cc25301b9a9d70d73cf1e4fc1c7bf48e661935cc6f2c530b9d45f96d7c86ce2a20ab0e47892093e6d3
 SHA512 
64c06abaf540e21e4b085062eff83f1f9d1710156c2d22c0180858c31f731733d9db69bdc56e48aaf4220d874d9c5253f506decd0ce3743c8fb8aa695a4ff6b4
 DIST pyrate_limiter-3.6.0.tar.gz 280021 BLAKE2B 
4ff5e115376cfb5d860c4cd6437ccbb323e40f96bb81a9933f6f648d029c0f3a1d6674e1a9e1c0309a7087a9d1eb670918ca60d3c960e8acab017e12ffa5c28e
 SHA512 
1f7f92203be443c27e2825022462c51eec2e276a4e58afc129599eacde21da55ed8229b0e5c7af21e650eb896b22c73f5fd227f56c1455cbd8d506894fed73a9

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
deleted file mode 100644
index 0f5062a73d40..
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
-HOMEPAGE="
-   https://github.com/vutran1710/PyrateLimiter/
-   https://pypi.org/project/pyrate-limiter/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
-   dev-python/filelock[${PYTHON_USEDEP}]
-   dev-python/redis[${PYTHON_USEDEP}]
-"
-
-BDEPEND="
-   test? (
-   dev-db/redis
-   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-   dev-python/pyyaml[${PYTHON_USEDEP}]
-   )
-"
-
-EPYTEST_DESELECT=(
-   # Optional dependency redis-py-cluster not packaged
-   "tests/test_02.py::test_redis_cluster"
-)
-EPYTEST_XDIST=1
-
-distutils_enable_sphinx docs \
-   dev-python/sphinx-autodoc-typehints \
-   dev-python/sphinx-copybutton \
-   dev-python/furo \
-   dev-python/myst-parser \
-   dev-python/sphinxcontrib-apidoc
-distutils_enable_tests pytest
-
-src_test() {
-   local redis_pid="${T}"/redis.pid
-   local redis_port=6379
-
-   # Spawn Redis itself for testing purposes
-   einfo "Spawning Redis"
-   einfo "NOTE: Port ${redis_port} must be free"
-   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
-   daemonize yes
-   pidfile ${redis_pid}
-   port ${redis_port}
-   bind 127.0.0.1 ::1
-   ${extra_conf}
-   EOF
-
-   # Run the tests
-   distutils-r1_src_test
-
-   # Clean up afterwards
-   kill "$(<"${redis_pid}")" || die
-}
-
-python_test() {
-   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-   epytest -p asyncio -p rerunfailures --reruns=5
-}

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.3.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.3.0.ebuild
deleted file mode 100644
index 0f5062a73d40..
--- 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-03-17 Thread Michał Górny
commit: e66ef0b8de9b397f0ff439cd0192cbebfcef0c72
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Mar 18 04:50:42 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Mar 18 04:58:37 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e66ef0b8

dev-python/pyrate-limiter: Bump to 3.6.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.6.0.ebuild | 75 ++
 2 files changed, 76 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 1b30ace06e2e..62f1e9eab14b 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -2,3 +2,4 @@ DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c549
 DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B 
eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21
 SHA512 
cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7
 DIST pyrate_limiter-3.3.0.tar.gz 278153 BLAKE2B 
df0e3aaf53150fb905be994c8bcc268e45bafddf795514eb8a6ee56da25e998b85336f48331a2720cbf501cb6feee806c9c17d99adcb4647979f6d79f960cc9f
 SHA512 
ee2cc0c573c7b696e6a6444eca85b4e5c8315c291b6ab64ed5e60cfd54298cd9aca1efdbfb7a669b92f8169848c03287ecb0a3f50c9281a4bc15acfc1713e300
 DIST pyrate_limiter-3.4.1.tar.gz 278251 BLAKE2B 
c1894a190d0d70134683723d8ffa2b216ebf724cd409e9cc25301b9a9d70d73cf1e4fc1c7bf48e661935cc6f2c530b9d45f96d7c86ce2a20ab0e47892093e6d3
 SHA512 
64c06abaf540e21e4b085062eff83f1f9d1710156c2d22c0180858c31f731733d9db69bdc56e48aaf4220d874d9c5253f506decd0ce3743c8fb8aa695a4ff6b4
+DIST pyrate_limiter-3.6.0.tar.gz 280021 BLAKE2B 
4ff5e115376cfb5d860c4cd6437ccbb323e40f96bb81a9933f6f648d029c0f3a1d6674e1a9e1c0309a7087a9d1eb670918ca60d3c960e8acab017e12ffa5c28e
 SHA512 
1f7f92203be443c27e2825022462c51eec2e276a4e58afc129599eacde21da55ed8229b0e5c7af21e650eb896b22c73f5fd227f56c1455cbd8d506894fed73a9

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.6.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.6.0.ebuild
new file mode 100644
index ..276657b6cf9d
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.6.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+)
+EPYTEST_XDIST=1
+
+distutils_enable_sphinx docs \
+   dev-python/sphinx-autodoc-typehints \
+   dev-python/sphinx-copybutton \
+   dev-python/furo \
+   dev-python/myst-parser \
+   dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   # postgres tests require psycopg-pool
+   epytest -p asyncio -p rerunfailures --reruns=5 -k "not postgres"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-03-11 Thread Michał Górny
commit: f1a67e237e4df3d6aaf7b038bb86e5fd02353031
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Mar 12 04:52:44 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Mar 12 05:08:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a67e23

dev-python/pyrate-limiter: Bump to 3.4.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.4.1.ebuild | 74 ++
 2 files changed, 75 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 46dd421a22fd..1b30ace06e2e 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,3 +1,4 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B 
eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21
 SHA512 
cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7
 DIST pyrate_limiter-3.3.0.tar.gz 278153 BLAKE2B 
df0e3aaf53150fb905be994c8bcc268e45bafddf795514eb8a6ee56da25e998b85336f48331a2720cbf501cb6feee806c9c17d99adcb4647979f6d79f960cc9f
 SHA512 
ee2cc0c573c7b696e6a6444eca85b4e5c8315c291b6ab64ed5e60cfd54298cd9aca1efdbfb7a669b92f8169848c03287ecb0a3f50c9281a4bc15acfc1713e300
+DIST pyrate_limiter-3.4.1.tar.gz 278251 BLAKE2B 
c1894a190d0d70134683723d8ffa2b216ebf724cd409e9cc25301b9a9d70d73cf1e4fc1c7bf48e661935cc6f2c530b9d45f96d7c86ce2a20ab0e47892093e6d3
 SHA512 
64c06abaf540e21e4b085062eff83f1f9d1710156c2d22c0180858c31f731733d9db69bdc56e48aaf4220d874d9c5253f506decd0ce3743c8fb8aa695a4ff6b4

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.4.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.4.1.ebuild
new file mode 100644
index ..0f5062a73d40
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.4.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+)
+EPYTEST_XDIST=1
+
+distutils_enable_sphinx docs \
+   dev-python/sphinx-autodoc-typehints \
+   dev-python/sphinx-copybutton \
+   dev-python/furo \
+   dev-python/myst-parser \
+   dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   epytest -p asyncio -p rerunfailures --reruns=5
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-03-10 Thread Michał Górny
commit: 3c8334021742e05e4b1f133ceda77bf919f18800
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Mar 11 03:58:43 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Mar 11 04:08:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c833402

dev-python/pyrate-limiter: Bump to 3.3.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.3.0.ebuild | 74 ++
 2 files changed, 75 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index e8e7ee329f5a..46dd421a22fd 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,2 +1,3 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B 
eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21
 SHA512 
cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7
+DIST pyrate_limiter-3.3.0.tar.gz 278153 BLAKE2B 
df0e3aaf53150fb905be994c8bcc268e45bafddf795514eb8a6ee56da25e998b85336f48331a2720cbf501cb6feee806c9c17d99adcb4647979f6d79f960cc9f
 SHA512 
ee2cc0c573c7b696e6a6444eca85b4e5c8315c291b6ab64ed5e60cfd54298cd9aca1efdbfb7a669b92f8169848c03287ecb0a3f50c9281a4bc15acfc1713e300

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.3.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.3.0.ebuild
new file mode 100644
index ..0f5062a73d40
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.3.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+)
+EPYTEST_XDIST=1
+
+distutils_enable_sphinx docs \
+   dev-python/sphinx-autodoc-typehints \
+   dev-python/sphinx-copybutton \
+   dev-python/furo \
+   dev-python/myst-parser \
+   dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   epytest -p asyncio -p rerunfailures --reruns=5
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-03-09 Thread Andrew Ammerlaan
commit: a8b476bec1cddbbce6ca5dcdb1cde35214998a2a
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Sat Mar  9 16:53:32 2024 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sat Mar  9 16:55:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8b476be

dev-python/pyrate-limiter: enable py3.12, pypy3

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
index 78b2ab43d67d..0f5062a73d40 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1 pypi
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-02-22 Thread Michał Górny
commit: 04cc6f7833cb96bbe7d81b013702ec9377649059
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Feb 22 15:21:21 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Feb 22 15:27:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04cc6f78

dev-python/pyrate-limiter: Enable building docs

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
index dd754b5109b7..78b2ab43d67d 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
@@ -38,12 +38,12 @@ EPYTEST_DESELECT=(
 )
 EPYTEST_XDIST=1
 
-# TODO: package sphinx-copybutton
-# distutils_enable_sphinx docs \
-#  dev-python/sphinx-autodoc-typehints \
-#  dev-python/furo \
-#  dev-python/myst-parser \
-#  dev-python/sphinxcontrib-apidoc
+distutils_enable_sphinx docs \
+   dev-python/sphinx-autodoc-typehints \
+   dev-python/sphinx-copybutton \
+   dev-python/furo \
+   dev-python/myst-parser \
+   dev-python/sphinxcontrib-apidoc
 distutils_enable_tests pytest
 
 src_test() {



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-02-22 Thread Michał Górny
commit: be46888368631cff17aebdec768f78e3ffae186d
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Feb 22 15:22:09 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Feb 22 15:27:21 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be468883

dev-python/pyrate-limiter: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  3 -
 .../pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 70 -
 .../pyrate-limiter/pyrate-limiter-3.1.1.ebuild | 71 --
 .../pyrate-limiter/pyrate-limiter-3.2.0.ebuild | 71 --
 4 files changed, 215 deletions(-)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index a9761d28ba83..e8e7ee329f5a 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,5 +1,2 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
-DIST pyrate_limiter-3.1.0.tar.gz 276659 BLAKE2B 
2858b2cbb4805f139ae1a26171e6a1c235eb2d8eb93380f10ed27db16e2983b01b83e7d72d4bf5b44b69710569687e86c1194ea3e1a5ff8750e5966faf5a5b6e
 SHA512 
601b70a380965fc108ec110842170ea73065af38a809c8d103d5061948058590c6a228327ed425e1c69ef30d2c832cb8a61508d326eb3bcd6cbb2df813fa987e
-DIST pyrate_limiter-3.1.1.tar.gz 276906 BLAKE2B 
874e6407341d970f360dd8c800ff6910ebf2d3524e5b18cc56189d6cc9c0cb66e6d20287d9581c0ac4c935a2c719633cd72a56ada583c67d7659beefa8c006ce
 SHA512 
f0c94af5ca4aa3c5bef1831b0dd188a67fe0c1ae076277f698880f2867ea81f80e702701185d49e204a2bb1b4b998850f18277cd8e19e759e3974ea573d4eca5
-DIST pyrate_limiter-3.2.0.tar.gz 277126 BLAKE2B 
ebf460424ee09dabd629391cc44f2099e8e22c1cc3f9f1fd2855cab6a8667be6d8fd04d9437ebb56ce74dd4b073a744cff656a7d9fffbb7073d7d496847140df
 SHA512 
184f002a2fcb47678b6e1aa790bd914739d152410817ba994d92015313320725602c80d6bcd959bbcea48a0e184e5e0de35bd6855420c714d7079ca826e31296
 DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B 
eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21
 SHA512 
cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
deleted file mode 100644
index 76ac0d5a356b..
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
-HOMEPAGE="
-   https://github.com/vutran1710/PyrateLimiter/
-   https://pypi.org/project/pyrate-limiter/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
-   dev-python/filelock[${PYTHON_USEDEP}]
-   dev-python/redis[${PYTHON_USEDEP}]
-"
-
-BDEPEND="
-   test? (
-   dev-db/redis
-   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/pyyaml[${PYTHON_USEDEP}]
-   )
-"
-
-EPYTEST_DESELECT=(
-   # Optional dependency redis-py-cluster not packaged
-   "tests/test_02.py::test_redis_cluster"
-   # Python 3.11 is slightly faster, leading to a non-critical failure here
-   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
-)
-EPYTEST_XDIST=1
-
-# TODO: package sphinx-copybutton
-# distutils_enable_sphinx docs \
-#  dev-python/sphinx-autodoc-typehints \
-#  dev-python/furo \
-#  dev-python/myst-parser \
-#  dev-python/sphinxcontrib-apidoc
-distutils_enable_tests pytest
-
-src_test() {
-   local redis_pid="${T}"/redis.pid
-   local redis_port=6379
-
-   # Spawn Redis itself for testing purposes
-   einfo "Spawning Redis"
-   einfo "NOTE: Port ${redis_port} must be free"
-   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
-   daemonize yes
-   pidfile ${redis_pid}
-   port ${redis_port}
-   bind 127.0.0.1 ::1
-   ${extra_conf}
-   EOF
-
-   # Run the tests
-   distutils-r1_src_test
-
-   # Clean up afterwards
-   kill "$(<"${redis_pid}")" || die
-}

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.1.ebuild
deleted file mode 100644
index 36c4f841a191..
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.1.1.ebuild
+++ /dev/null
@@ -1,71 +0,0 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-02-13 Thread Michał Górny
commit: a4bea9e3df280601839e7a78aacbf1978955e3d1
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 14 07:04:24 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 14 07:26:35 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4bea9e3

dev-python/pyrate-limiter: Bump to 3.2.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.2.1.ebuild | 74 ++
 2 files changed, 75 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index eda74da6e58f..a9761d28ba83 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -2,3 +2,4 @@ DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c549
 DIST pyrate_limiter-3.1.0.tar.gz 276659 BLAKE2B 
2858b2cbb4805f139ae1a26171e6a1c235eb2d8eb93380f10ed27db16e2983b01b83e7d72d4bf5b44b69710569687e86c1194ea3e1a5ff8750e5966faf5a5b6e
 SHA512 
601b70a380965fc108ec110842170ea73065af38a809c8d103d5061948058590c6a228327ed425e1c69ef30d2c832cb8a61508d326eb3bcd6cbb2df813fa987e
 DIST pyrate_limiter-3.1.1.tar.gz 276906 BLAKE2B 
874e6407341d970f360dd8c800ff6910ebf2d3524e5b18cc56189d6cc9c0cb66e6d20287d9581c0ac4c935a2c719633cd72a56ada583c67d7659beefa8c006ce
 SHA512 
f0c94af5ca4aa3c5bef1831b0dd188a67fe0c1ae076277f698880f2867ea81f80e702701185d49e204a2bb1b4b998850f18277cd8e19e759e3974ea573d4eca5
 DIST pyrate_limiter-3.2.0.tar.gz 277126 BLAKE2B 
ebf460424ee09dabd629391cc44f2099e8e22c1cc3f9f1fd2855cab6a8667be6d8fd04d9437ebb56ce74dd4b073a744cff656a7d9fffbb7073d7d496847140df
 SHA512 
184f002a2fcb47678b6e1aa790bd914739d152410817ba994d92015313320725602c80d6bcd959bbcea48a0e184e5e0de35bd6855420c714d7079ca826e31296
+DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B 
eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21
 SHA512 
cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
new file mode 100644
index ..dd754b5109b7
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.2.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+)
+EPYTEST_XDIST=1
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst-parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   epytest -p asyncio -p rerunfailures --reruns=5
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-01-10 Thread Michał Górny
commit: 0df331c58dc892b1dac8fab91caa41fb31d9d15e
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jan 10 18:01:15 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jan 10 21:11:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0df331c5

dev-python/pyrate-limiter: Bump to 3.2.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.2.0.ebuild | 71 ++
 2 files changed, 72 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index e507a055e810..eda74da6e58f 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,3 +1,4 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate_limiter-3.1.0.tar.gz 276659 BLAKE2B 
2858b2cbb4805f139ae1a26171e6a1c235eb2d8eb93380f10ed27db16e2983b01b83e7d72d4bf5b44b69710569687e86c1194ea3e1a5ff8750e5966faf5a5b6e
 SHA512 
601b70a380965fc108ec110842170ea73065af38a809c8d103d5061948058590c6a228327ed425e1c69ef30d2c832cb8a61508d326eb3bcd6cbb2df813fa987e
 DIST pyrate_limiter-3.1.1.tar.gz 276906 BLAKE2B 
874e6407341d970f360dd8c800ff6910ebf2d3524e5b18cc56189d6cc9c0cb66e6d20287d9581c0ac4c935a2c719633cd72a56ada583c67d7659beefa8c006ce
 SHA512 
f0c94af5ca4aa3c5bef1831b0dd188a67fe0c1ae076277f698880f2867ea81f80e702701185d49e204a2bb1b4b998850f18277cd8e19e759e3974ea573d4eca5
+DIST pyrate_limiter-3.2.0.tar.gz 277126 BLAKE2B 
ebf460424ee09dabd629391cc44f2099e8e22c1cc3f9f1fd2855cab6a8667be6d8fd04d9437ebb56ce74dd4b073a744cff656a7d9fffbb7073d7d496847140df
 SHA512 
184f002a2fcb47678b6e1aa790bd914739d152410817ba994d92015313320725602c80d6bcd959bbcea48a0e184e5e0de35bd6855420c714d7079ca826e31296

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.2.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.2.0.ebuild
new file mode 100644
index ..36c4f841a191
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.2.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+   
"tests/test_limiter.py::test_limiter_01[clock0-create_sqlite_bucket-False-None]"
+)
+EPYTEST_XDIST=1
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst-parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2024-01-03 Thread Michał Górny
commit: 20c53480ee193e066508fc01b31441b488fc8a0b
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jan  3 08:32:23 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jan  3 09:01:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c53480

dev-python/pyrate-limiter: Bump to 3.1.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.1.1.ebuild | 71 ++
 2 files changed, 72 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 3ecbe7e6c07e..e507a055e810 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,2 +1,3 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate_limiter-3.1.0.tar.gz 276659 BLAKE2B 
2858b2cbb4805f139ae1a26171e6a1c235eb2d8eb93380f10ed27db16e2983b01b83e7d72d4bf5b44b69710569687e86c1194ea3e1a5ff8750e5966faf5a5b6e
 SHA512 
601b70a380965fc108ec110842170ea73065af38a809c8d103d5061948058590c6a228327ed425e1c69ef30d2c832cb8a61508d326eb3bcd6cbb2df813fa987e
+DIST pyrate_limiter-3.1.1.tar.gz 276906 BLAKE2B 
874e6407341d970f360dd8c800ff6910ebf2d3524e5b18cc56189d6cc9c0cb66e6d20287d9581c0ac4c935a2c719633cd72a56ada583c67d7659beefa8c006ce
 SHA512 
f0c94af5ca4aa3c5bef1831b0dd188a67fe0c1ae076277f698880f2867ea81f80e702701185d49e204a2bb1b4b998850f18277cd8e19e759e3974ea573d4eca5

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.1.ebuild
new file mode 100644
index ..36c4f841a191
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.1.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+   
"tests/test_limiter.py::test_limiter_01[clock0-create_sqlite_bucket-False-None]"
+)
+EPYTEST_XDIST=1
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst-parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-12-30 Thread Michał Górny
commit: 4a3abc53aff37f1d7b3f0ba30a2f747fb8d34144
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 30 18:31:07 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 30 18:31:07 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a3abc53

dev-python/pyrate-limiter: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 -
 .../pyrate-limiter/pyrate-limiter-3.0.1.ebuild | 73 --
 2 files changed, 74 deletions(-)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 224a8f4aae48..3ecbe7e6c07e 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,3 +1,2 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
-DIST pyrate_limiter-3.0.1.tar.gz 276145 BLAKE2B 
f7e861b4abb7269e38a7c4c75d6131c453ee0a8dc8fc48686571d22f87d3c95b0e7d3d1bf99c22966276a9949d60abc4edceadad3db93bf247947c4067dbf6a1
 SHA512 
4f0656e2f8d38319e58b36c4301860a7c326a2daac85d170dc951a14813dc6f0c7a4995b8bf12a354da6d9e192fdf80fa8d8ee4f77e429e8cfc6f5366a8e415c
 DIST pyrate_limiter-3.1.0.tar.gz 276659 BLAKE2B 
2858b2cbb4805f139ae1a26171e6a1c235eb2d8eb93380f10ed27db16e2983b01b83e7d72d4bf5b44b69710569687e86c1194ea3e1a5ff8750e5966faf5a5b6e
 SHA512 
601b70a380965fc108ec110842170ea73065af38a809c8d103d5061948058590c6a228327ed425e1c69ef30d2c832cb8a61508d326eb3bcd6cbb2df813fa987e

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild
deleted file mode 100644
index 47947453dc89..
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 multiprocessing pypi
-
-DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
-HOMEPAGE="
-   https://github.com/vutran1710/PyrateLimiter/
-   https://pypi.org/project/pyrate-limiter/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
-   dev-python/filelock[${PYTHON_USEDEP}]
-   dev-python/redis[${PYTHON_USEDEP}]
-"
-
-BDEPEND="
-   test? (
-   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/pytest-xdist[${PYTHON_USEDEP}]
-   dev-python/pyyaml[${PYTHON_USEDEP}]
-   )
-"
-
-EPYTEST_DESELECT=(
-   # Optional dependency redis-py-cluster not packaged
-   "tests/test_02.py::test_redis_cluster"
-   # Python 3.11 is slightly faster, leading to a non-critical failure here
-   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
-)
-
-# TODO: package sphinx-copybutton
-# distutils_enable_sphinx docs \
-#  dev-python/sphinx-autodoc-typehints \
-#  dev-python/furo \
-#  dev-python/myst-parser \
-#  dev-python/sphinxcontrib-apidoc
-distutils_enable_tests pytest
-
-src_test() {
-   local redis_pid="${T}"/redis.pid
-   local redis_port=6379
-
-   # Spawn Redis itself for testing purposes
-   einfo "Spawning Redis"
-   einfo "NOTE: Port ${redis_port} must be free"
-   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
-   daemonize yes
-   pidfile ${redis_pid}
-   port ${redis_port}
-   bind 127.0.0.1 ::1
-   ${extra_conf}
-   EOF
-
-   # Run the tests
-   distutils-r1_src_test
-
-   # Clean up afterwards
-   kill "$(<"${redis_pid}")" || die
-}
-
-python_test() {
-   epytest -n "$(makeopts_jobs)" --dist=worksteal
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-12-18 Thread Michał Górny
commit: e37c22af10cd4bbb1aa1a30a958b9783f775cfe0
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Dec 19 06:13:45 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Dec 19 06:13:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e37c22af

dev-python/pyrate-limiter: Revert "add dev-db/redis test dep"

Now added twice, since I've sorted it before merging.

Reverts: acc2d4ec81682372d6e438c626836b341e864fab
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
index e7613875cc64..76ac0d5a356b 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
@@ -28,7 +28,6 @@ BDEPEND="
dev-db/redis
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
-   dev-db/redis
)
 "
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-11-06 Thread Michał Górny
commit: be0e95a40cde62f20949da34802d96df38b08328
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Nov  3 19:20:11 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Nov  7 05:29:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be0e95a4

dev-python/pyrate-limiter: Use EPYTEST_XDIST

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 8 ++--
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
index 47947453dc89..2bfd9a737bdd 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 DISTUTILS_USE_PEP517=poetry
 PYTHON_COMPAT=( python3_{10..11} )
 
-inherit distutils-r1 multiprocessing pypi
+inherit distutils-r1 pypi
 
 DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
 HOMEPAGE="
@@ -26,7 +26,6 @@ RDEPEND="
 BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
)
 "
@@ -37,6 +36,7 @@ EPYTEST_DESELECT=(
# Python 3.11 is slightly faster, leading to a non-critical failure here

"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
 )
+EPYTEST_XDIST=1
 
 # TODO: package sphinx-copybutton
 # distutils_enable_sphinx docs \
@@ -67,7 +67,3 @@ src_test() {
# Clean up afterwards
kill "$(<"${redis_pid}")" || die
 }
-
-python_test() {
-   epytest -n "$(makeopts_jobs)" --dist=worksteal
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-09-14 Thread Andrew Ammerlaan
commit: 85d2fc2b104cfc00a90c0a5da4830a7214781773
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Thu Sep 14 10:36:27 2023 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Thu Sep 14 11:01:29 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d2fc2b

dev-python/pyrate-limiter: enable py3.12

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
index b1634af6b4c0..8830d2dc63a5 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-08-28 Thread Michał Górny
commit: 5bb094bf7e0bc1d13f46556b5a2ec6127d56c08c
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Aug 28 16:33:16 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Aug 28 16:53:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bb094bf

dev-python/pyrate-limiter: Bump to 3.1.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 73 ++
 2 files changed, 74 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 048404f5c941..224a8f4aae48 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,2 +1,3 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate_limiter-3.0.1.tar.gz 276145 BLAKE2B 
f7e861b4abb7269e38a7c4c75d6131c453ee0a8dc8fc48686571d22f87d3c95b0e7d3d1bf99c22966276a9949d60abc4edceadad3db93bf247947c4067dbf6a1
 SHA512 
4f0656e2f8d38319e58b36c4301860a7c326a2daac85d170dc951a14813dc6f0c7a4995b8bf12a354da6d9e192fdf80fa8d8ee4f77e429e8cfc6f5366a8e415c
+DIST pyrate_limiter-3.1.0.tar.gz 276659 BLAKE2B 
2858b2cbb4805f139ae1a26171e6a1c235eb2d8eb93380f10ed27db16e2983b01b83e7d72d4bf5b44b69710569687e86c1194ea3e1a5ff8750e5966faf5a5b6e
 SHA512 
601b70a380965fc108ec110842170ea73065af38a809c8d103d5061948058590c6a228327ed425e1c69ef30d2c832cb8a61508d326eb3bcd6cbb2df813fa987e

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
new file mode 100644
index ..47947453dc89
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-xdist[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+)
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst-parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   epytest -n "$(makeopts_jobs)" --dist=worksteal
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-08-27 Thread Michał Górny
commit: 28cd072af4bc92ffb4c55c19b3e074e3b0071151
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Aug 28 04:58:24 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Aug 28 05:13:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28cd072a

dev-python/pyrate-limiter: Bump to 3.0.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-3.0.1.ebuild | 73 ++
 2 files changed, 74 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 4e288d151240..048404f5c941 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1 +1,2 @@
 DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
+DIST pyrate_limiter-3.0.1.tar.gz 276145 BLAKE2B 
f7e861b4abb7269e38a7c4c75d6131c453ee0a8dc8fc48686571d22f87d3c95b0e7d3d1bf99c22966276a9949d60abc4edceadad3db93bf247947c4067dbf6a1
 SHA512 
4f0656e2f8d38319e58b36c4301860a7c326a2daac85d170dc951a14813dc6f0c7a4995b8bf12a354da6d9e192fdf80fa8d8ee4f77e429e8cfc6f5366a8e415c

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild
new file mode 100644
index ..47947453dc89
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-3.0.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 multiprocessing pypi
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-xdist[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+)
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst-parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_test() {
+   local redis_pid="${T}"/redis.pid
+   local redis_port=6379
+
+   # Spawn Redis itself for testing purposes
+   einfo "Spawning Redis"
+   einfo "NOTE: Port ${redis_port} must be free"
+   "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start 
redis server"
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1 ::1
+   ${extra_conf}
+   EOF
+
+   # Run the tests
+   distutils-r1_src_test
+
+   # Clean up afterwards
+   kill "$(<"${redis_pid}")" || die
+}
+
+python_test() {
+   epytest -n "$(makeopts_jobs)" --dist=worksteal
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-05-19 Thread Arthur Zamarin
commit: 82e35f766ca66e3a41628f1f338c96c0f80a0491
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat May 20 05:58:25 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat May 20 05:58:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82e35f76

dev-python/pyrate-limiter: Keyword 2.10.0 x86, #906601

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
index ea03d5cca205..b1634af6b4c0 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
@@ -21,7 +21,7 @@ S="${WORKDIR}/PyrateLimiter-${PV}"
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~x86"
 
 RDEPEND="
dev-python/filelock[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-02-27 Thread Andrew Ammerlaan
commit: 8e60322a887e16aec936acdc6cba04db9d5218fb
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Mon Feb 27 08:55:59 2023 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Mon Feb 27 08:56:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e60322a

dev-python/pyrate-limiter: add 2.10.0

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-2.10.0.ebuild| 62 ++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index 4d74b08d2730..5835c04acc67 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1,2 +1,3 @@
+DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 
3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585
 SHA512 
b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe
 DIST pyrate-limiter-2.8.2.gh.tar.gz 51233 BLAKE2B 
a9a8bbf123596c7c64f60ae2c9d4e23a394dae6d18a8d09c0ec0b289bbbfce9dacee523726b906a30cf17fd7243b3fa1d1f2dc60af1bec67dc242d944535a5fd
 SHA512 
3ff703347a86f6a91cf6b9c8edce3017cf88f2373961ba235c2f521d0112b0116951be7314b95d737ef0bec5cb6bae9908874fafe4060eb773cf0577e2ddbdb3
 DIST pyrate-limiter-2.9.1.gh.tar.gz 71544 BLAKE2B 
2f87f998abdb891673931f91a9980f5876f58a2225ca41af6ec390e59bd326e8614162549946552b22fea093f89f5c2a219eaa9223719dd4db9023944f040da2
 SHA512 
461b1627574ce09817b434ce0d47e3bbcb549fcd8176623b87640089c1dd9bb45030ae1c944ffd7906b04f9b1ba2977c841c1da9483619bc092570b86a49bcd6

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
new file mode 100644
index ..b8c9c6a33c68
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-2.10.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+SRC_URI="
+   
https://github.com/vutran1710/PyrateLimiter/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/PyrateLimiter-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/django[${PYTHON_USEDEP}]
+   dev-python/django-redis[${PYTHON_USEDEP}]
+   dev-python/fakeredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-xdist[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+)
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst_parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_prepare() {
+   # workaround installing LICENSE into site-packages
+   sed -i -e 's:^include:exclude:' pyproject.toml || die
+   distutils-r1_src_prepare
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-02-25 Thread Andrew Ammerlaan
commit: 25ed063bb73c4a81f856f76f60964d71f9396ebd
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Sun Feb 26 07:09:57 2023 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sun Feb 26 07:10:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25ed063b

dev-python/pyrate-limiter: add 2.9.1

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 .../pyrate-limiter/pyrate-limiter-2.9.1.ebuild | 62 ++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
index d4c433f1a851..4d74b08d2730 100644
--- a/dev-python/pyrate-limiter/Manifest
+++ b/dev-python/pyrate-limiter/Manifest
@@ -1 +1,2 @@
 DIST pyrate-limiter-2.8.2.gh.tar.gz 51233 BLAKE2B 
a9a8bbf123596c7c64f60ae2c9d4e23a394dae6d18a8d09c0ec0b289bbbfce9dacee523726b906a30cf17fd7243b3fa1d1f2dc60af1bec67dc242d944535a5fd
 SHA512 
3ff703347a86f6a91cf6b9c8edce3017cf88f2373961ba235c2f521d0112b0116951be7314b95d737ef0bec5cb6bae9908874fafe4060eb773cf0577e2ddbdb3
+DIST pyrate-limiter-2.9.1.gh.tar.gz 71544 BLAKE2B 
2f87f998abdb891673931f91a9980f5876f58a2225ca41af6ec390e59bd326e8614162549946552b22fea093f89f5c2a219eaa9223719dd4db9023944f040da2
 SHA512 
461b1627574ce09817b434ce0d47e3bbcb549fcd8176623b87640089c1dd9bb45030ae1c944ffd7906b04f9b1ba2977c841c1da9483619bc092570b86a49bcd6

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-2.9.1.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-2.9.1.ebuild
new file mode 100644
index ..b8c9c6a33c68
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-2.9.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+SRC_URI="
+   
https://github.com/vutran1710/PyrateLimiter/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/PyrateLimiter-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+   test? (
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/django[${PYTHON_USEDEP}]
+   dev-python/django-redis[${PYTHON_USEDEP}]
+   dev-python/fakeredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-xdist[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+)
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst_parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest
+
+src_prepare() {
+   # workaround installing LICENSE into site-packages
+   sed -i -e 's:^include:exclude:' pyproject.toml || die
+   distutils-r1_src_prepare
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-02-10 Thread Michał Górny
commit: 37891e01f7540251e02bfdd0899ccd2d38606976
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Feb 10 13:02:14 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Feb 10 13:02:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37891e01

dev-python/pyrate-limiter: Workaround stray file in site-packages

Closes: https://bugs.gentoo.org/893818
Signed-off-by: Michał Górny  gentoo.org>

 .../pyrate-limiter/pyrate-limiter-2.8.2.ebuild | 36 +++---
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild
index 3d5ec115929c..b8c9c6a33c68 100644
--- a/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild
+++ b/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild
@@ -9,8 +9,14 @@ PYTHON_COMPAT=( python3_{9..11} )
 inherit distutils-r1
 
 DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
-HOMEPAGE="https://github.com/vutran1710/PyrateLimiter;
-SRC_URI="https://github.com/vutran1710/PyrateLimiter/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.gh.tar.gz"
+HOMEPAGE="
+   https://github.com/vutran1710/PyrateLimiter/
+   https://pypi.org/project/pyrate-limiter/
+"
+SRC_URI="
+   
https://github.com/vutran1710/PyrateLimiter/archive/refs/tags/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
 S="${WORKDIR}/PyrateLimiter-${PV}"
 
 LICENSE="MIT"
@@ -22,15 +28,17 @@ RDEPEND="
dev-python/redis[${PYTHON_USEDEP}]
 "
 
-BDEPEND="test? (
-   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/django[${PYTHON_USEDEP}]
-   dev-python/django-redis[${PYTHON_USEDEP}]
-   dev-python/fakeredis[${PYTHON_USEDEP}]
-   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/pytest-xdist[${PYTHON_USEDEP}]
-   dev-python/pyyaml[${PYTHON_USEDEP}]
-)"
+BDEPEND="
+   test? (
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/django[${PYTHON_USEDEP}]
+   dev-python/django-redis[${PYTHON_USEDEP}]
+   dev-python/fakeredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-xdist[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+   )
+"
 
 EPYTEST_DESELECT=(
# Optional dependency redis-py-cluster not packaged
@@ -46,3 +54,9 @@ EPYTEST_DESELECT=(
 #  dev-python/myst_parser \
 #  dev-python/sphinxcontrib-apidoc
 distutils_enable_tests pytest
+
+src_prepare() {
+   # workaround installing LICENSE into site-packages
+   sed -i -e 's:^include:exclude:' pyproject.toml || die
+   distutils-r1_src_prepare
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyrate-limiter/

2023-01-28 Thread Andrew Ammerlaan
commit: 13705b7b329a295091024a07683bc2308d0fe3ff
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Sat Jan 28 09:13:12 2023 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sat Jan 28 10:01:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13705b7b

dev-python/pyrate-limiter: new package, add 2.8.2

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pyrate-limiter/Manifest |  1 +
 dev-python/pyrate-limiter/metadata.xml | 17 
 .../pyrate-limiter/pyrate-limiter-2.8.2.ebuild | 48 ++
 3 files changed, 66 insertions(+)

diff --git a/dev-python/pyrate-limiter/Manifest 
b/dev-python/pyrate-limiter/Manifest
new file mode 100644
index ..d4c433f1a851
--- /dev/null
+++ b/dev-python/pyrate-limiter/Manifest
@@ -0,0 +1 @@
+DIST pyrate-limiter-2.8.2.gh.tar.gz 51233 BLAKE2B 
a9a8bbf123596c7c64f60ae2c9d4e23a394dae6d18a8d09c0ec0b289bbbfce9dacee523726b906a30cf17fd7243b3fa1d1f2dc60af1bec67dc242d944535a5fd
 SHA512 
3ff703347a86f6a91cf6b9c8edce3017cf88f2373961ba235c2f521d0112b0116951be7314b95d737ef0bec5cb6bae9908874fafe4060eb773cf0577e2ddbdb3

diff --git a/dev-python/pyrate-limiter/metadata.xml 
b/dev-python/pyrate-limiter/metadata.xml
new file mode 100644
index ..90ba4d1a797a
--- /dev/null
+++ b/dev-python/pyrate-limiter/metadata.xml
@@ -0,0 +1,17 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   andrewammerl...@gentoo.org
+   Andrew Ammerlaan
+   
+   
+   pyt...@gentoo.org
+   Python
+   
+   
+   
+   pyrate-limiter
+   vutran1710/PyrateLimiter
+   
+

diff --git a/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild 
b/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild
new file mode 100644
index ..f04b57aebe33
--- /dev/null
+++ b/dev-python/pyrate-limiter/pyrate-limiter-2.8.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
+HOMEPAGE="https://github.com/vutran1710/PyrateLimiter;
+SRC_URI="https://github.com/vutran1710/PyrateLimiter/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.gh.tar.gz"
+S="${WORKDIR}/PyrateLimiter-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+   dev-python/filelock[${PYTHON_USEDEP}]
+   dev-python/redis-py[${PYTHON_USEDEP}]
+"
+
+BDEPEND="test? (
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/django[${PYTHON_USEDEP}]
+   dev-python/django-redis[${PYTHON_USEDEP}]
+   dev-python/fakeredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-xdist[${PYTHON_USEDEP}]
+   dev-python/pyyaml[${PYTHON_USEDEP}]
+)"
+
+EPYTEST_DESELECT=(
+   # Optional dependency redis-py-cluster not packaged
+   "tests/test_02.py::test_redis_cluster"
+   # Python 3.11 is slightly faster, leading to a non-critical failure here
+   
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
+)
+
+# TODO: package sphinx-copybutton
+# distutils_enable_sphinx docs \
+#  dev-python/sphinx-autodoc-typehints \
+#  dev-python/furo \
+#  dev-python/myst_parser \
+#  dev-python/sphinxcontrib-apidoc
+distutils_enable_tests pytest