diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
commit | de49812990871e1705b64051c35161d5e6400269 (patch) | |
tree | 5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /dev-python/filelock | |
parent | 536c3711867ec947c1738f2c4b96f22e4863322d (diff) |
gentoo resync : 24.12.2018
Diffstat (limited to 'dev-python/filelock')
-rw-r--r-- | dev-python/filelock/Manifest | 3 | ||||
-rw-r--r-- | dev-python/filelock/filelock-3.0.10.ebuild | 34 | ||||
-rw-r--r-- | dev-python/filelock/metadata.xml | 11 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/filelock/Manifest b/dev-python/filelock/Manifest new file mode 100644 index 000000000000..26b6734d414c --- /dev/null +++ b/dev-python/filelock/Manifest @@ -0,0 +1,3 @@ +DIST py-filelock-3.0.10.tar.gz 587469 BLAKE2B 8a116f038f344f282540243a757524bd2e72ab8419a0cbdc35910245b8794cab0f96f93d7d8e3b267018054aa1459892506edc9cbfe1099d141a44be9eaa937a SHA512 1fa4594eaba6689ea61149a60a71e86007297614a1c22dc6c94b4774520d396ff8ad03076dfdbb2ce49d2b6e42c374af065a115c167d81cf6107918abfbe52ef +EBUILD filelock-3.0.10.ebuild 953 BLAKE2B b5e6770ee192151f14c0ff3f00c72a67743f6d160898fcc605ff10581973eb538707682ce9e208d9519b6b9666005eeaf75dc6f87ef5c9fa44a37b69e928c258 SHA512 9db2862746aa9ec1c4422a03c746c2738620dfdd0525364a75061a59ca8e0d282b89242b919cff1bbadbee1295f733a2242ce8b4d52c3ea8154834cf9b21f43c +MISC metadata.xml 356 BLAKE2B 795142cf645edcb80e9a087e62fadbab50c5db359946ec290dc0c0b1c4ae12a666a0dbba4b2212a27310339c783f0c13e0a28a42df45a4cc9e781674d9514fc2 SHA512 3617ad60e67b84ce0d36bb1caef8a6b1dfac31d487ead4887b70f575726974b27d73208cc8ca0039a2334c6deb6609cf8ed85c8404c6b3a4efe0ad7bbc69507a diff --git a/dev-python/filelock/filelock-3.0.10.ebuild b/dev-python/filelock/filelock-3.0.10.ebuild new file mode 100644 index 000000000000..04e239ae7c4e --- /dev/null +++ b/dev-python/filelock/filelock-3.0.10.ebuild @@ -0,0 +1,34 @@ +# Copyright 2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} ) +inherit distutils-r1 + +MY_P=py-filelock-${PV} +DESCRIPTION="A platform independent file lock for Python" +HOMEPAGE="https://github.com/benediktschmitt/py-filelock + https://pypi.org/project/filelock/" +SRC_URI="https://github.com/benediktschmitt/py-filelock/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # test_del is relying on CPython behavior, so it breaks PyPy + # (and it's not very valuable anyway) + sed -i -e '/test_del/i\ \ \ \ @unittest.skipIf(hasattr(sys, "pypy_version_info"), "del() does not trigger GC on PyPy")' test.py || die + + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" test.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/filelock/metadata.xml b/dev-python/filelock/metadata.xml new file mode 100644 index 000000000000..8684444c6ace --- /dev/null +++ b/dev-python/filelock/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="pypi">filelock</remote-id> + <remote-id type="github">benediktschmitt/py-filelock</remote-id> + </upstream> +</pkgmetadata> |