mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/filelock: New package, dep of dev-python/tox
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
34
dev-python/filelock/filelock-3.0.10.ebuild
Normal file
34
dev-python/filelock/filelock-3.0.10.ebuild
Normal file
@@ -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}"
|
||||
}
|
||||
11
dev-python/filelock/metadata.xml
Normal file
11
dev-python/filelock/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user