diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-05-27 07:37:49 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-05-27 07:37:49 +0000 |
| commit | 531c06eb3ad68d8ef7337618cae898690e09f25c (patch) | |
| tree | 1648f7b9d5a2f4bf1cc88c83ab27e2e37466e03c /dev-python/lockfile | |
| parent | a32efecb4f46e788d2eed97191123797ddecd6b2 (diff) | |
| download | baldeagleos-repo-531c06eb3ad68d8ef7337618cae898690e09f25c.tar.gz baldeagleos-repo-531c06eb3ad68d8ef7337618cae898690e09f25c.tar.xz baldeagleos-repo-531c06eb3ad68d8ef7337618cae898690e09f25c.zip | |
Adding metadata
Diffstat (limited to 'dev-python/lockfile')
| -rw-r--r-- | dev-python/lockfile/files/lockfile-0.12.2-pytest.patch | 20 | ||||
| -rw-r--r-- | dev-python/lockfile/lockfile-0.12.2-r2.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/lockfile/lockfile-0.12.2-r3.ebuild | 31 |
3 files changed, 52 insertions, 1 deletions
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-r2.ebuild b/dev-python/lockfile/lockfile-0.12.2-r2.ebuild index 1d9b54e15ac9..a63b25a5ecd6 100644 --- a/dev-python/lockfile/lockfile-0.12.2-r2.ebuild +++ b/dev-python/lockfile/lockfile-0.12.2-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) inherit distutils-r1 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..c5b4926f8cfe --- /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_{7,8,9,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 |
