[gentoo-commits] repo/gentoo:master commit in: dev-python/lockfile/files/, dev-python/lockfile/
commit: 3e0779ef01cda614df7313fecbad343475b32746 Author: Michał Górny gentoo org> AuthorDate: Fri May 27 05:57:26 2022 + Commit: Michał Górny gentoo org> CommitDate: Fri May 27 06:10:34 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0779ef dev-python/lockfile: Use PEP517 build Signed-off-by: Michał Górny gentoo.org> .../lockfile/files/lockfile-0.12.2-pytest.patch| 20 ++ dev-python/lockfile/lockfile-0.12.2-r3.ebuild | 31 ++ 2 files changed, 51 insertions(+) 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 ..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.0 +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 ..3eee1e70ca38 --- /dev/null +++ b/dev-python/lockfile/lockfile-0.12.2-r3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Platform-independent file locking module" +HOMEPAGE=" + https://launchpad.net/pylockfile/ + https://pypi.org/project/lockfile/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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
[gentoo-commits] repo/gentoo:master commit in: dev-python/lockfile/files/, dev-python/lockfile/
commit: 8198c7d6618cef80269edb4f7c02977aa79d5d44 Author: Justin Lecher gentoo org> AuthorDate: Mon Nov 23 09:08:41 2015 + Commit: Justin Lecher gentoo org> CommitDate: Mon Nov 23 10:05:31 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8198c7d6 dev-python/lockfile: Drop old Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher gentoo.org> dev-python/lockfile/Manifest | 2 - dev-python/lockfile/files/py3-support.patch | 107 --- dev-python/lockfile/lockfile-0.10.2.ebuild | 44 --- dev-python/lockfile/lockfile-0.9.1-r1.ebuild | 44 --- 4 files changed, 197 deletions(-) diff --git a/dev-python/lockfile/Manifest b/dev-python/lockfile/Manifest index bfa50c8..4be3a3c 100644 --- a/dev-python/lockfile/Manifest +++ b/dev-python/lockfile/Manifest @@ -1,3 +1 @@ -DIST lockfile-0.10.2.tar.gz 20662 SHA256 9e42252f17d1dd89ee31745e0c4fbe58862c25147eb0ef5295c9cd9bcb4ea2c1 SHA512 7d70bcf7c343228f144687dd2cbc47a525034a68134fa626077d08308e6abce80559e36e9f65859d4c46873c712f62e1d6bb2aeec422d337332b65caf2e430a8 WHIRLPOOL d23a0b99da2304d9c884e69df7fbae4e507d7bab35fe450f2062aba44b4c85fd2c1585012cd02a56c886b50c44fb5a470afe13546f828297c498c3a8551eda86 DIST lockfile-0.11.0.tar.gz 20909 SHA256 eed7e0c829135aaaf2a9df83652bc6e2cc50175d933741c25aac0394674e7fd3 SHA512 6c4c69e1434194076a99f8134a2558c791675d420a17687dfd5b38c1303564392ecc388ec285d55a20027bcbcbc1b3475a489b70390796c46346b89d4b18ad89 WHIRLPOOL 3fe41cec5f22109ce17e249a02469201e74cc6facd18bbcd5d6b75984f1f72e66d36eab68772d9bc6aa0c1ef6597f3bdf8f8757d9f867323d152cca8a47a445f -DIST lockfile-0.9.1.tar.gz 16949 SHA256 88d8ea8d435ee5691117a87d1ca8fed2f8da881eb145295bf6895ac2c416e95d SHA512 1f7e2b13c42df730339e653a361bf4b85a289d62ed9277f159ab454b1e951d922884086299912472236ce0772d5eceebab7e0c6407590bb2ccbe9c56b664de05 WHIRLPOOL 543bc9ad7e937feba52c6132eee3356a9a229c8866f4f605f8399343a676fc98f62bf33f121c4f8dcbac8e18f38168561d34119efea5e30b53427a7e7283055d diff --git a/dev-python/lockfile/files/py3-support.patch b/dev-python/lockfile/files/py3-support.patch deleted file mode 100644 index ca6349a..000 --- a/dev-python/lockfile/files/py3-support.patch +++ /dev/null @@ -1,107 +0,0 @@ -# https://github.com/smontanaro/pylockfile/commit/379fa0b6131995f96f5bd048906fc0bd3c2527f7 -# https://github.com/smontanaro/pylockfile/commit/eeead7d35e9a97b457b90edd241fd031df68d57b -# https://github.com/smontanaro/pylockfile/commit/bf2627a5b9f83e1bbcf1b5030a693acb6236a211 a/lockfile/__init__.py -+++ b/lockfile/__init__.py -@@ -1,4 +1,3 @@ -- - """ - lockfile.py - Platform-independent advisory file locks. - -@@ -50,6 +49,8 @@ Exceptions: - NotMyLock - File was locked but not by the current thread/process - """ - -+from __future__ import absolute_import -+ - import sys - import socket - import os -@@ -257,7 +258,7 @@ def LinkFileLock(*args, **kwds): - Do not use in new code. Instead, import LinkLockFile from the - lockfile.linklockfile module. - """ --import linklockfile -+from . import linklockfile - return _fl_helper(linklockfile.LinkLockFile, "lockfile.linklockfile", - *args, **kwds) - -@@ -267,7 +268,7 @@ def MkdirFileLock(*args, **kwds): - Do not use in new code. Instead, import MkdirLockFile from the - lockfile.mkdirlockfile module. - """ --import mkdirlockfile -+from . import mkdirlockfile - return _fl_helper(mkdirlockfile.MkdirLockFile, "lockfile.mkdirlockfile", - *args, **kwds) - -@@ -277,7 +278,7 @@ def SQLiteFileLock(*args, **kwds): - Do not use in new code. Instead, import SQLiteLockFile from the - lockfile.mkdirlockfile module. - """ --import sqlitelockfile -+from . import sqlitelockfile - return _fl_helper(sqlitelockfile.SQLiteLockFile, "lockfile.sqlitelockfile", - *args, **kwds) - -@@ -306,10 +307,10 @@ def locked(path, timeout=None): - return decor - - if hasattr(os, "link"): --import linklockfile as _llf -+from . import linklockfile as _llf - LockFile = _llf.LinkLockFile - else: --import mkdirlockfile as _mlf -+from . import mkdirlockfile as _mlf - LockFile = _mlf.MkdirLockFile - - FileLock = LockFile -diff --git a/lockfile/pidlockfile.py b/lockfile/pidlockfile.py -index 3fc8f63..a965ba8 100644 a/lockfile/pidlockfile.py -+++ b/lockfile/pidlockfile.py -@@ -78,7 +78,7 @@ class PIDLockFile(LockBase): - while True: - try: - write_pid_to_pidfile(self.path) --except OSError, exc: -+except OSError as exc: - if exc.errno == errno.EEXIST: - # The lock creation failed. Maybe sleep a bit. - if timeout is not None and time.time() > end_time: -@@ -159,7 +159,7 @@ def write_pid_to_pidfile(pidfile_path): - - """ - open_flags = (os.O_CREAT |
[gentoo-commits] repo/gentoo:master commit in: dev-python/lockfile/files/, dev-python/lockfile/
commit: 28f2c3f85113ade9e521953b6b8998d00602eec6 Author: Justin Lecher gentoo org> AuthorDate: Sun Nov 1 17:20:22 2015 + Commit: Justin Lecher gentoo org> CommitDate: Mon Nov 2 11:47:12 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28f2c3f8 dev-python/lockfile: Drop old obsoletes: Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=536240 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=560752 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher gentoo.org> dev-python/lockfile/Manifest | 2 - dev-python/lockfile/files/py3-support.patch | 107 -- dev-python/lockfile/lockfile-0.10.2.ebuild| 43 --- dev-python/lockfile/lockfile-0.11.0-r1.ebuild | 2 +- dev-python/lockfile/lockfile-0.9.1-r1.ebuild | 43 --- 5 files changed, 1 insertion(+), 196 deletions(-) diff --git a/dev-python/lockfile/Manifest b/dev-python/lockfile/Manifest index bfa50c8..4be3a3c 100644 --- a/dev-python/lockfile/Manifest +++ b/dev-python/lockfile/Manifest @@ -1,3 +1 @@ -DIST lockfile-0.10.2.tar.gz 20662 SHA256 9e42252f17d1dd89ee31745e0c4fbe58862c25147eb0ef5295c9cd9bcb4ea2c1 SHA512 7d70bcf7c343228f144687dd2cbc47a525034a68134fa626077d08308e6abce80559e36e9f65859d4c46873c712f62e1d6bb2aeec422d337332b65caf2e430a8 WHIRLPOOL d23a0b99da2304d9c884e69df7fbae4e507d7bab35fe450f2062aba44b4c85fd2c1585012cd02a56c886b50c44fb5a470afe13546f828297c498c3a8551eda86 DIST lockfile-0.11.0.tar.gz 20909 SHA256 eed7e0c829135aaaf2a9df83652bc6e2cc50175d933741c25aac0394674e7fd3 SHA512 6c4c69e1434194076a99f8134a2558c791675d420a17687dfd5b38c1303564392ecc388ec285d55a20027bcbcbc1b3475a489b70390796c46346b89d4b18ad89 WHIRLPOOL 3fe41cec5f22109ce17e249a02469201e74cc6facd18bbcd5d6b75984f1f72e66d36eab68772d9bc6aa0c1ef6597f3bdf8f8757d9f867323d152cca8a47a445f -DIST lockfile-0.9.1.tar.gz 16949 SHA256 88d8ea8d435ee5691117a87d1ca8fed2f8da881eb145295bf6895ac2c416e95d SHA512 1f7e2b13c42df730339e653a361bf4b85a289d62ed9277f159ab454b1e951d922884086299912472236ce0772d5eceebab7e0c6407590bb2ccbe9c56b664de05 WHIRLPOOL 543bc9ad7e937feba52c6132eee3356a9a229c8866f4f605f8399343a676fc98f62bf33f121c4f8dcbac8e18f38168561d34119efea5e30b53427a7e7283055d diff --git a/dev-python/lockfile/files/py3-support.patch b/dev-python/lockfile/files/py3-support.patch deleted file mode 100644 index ca6349a..000 --- a/dev-python/lockfile/files/py3-support.patch +++ /dev/null @@ -1,107 +0,0 @@ -# https://github.com/smontanaro/pylockfile/commit/379fa0b6131995f96f5bd048906fc0bd3c2527f7 -# https://github.com/smontanaro/pylockfile/commit/eeead7d35e9a97b457b90edd241fd031df68d57b -# https://github.com/smontanaro/pylockfile/commit/bf2627a5b9f83e1bbcf1b5030a693acb6236a211 a/lockfile/__init__.py -+++ b/lockfile/__init__.py -@@ -1,4 +1,3 @@ -- - """ - lockfile.py - Platform-independent advisory file locks. - -@@ -50,6 +49,8 @@ Exceptions: - NotMyLock - File was locked but not by the current thread/process - """ - -+from __future__ import absolute_import -+ - import sys - import socket - import os -@@ -257,7 +258,7 @@ def LinkFileLock(*args, **kwds): - Do not use in new code. Instead, import LinkLockFile from the - lockfile.linklockfile module. - """ --import linklockfile -+from . import linklockfile - return _fl_helper(linklockfile.LinkLockFile, "lockfile.linklockfile", - *args, **kwds) - -@@ -267,7 +268,7 @@ def MkdirFileLock(*args, **kwds): - Do not use in new code. Instead, import MkdirLockFile from the - lockfile.mkdirlockfile module. - """ --import mkdirlockfile -+from . import mkdirlockfile - return _fl_helper(mkdirlockfile.MkdirLockFile, "lockfile.mkdirlockfile", - *args, **kwds) - -@@ -277,7 +278,7 @@ def SQLiteFileLock(*args, **kwds): - Do not use in new code. Instead, import SQLiteLockFile from the - lockfile.mkdirlockfile module. - """ --import sqlitelockfile -+from . import sqlitelockfile - return _fl_helper(sqlitelockfile.SQLiteLockFile, "lockfile.sqlitelockfile", - *args, **kwds) - -@@ -306,10 +307,10 @@ def locked(path, timeout=None): - return decor - - if hasattr(os, "link"): --import linklockfile as _llf -+from . import linklockfile as _llf - LockFile = _llf.LinkLockFile - else: --import mkdirlockfile as _mlf -+from . import mkdirlockfile as _mlf - LockFile = _mlf.MkdirLockFile - - FileLock = LockFile -diff --git a/lockfile/pidlockfile.py b/lockfile/pidlockfile.py -index 3fc8f63..a965ba8 100644 a/lockfile/pidlockfile.py -+++ b/lockfile/pidlockfile.py -@@ -78,7 +78,7 @@ class PIDLockFile(LockBase): - while True: - try: - write_pid_to_pidfile(self.path) --except OSError, exc: -+except OSError as exc: - if exc.errno == errno.EEXIST: - # The lock creation failed.