1 |
commit: 6bd2a4d9ba6b29eefe87203ea6961e42942146fa |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 07:35:10 2016 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 07:35:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bd2a4d9 |
7 |
|
8 |
dev-python/pyrqlite: new package |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-python/pyrqlite/Manifest | 1 + |
13 |
dev-python/pyrqlite/metadata.xml | 10 ++++++++ |
14 |
dev-python/pyrqlite/pyrqlite-2.0.ebuild | 39 ++++++++++++++++++++++++++++++++ |
15 |
dev-python/pyrqlite/pyrqlite-9999.ebuild | 38 +++++++++++++++++++++++++++++++ |
16 |
4 files changed, 88 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pyrqlite/Manifest b/dev-python/pyrqlite/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..a39876d |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pyrqlite/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pyrqlite-2.0.tar.gz 7224 SHA256 7d924a66e05087f5a0d768c8727d271ab0005d7f312036000ffdf11378d5fd32 SHA512 9d284161e492683955000dd3e3f0593b79e69ba5eb087bee4d3ffc1e4be9de1c362212936b10e1781538eacd838e6ed22adfc82e8cc0dd00e1d3318a4dc14720 WHIRLPOOL 1ef58c2abda36758cf4379bbf8064068004a5907af373303877a84181db681e74ec3dd3c8726e21d261e9e0095219393d493353c5bd574cc4a1a24d923e9c7e4 |
25 |
|
26 |
diff --git a/dev-python/pyrqlite/metadata.xml b/dev-python/pyrqlite/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..7a0a25f |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pyrqlite/metadata.xml |
31 |
@@ -0,0 +1,10 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>zmedico@g.o</email> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <remote-id type="github">rqlite/pyrqlite</remote-id> |
40 |
+ </upstream> |
41 |
+</pkgmetadata> |
42 |
|
43 |
diff --git a/dev-python/pyrqlite/pyrqlite-2.0.ebuild b/dev-python/pyrqlite/pyrqlite-2.0.ebuild |
44 |
new file mode 100644 |
45 |
index 0000000..3f58fe1 |
46 |
--- /dev/null |
47 |
+++ b/dev-python/pyrqlite/pyrqlite-2.0.ebuild |
48 |
@@ -0,0 +1,39 @@ |
49 |
+# Copyright 1999-2016 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+# $Id$ |
52 |
+ |
53 |
+EAPI=6 |
54 |
+PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
55 |
+ |
56 |
+inherit distutils-r1 |
57 |
+ |
58 |
+if [[ ${PV} == *9999* ]]; then |
59 |
+ inherit git-r3 |
60 |
+fi |
61 |
+ |
62 |
+DESCRIPTION="Python client for rqlite" |
63 |
+EGIT_REPO_URI="https://github.com/rqlite/pyrqlite.git" |
64 |
+HOMEPAGE="${EGIT_REPO_URI%.git}/" |
65 |
+SRC_URI="${EGIT_REPO_URI%.git}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="MIT" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+IUSE="test" |
71 |
+ |
72 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
73 |
+ test? ( |
74 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
75 |
+ dev-python/pytest-cov[${PYTHON_USEDEP}] |
76 |
+ dev-python/pylint[${PYTHON_USEDEP}] |
77 |
+ )" |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ sed -e "s:^__version__ = .*:__version__ = '${PV}':" -i src/${PN}/constants.py || die |
81 |
+ distutils-r1_src_prepare |
82 |
+} |
83 |
+ |
84 |
+python_test() { |
85 |
+ esetup.py test || die "tests failed" |
86 |
+ esetup.py lint -f text -E || die "pylint failed" |
87 |
+} |
88 |
|
89 |
diff --git a/dev-python/pyrqlite/pyrqlite-9999.ebuild b/dev-python/pyrqlite/pyrqlite-9999.ebuild |
90 |
new file mode 100644 |
91 |
index 0000000..cef3352 |
92 |
--- /dev/null |
93 |
+++ b/dev-python/pyrqlite/pyrqlite-9999.ebuild |
94 |
@@ -0,0 +1,38 @@ |
95 |
+# Copyright 1999-2016 Gentoo Foundation |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+# $Id$ |
98 |
+ |
99 |
+EAPI=6 |
100 |
+PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
101 |
+ |
102 |
+inherit distutils-r1 |
103 |
+ |
104 |
+if [[ ${PV} == *9999* ]]; then |
105 |
+ inherit git-r3 |
106 |
+fi |
107 |
+ |
108 |
+DESCRIPTION="Python client for rqlite" |
109 |
+EGIT_REPO_URI="https://github.com/rqlite/pyrqlite.git" |
110 |
+HOMEPAGE="${EGIT_REPO_URI%.git}/" |
111 |
+ |
112 |
+LICENSE="MIT" |
113 |
+SLOT="0" |
114 |
+KEYWORDS="" |
115 |
+IUSE="test" |
116 |
+ |
117 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
118 |
+ test? ( |
119 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
120 |
+ dev-python/pytest-cov[${PYTHON_USEDEP}] |
121 |
+ dev-python/pylint[${PYTHON_USEDEP}] |
122 |
+ )" |
123 |
+ |
124 |
+src_prepare() { |
125 |
+ sed -e "s:^__version__ = .*:__version__ = '${PV}':" -i src/${PN}/constants.py || die |
126 |
+ distutils-r1_src_prepare |
127 |
+} |
128 |
+ |
129 |
+python_test() { |
130 |
+ esetup.py test || die "tests failed" |
131 |
+ esetup.py lint -f text -E || die "pylint failed" |
132 |
+} |