1 |
commit: 8227eaa7218ea5bc784ef5b38cf82e0bc6afe636 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 18 19:36:05 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 21:03:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8227eaa7 |
7 |
|
8 |
dev-python/filelock: New package, dep of dev-python/tox |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/filelock/filelock-3.0.10.ebuild | 34 ++++++++++++++++++++++++++++++ |
13 |
dev-python/filelock/metadata.xml | 11 ++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/filelock/filelock-3.0.10.ebuild b/dev-python/filelock/filelock-3.0.10.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..04e239ae7c4 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/filelock/filelock-3.0.10.ebuild |
21 |
@@ -0,0 +1,34 @@ |
22 |
+# Copyright 2018 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} ) |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+MY_P=py-filelock-${PV} |
31 |
+DESCRIPTION="A platform independent file lock for Python" |
32 |
+HOMEPAGE="https://github.com/benediktschmitt/py-filelock |
33 |
+ https://pypi.org/project/filelock/" |
34 |
+SRC_URI="https://github.com/benediktschmitt/py-filelock/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="Unlicense" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
42 |
+ |
43 |
+S=${WORKDIR}/${MY_P} |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ # test_del is relying on CPython behavior, so it breaks PyPy |
47 |
+ # (and it's not very valuable anyway) |
48 |
+ sed -i -e '/test_del/i\ \ \ \ @unittest.skipIf(hasattr(sys, "pypy_version_info"), "del() does not trigger GC on PyPy")' test.py || die |
49 |
+ |
50 |
+ distutils-r1_src_prepare |
51 |
+} |
52 |
+ |
53 |
+python_test() { |
54 |
+ "${EPYTHON}" test.py -v || die "Tests fail with ${EPYTHON}" |
55 |
+} |
56 |
|
57 |
diff --git a/dev-python/filelock/metadata.xml b/dev-python/filelock/metadata.xml |
58 |
new file mode 100644 |
59 |
index 00000000000..8684444c6ac |
60 |
--- /dev/null |
61 |
+++ b/dev-python/filelock/metadata.xml |
62 |
@@ -0,0 +1,11 @@ |
63 |
+<?xml version="1.0" encoding="UTF-8"?> |
64 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
65 |
+<pkgmetadata> |
66 |
+ <maintainer type="project"> |
67 |
+ <email>python@g.o</email> |
68 |
+ </maintainer> |
69 |
+ <upstream> |
70 |
+ <remote-id type="pypi">filelock</remote-id> |
71 |
+ <remote-id type="github">benediktschmitt/py-filelock</remote-id> |
72 |
+ </upstream> |
73 |
+</pkgmetadata> |