Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pushbullet-py/, dev-python/pushbullet-py/files/
Date: Sun, 29 Dec 2019 13:06:44
Message-Id: 1577624774.f86e19d231bbf7e41dc2a6c919e688fb46058560.soap@gentoo
1 commit: f86e19d231bbf7e41dc2a6c919e688fb46058560
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 13:06:14 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 13:06:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f86e19d2
7
8 dev-python/pushbullet-py: Remove old
9
10 Package-Manager: Portage-2.3.83, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 dev-python/pushbullet-py/Manifest | 1 -
14 ...ushbullet-py-0.10.0-fix-filetypes-python3.patch | 28 -----------
15 .../pushbullet-py/pushbullet-py-0.10.0.ebuild | 54 ----------------------
16 3 files changed, 83 deletions(-)
17
18 diff --git a/dev-python/pushbullet-py/Manifest b/dev-python/pushbullet-py/Manifest
19 index 4d6b812f9d3..23ad44b78bd 100644
20 --- a/dev-python/pushbullet-py/Manifest
21 +++ b/dev-python/pushbullet-py/Manifest
22 @@ -1,2 +1 @@
23 -DIST pushbullet-py-0.10.0.tar.gz 18929 BLAKE2B 900e42ce407a0baff0b24cbe6e04a3c10e1aeb9f7dbfc917cd58b2c35a2f42f81c0aa935fecdbd50d087a45d309b9baad1e3e5235568461b3e54c12874a2ac93 SHA512 2e259b76413c5e644350a891678eb98f761e56b18f5a06a9d7cc34353c7c7ee67fa875aed575b1b005782b21f4440d682db5c09be7033d52b7b9cf41e9120123
24 DIST pushbullet.py-0.11.0.tar.gz 21653 BLAKE2B a6c9b6f4958ce35b63ea4043d1d4f8691885bd0aa2927af541f2080a0b0b65a7df979a497967f3adceab8ad2382448a4c6a02d1184c9d72a18d91844eb970722 SHA512 b236f30b99e5bb79eff183529716c1c8f83cfd2526fdf50d86041eb6d3fcd6670d0c4dce407ae6e50aea0fa96d6a5527af980148f0c71ef758c480f972ad9659
25
26 diff --git a/dev-python/pushbullet-py/files/pushbullet-py-0.10.0-fix-filetypes-python3.patch b/dev-python/pushbullet-py/files/pushbullet-py-0.10.0-fix-filetypes-python3.patch
27 deleted file mode 100644
28 index 09ded354048..00000000000
29 --- a/dev-python/pushbullet-py/files/pushbullet-py-0.10.0-fix-filetypes-python3.patch
30 +++ /dev/null
31 @@ -1,28 +0,0 @@
32 -diff --git a/pushbullet/filetype.py b/pushbullet/filetype.py
33 -index a2f2be0..22ffedf 100644
34 ---- a/pushbullet/filetype.py
35 -+++ b/pushbullet/filetype.py
36 -@@ -1,13 +1,22 @@
37 - def _magic_get_file_type(f, _):
38 - file_type = magic.from_buffer(f.read(1024), mime=True)
39 - f.seek(0)
40 -- return file_type.decode('utf-8')
41 -+ return maybe_decode(file_type)
42 -
43 -
44 - def _guess_file_type(_, filename):
45 - return mimetypes.guess_type(filename)[0]
46 -
47 -
48 -+# return str on python3. Don't want to unconditionally
49 -+# decode because that results in unicode on python2
50 -+def maybe_decode(s):
51 -+ if str == bytes:
52 -+ return s.decode('utf-8')
53 -+ else:
54 -+ return s
55 -+
56 -+
57 - try:
58 - import magic
59 - except ImportError:
60
61 diff --git a/dev-python/pushbullet-py/pushbullet-py-0.10.0.ebuild b/dev-python/pushbullet-py/pushbullet-py-0.10.0.ebuild
62 deleted file mode 100644
63 index aa276aa6ff0..00000000000
64 --- a/dev-python/pushbullet-py/pushbullet-py-0.10.0.ebuild
65 +++ /dev/null
66 @@ -1,54 +0,0 @@
67 -# Copyright 1999-2019 Gentoo Authors
68 -# Distributed under the terms of the GNU General Public License v2
69 -
70 -EAPI=6
71 -PYTHON_COMPAT=( python3_5 )
72 -
73 -inherit distutils-r1
74 -
75 -MY_PN=${PN/-/.}
76 -DESCRIPTION="A simple python client for pushbullet.com"
77 -HOMEPAGE="https://github.com/randomchars/pushbullet.py"
78 -# tests and examples are missing from PyPI tarballs
79 -# https://github.com/randomchars/pushbullet.py/pull/104
80 -SRC_URI="https://github.com/randomchars/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
81 -
82 -LICENSE="MIT"
83 -SLOT="0"
84 -KEYWORDS="~amd64 ~x86"
85 -IUSE="examples test"
86 -RESTRICT="!test? ( test )"
87 -
88 -RDEPEND="
89 - dev-python/python-magic[${PYTHON_USEDEP}]
90 - dev-python/requests[${PYTHON_USEDEP}]
91 - dev-python/websocket-client[${PYTHON_USEDEP}]
92 -"
93 -DEPEND="
94 - dev-python/setuptools[${PYTHON_USEDEP}]
95 - test? (
96 - ${RDEPEND}
97 - dev-python/pytest[${PYTHON_USEDEP}]
98 - dev-python/pytest-runner[${PYTHON_USEDEP}]
99 - )
100 -"
101 -
102 -S="${WORKDIR}/${MY_PN}-${PV}"
103 -
104 -# Backport from upstream git
105 -PATCHES=( "${FILESDIR}/${P}-fix-filetypes-python3.patch" )
106 -
107 -python_test() {
108 - # skip tests which require network access
109 - PUSHBULLET_API_KEY= py.test \
110 - -k "not test_auth" || die "Tests failed with ${EPYTHON}"
111 -}
112 -
113 -python_install_all() {
114 - if use examples; then
115 - docompress -x "/usr/share/doc/${PF}/examples"
116 - docinto examples
117 - dodoc -r example/.
118 - fi
119 - distutils-r1_python_install_all
120 -}