1 |
commit: 9499297a9acc05e6a3375a44ca052fb457598dab |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 4 22:07:05 2018 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 5 13:30:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9499297a |
7 |
|
8 |
dev-python/secretstorage: bump to 3.1.0, drop Py2, add Py3.7, doc |
9 |
|
10 |
Upstream no longer supports Python 2 and dev-python/jeepney requires at |
11 |
least Python 3.5. |
12 |
|
13 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
14 |
|
15 |
dev-python/secretstorage/Manifest | 1 + |
16 |
.../secretstorage/secretstorage-3.1.0.ebuild | 47 ++++++++++++++++++++++ |
17 |
2 files changed, 48 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/secretstorage/Manifest b/dev-python/secretstorage/Manifest |
20 |
index c9b5e5e896b..dc1d6847277 100644 |
21 |
--- a/dev-python/secretstorage/Manifest |
22 |
+++ b/dev-python/secretstorage/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST SecretStorage-2.3.1.tar.gz 16073 BLAKE2B e4769e748ee39596c51012a6ac626dba2b019238a8237678c47d713c2af4b0e88b50d0068b5dbf3a405b9f7b14a7df64aabf751009dd21ab25de65ead2a79c38 SHA512 69a2c86a1abd904b7d71bbb59cead3b2588cf88d7f35cbaf64d18ff9aa9ed62ba9f79d0bebd10136aa8a0edb1ff8a1d1aff70cf8e519dc74303993ef0d564047 |
25 |
+DIST SecretStorage-3.1.0.tar.gz 17767 BLAKE2B e234a7f34b5ca2debfd04d4f3b4b4e2a1625aa346133e464bbc1f094381445e3d0c5460457c687f55f6682c6b6085a757edb23a6029fe5c2abf139278203f326 SHA512 a044009480b359aecb0c8782f04e4d02c3c1c0e682f72733896c98f386562c43766318963452d60028d0a92d02903130278cf26a5c206f5f0909e106bdb2d133 |
26 |
|
27 |
diff --git a/dev-python/secretstorage/secretstorage-3.1.0.ebuild b/dev-python/secretstorage/secretstorage-3.1.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7ab36cf655c |
30 |
--- /dev/null |
31 |
+++ b/dev-python/secretstorage/secretstorage-3.1.0.ebuild |
32 |
@@ -0,0 +1,47 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+MY_PN="SecretStorage" |
43 |
+ |
44 |
+DESCRIPTION="Python bindings to FreeDesktop.org Secret Service API." |
45 |
+HOMEPAGE="https://github.com/mitya57/secretstorage https://pypi.org/project/SecretStorage/" |
46 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="doc test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
55 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
56 |
+ dev-python/jeepney[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+BDEPEND=" |
59 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
60 |
+ doc? ( |
61 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
62 |
+ dev-python/alabaster[${PYTHON_USEDEP}] |
63 |
+ ) |
64 |
+ test? ( ${RDEPEND} ) |
65 |
+" |
66 |
+ |
67 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
68 |
+ |
69 |
+python_compile_all() { |
70 |
+ if use doc; then |
71 |
+ sphinx-build docs docs/_build/html || die |
72 |
+ HTML_DOCS=( docs/_build/html/. ) |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+python_test() { |
77 |
+ dbus-run-session "${EPYTHON}" -m unittest discover -v -s tests \ |
78 |
+ || die "tests failed with ${EPYTHON}" |
79 |
+} |