summaryrefslogtreecommitdiff
path: root/dev-python/zc-lockfile
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/zc-lockfile')
-rw-r--r--dev-python/zc-lockfile/Manifest2
-rw-r--r--dev-python/zc-lockfile/zc-lockfile-3.0.ebuild46
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/zc-lockfile/Manifest b/dev-python/zc-lockfile/Manifest
index 64a6a27cd45c..dc7f7f847cac 100644
--- a/dev-python/zc-lockfile/Manifest
+++ b/dev-python/zc-lockfile/Manifest
@@ -1,3 +1,5 @@
DIST zc.lockfile-2.0.tar.gz 11923 BLAKE2B 7609f64eef4521f0aa95dc899b253570a317bd997cced00665a2dbe22cf7f834ce75daaf4fdf79520157dee31742758aad1844d49c5eccb780e7d5fd2e8e5ac5 SHA512 2586bafacb12540383695a24cb01fd284e61bfa3fcb16431ed0e91278e547c68983363fb69c1ffbd54f7c22db43300ba018ccd2fb3e21666c98860415b7a3c3b
+DIST zc.lockfile-3.0.tar.gz 10043 BLAKE2B 9435f9999f976e6bfd6302b3d24960e21992f54755c6dadd9f0392254ff89b474039d7502c81c9667b4bb741300ced33bca35634f8990840809692cb025cb7f5 SHA512 65662d03933b0e295d69971a74a1d1ddf67086287bd98752d6d23d793130b0c612413c0dba365f7fa2213a5ef0981fc20bccbde304dc36a4092ad1f702ee9429
EBUILD zc-lockfile-2.0-r1.ebuild 1098 BLAKE2B ecb9cb1eb75e0241c6a7b441c58757d01e25072943a12e66174d75879bda410b4190d287e5b44d55cbfcc9f94f989e6cb4b77a4657707e506f4fa4b9129dae90 SHA512 37a3eab995ae4cbb5061ca3d5decbf152815bf878c4e54c515a4b2d94d07a6f425c4ec2660b77c387a2fd7a07433d98a2d1bf500cce83c32cea7bdeb3ab46f91
+EBUILD zc-lockfile-3.0.ebuild 1086 BLAKE2B b71b61031d645a05490b81aaee609fb70504cfeb7acb9b8ce6f863e00b3cbb4f1b29fc60ea2b2dbd66382e6c74226753836bf46d54add5c94a170b22d3bbaf65 SHA512 d070f29fe9cb87feb50bcc850969805733da16cc8e788f9d0b912a356f062032fc7d5ab9893c93caafadbf59009d4a70a5693312cd45c41f77df0a81649c6071
MISC metadata.xml 424 BLAKE2B 91d244951c549a683899bf54f792936273ff3e444def80249e6baeb9e3dfb810cd35fd822cec023574994dc06ce3168061832b31f489df3e0ee7c8303e80d4c8 SHA512 cb88901bf9146f663211ad373b2cd83ffe35ef7c30b87a13336143e0543f5f2aa38651079f92be17b05edf5f156bf4823cb58b1b69df6282c35a0007356098ea
diff --git a/dev-python/zc-lockfile/zc-lockfile-3.0.ebuild b/dev-python/zc-lockfile/zc-lockfile-3.0.ebuild
new file mode 100644
index 000000000000..64fb974fd65c
--- /dev/null
+++ b/dev-python/zc-lockfile/zc-lockfile-3.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Basic inter-process locks"
+HOMEPAGE="
+ https://github.com/zopefoundation/zc.lockfile/
+ https://pypi.org/project/zc.lockfile/
+"
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
+
+LICENSE="ZPL"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/zope-testing[${PYTHON_USEDEP}]
+ )
+"
+
+DOCS=( CHANGES.rst README.rst )
+
+distutils_enable_tests unittest
+
+python_prepare_all() {
+ # rdep is only needed for namespace
+ sed -i -e '/install_requires.*setuptools/d' setup.py || die
+ # use implicit namespace
+ sed -i -e '/namespace_packages/d' setup.py || die
+ # do not install README into site-packages
+ sed -e '/^ include_package_data/d' -i setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${EPYTHON}" -m unittest zc.lockfile.tests -v || die
+}