1 |
commit: 10218220989ef455095929c5d1fdfdc74dcc5f34 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 23 03:33:05 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 23 03:33:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=10218220 |
7 |
|
8 |
dev-python/atomiclong: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/atomiclong/Manifest | 1 + |
14 |
dev-python/atomiclong/atomiclong-0.1.1.ebuild | 30 +++++++++++++++++++++++++ |
15 |
dev-python/atomiclong/atomiclong-9999.ebuild | 32 +++++++++++++++++++++++++++ |
16 |
dev-python/atomiclong/metadata.xml | 21 ++++++++++++++++++ |
17 |
4 files changed, 84 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/atomiclong/Manifest b/dev-python/atomiclong/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..bfc8fec |
22 |
--- /dev/null |
23 |
+++ b/dev-python/atomiclong/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST atomiclong-0.1.1.tar.gz 5057 BLAKE2B 2583674eafd2e89c91629db69e6c118d22ae169df4131e3d63a584ed9857df47bb85c0764cd60b7df35eb8db5b4aedfe043bfcfb960909e2abcb97a27ba7567d SHA512 c275cff805df2275b6d9cfabed072c296019f1e7f6e2d718e0cec60ca40a99c6e8043a17a82f752096a1764cbc63e5681739da921ce1c89dfa8e5a6349e1772a |
26 |
|
27 |
diff --git a/dev-python/atomiclong/atomiclong-0.1.1.ebuild b/dev-python/atomiclong/atomiclong-0.1.1.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..7b15a08 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/atomiclong/atomiclong-0.1.1.ebuild |
32 |
@@ -0,0 +1,30 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+PYTHON_COMPAT=( python3_{6,7} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+SRC_URI="https://files.pythonhosted.org/packages/86/8c/70aea8215c6ab990f2d91e7ec171787a41b7fbc83df32a067ba5d7f3324f/${P}.tar.gz" |
42 |
+ |
43 |
+DESCRIPTION="An AtomicLong type using CFFI." |
44 |
+HOMEPAGE="https://github.com/dreid/atomiclong" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" |
53 |
+ |
54 |
+DEPEND="${RDEPEND} |
55 |
+ test? ( |
56 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
57 |
+ ) |
58 |
+" |
59 |
+ |
60 |
+python_test() { |
61 |
+ pytest -vv || die |
62 |
+} |
63 |
|
64 |
diff --git a/dev-python/atomiclong/atomiclong-9999.ebuild b/dev-python/atomiclong/atomiclong-9999.ebuild |
65 |
new file mode 100644 |
66 |
index 0000000..788043a |
67 |
--- /dev/null |
68 |
+++ b/dev-python/atomiclong/atomiclong-9999.ebuild |
69 |
@@ -0,0 +1,32 @@ |
70 |
+# Copyright 1999-2020 Gentoo Authors |
71 |
+# Distributed under the terms of the GNU General Public License v2 |
72 |
+ |
73 |
+EAPI="7" |
74 |
+PYTHON_COMPAT=( python3_{6,7} ) |
75 |
+ |
76 |
+inherit distutils-r1 |
77 |
+ |
78 |
+SRC_URI="" |
79 |
+EGIT_REPO_URI="https://github.com/dreid/${PN}.git" |
80 |
+inherit git-r3 |
81 |
+ |
82 |
+DESCRIPTION="An AtomicLong type using CFFI." |
83 |
+HOMEPAGE="https://github.com/dreid/atomiclong" |
84 |
+ |
85 |
+LICENSE="MIT" |
86 |
+SLOT="0" |
87 |
+KEYWORDS="" |
88 |
+IUSE="test" |
89 |
+RESTRICT="!test? ( test )" |
90 |
+ |
91 |
+RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" |
92 |
+ |
93 |
+DEPEND="${RDEPEND} |
94 |
+ test? ( |
95 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
96 |
+ ) |
97 |
+" |
98 |
+ |
99 |
+python_test() { |
100 |
+ pytest -vv || die |
101 |
+} |
102 |
|
103 |
diff --git a/dev-python/atomiclong/metadata.xml b/dev-python/atomiclong/metadata.xml |
104 |
new file mode 100644 |
105 |
index 0000000..2607e3e |
106 |
--- /dev/null |
107 |
+++ b/dev-python/atomiclong/metadata.xml |
108 |
@@ -0,0 +1,21 @@ |
109 |
+<?xml version="1.0" encoding="UTF-8"?> |
110 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
111 |
+<pkgmetadata> |
112 |
+ <maintainer type="person"> |
113 |
+ <email>lssndrbarbieri@×××××.com</email> |
114 |
+ <name>Alessandro Barbieri</name> |
115 |
+ </maintainer> |
116 |
+ <maintainer type="project"> |
117 |
+ <email>proxy-maint@g.o</email> |
118 |
+ <name>Proxy Maintainers</name> |
119 |
+ </maintainer> |
120 |
+ <upstream> |
121 |
+ <remote-id type="github">dreid/atomiclong</remote-id> |
122 |
+ </upstream> |
123 |
+ <longdescription lang="en"> |
124 |
+Sometimes you need to increment some numbers ... atomically ... in python. |
125 |
+AtomicLong was born out of the need for fast thread-safe counters in python. |
126 |
+It uses CFFI to bind GCC's Atomic Builtins. |
127 |
+Its value is a C long which can be incremented, decremented, and set atomically. It is inspired by Java's java.util.concurrent.atomic.AtomicLong. |
128 |
+ </longdescription> |
129 |
+</pkgmetadata> |