commit: bf7641418cc83a3443e5151a64e90edf29dccca1
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 1 06:16:05 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 1 06:18:24 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf764141
dev-python/portalocker: Bump to 3.1.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/portalocker/Manifest | 1 +
dev-python/portalocker/portalocker-3.1.1.ebuild | 51 +++++++++++++++++++++++++
2 files changed, 52 insertions(+)
diff --git a/dev-python/portalocker/Manifest b/dev-python/portalocker/Manifest
index 78a3376f7122..f2ffbaa559d5 100644
--- a/dev-python/portalocker/Manifest
+++ b/dev-python/portalocker/Manifest
@@ -1 +1,2 @@
DIST portalocker-3.0.0.gh.tar.gz 35104 BLAKE2B
b96591c56f8f894eaf012bfa89dd4e5cf7ee300176f4ea861e29dbf6f2a3cade061605b2d0a5796010369caebc3b032d77b77bddff165959bd464e9d9e8b4ebc
SHA512
b3417bc0b4f726129b6625a778d7d828ab8401422ee1847b20ee79019fc029acb0cebbe539495e071cdf8dcd628d5764f39036059b19718b5ba2d0702388ac9c
+DIST portalocker-3.1.1.gh.tar.gz 36653 BLAKE2B
88fe7b46cf3d2d4b8f6aa2df8b6ac7582eda35965d7af8688e17f9c22c0ff29e671bfe4c74aef91532ce01e957b4777abc2c93bc3c93503f0f7fee995fdfb1ec
SHA512
80163a12d8eab1a0e2bc2eb5fd8f4c64f0abb49cbb99faa48d8e7ae4f61996c5c934e661a7a26996000962b68c45d5ab72c41abf03d7e7593dcaa98e69d0478f
diff --git a/dev-python/portalocker/portalocker-3.1.1.ebuild
b/dev-python/portalocker/portalocker-3.1.1.ebuild
new file mode 100644
index 000000000000..0d07a29a4197
--- /dev/null
+++ b/dev-python/portalocker/portalocker-3.1.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="A library for Python file locking"
+HOMEPAGE="
+ https://github.com/WoLpH/portalocker/
+ https://portalocker.readthedocs.io/
+ https://pypi.org/project/portalocker/
+"
+SRC_URI="
+ https://github.com/WoLpH/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ test? (
+ dev-python/redis[${PYTHON_USEDEP}]
+ >=dev-python/pytest-rerunfailures-15.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
+ >=dev-python/sphinx-6.0.0[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ default
+
+ # Disable code coverage in tests.
+ sed -i '/^ *--cov.*$/d' pytest.ini || die
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -p rerunfailures
+}
+
+pkg_postinst() {
+ optfeature "redis support" dev-python/redis
+}