From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/lockfile/Manifest | 1 + .../lockfile/files/lockfile-0.12.2-pytest.patch | 20 +++++++++++++++ dev-python/lockfile/lockfile-0.12.2-r3.ebuild | 30 ++++++++++++++++++++++ dev-python/lockfile/metadata.xml | 13 ++++++++++ 4 files changed, 64 insertions(+) create mode 100644 dev-python/lockfile/Manifest create mode 100644 dev-python/lockfile/files/lockfile-0.12.2-pytest.patch create mode 100644 dev-python/lockfile/lockfile-0.12.2-r3.ebuild create mode 100644 dev-python/lockfile/metadata.xml (limited to 'dev-python/lockfile') diff --git a/dev-python/lockfile/Manifest b/dev-python/lockfile/Manifest new file mode 100644 index 000000000000..788b2e59c3f5 --- /dev/null +++ b/dev-python/lockfile/Manifest @@ -0,0 +1 @@ +DIST lockfile-0.12.2.tar.gz 20874 BLAKE2B 8a1e49e8799516b44b219fb28101f3985d75fea842456e69c4357b71eb6a7be21cc56c0f9e885df8da3fb6c584ff4a47c7daad87ba34fc47a8cd40644ece063b SHA512 67b7d651d7e963a497c2604912c61eed90181cdd09c744a0ceaa26e6bbe09d1a871ce48be3949b7da7ea6b366b15492c8c8de589edeca2641ca5e6cb3804df07 diff --git a/dev-python/lockfile/files/lockfile-0.12.2-pytest.patch b/dev-python/lockfile/files/lockfile-0.12.2-pytest.patch new file mode 100644 index 000000000000..47362a4de6a0 --- /dev/null +++ b/dev-python/lockfile/files/lockfile-0.12.2-pytest.patch @@ -0,0 +1,20 @@ +diff -dup -r lockfile-0.12.2/test/compliancetest.py lockfile-0.12.2.new/test/compliancetest.py +--- lockfile-0.12.2/test/compliancetest.py 2015-11-25 19:29:13.000000000 +0100 ++++ lockfile-0.12.2.new/test/compliancetest.py 2022-05-27 07:55:43.720523461 +0200 +@@ -6,15 +6,13 @@ import lockfile + + + class ComplianceTest(object): +- def __init__(self): +- self.saved_class = lockfile.LockFile +- + def _testfile(self): + """Return platform-appropriate file. Helper for tests.""" + import tempfile + return os.path.join(tempfile.gettempdir(), 'trash-%s' % os.getpid()) + + def setup(self): ++ self.saved_class = lockfile.LockFile + lockfile.LockFile = self.class_to_test + + def teardown(self): diff --git a/dev-python/lockfile/lockfile-0.12.2-r3.ebuild b/dev-python/lockfile/lockfile-0.12.2-r3.ebuild new file mode 100644 index 000000000000..ce5e67d093be --- /dev/null +++ b/dev-python/lockfile/lockfile-0.12.2-r3.ebuild @@ -0,0 +1,30 @@ +# 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_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Platform-independent file locking module" +HOMEPAGE=" + https://launchpad.net/pylockfile/ + https://pypi.org/project/lockfile/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" + +BDEPEND=" + >dev-python/pbr-1.8[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${P}-pytest.patch +) + +distutils_enable_tests pytest +distutils_enable_sphinx doc/source --no-autodoc diff --git a/dev-python/lockfile/metadata.xml b/dev-python/lockfile/metadata.xml new file mode 100644 index 000000000000..d5a4bc4beec6 --- /dev/null +++ b/dev-python/lockfile/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + pylockfile + + baldeagleos-repo + -- cgit v1.3