1 |
commit: 97a7d5947ddd4e5eff5d38b60c61f3153efbd2c7 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 18 22:58:18 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 18 22:58:18 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a7d594 |
7 |
|
8 |
dev-python/pyavm: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
dev-python/pyavm/Manifest | 1 + |
13 |
.../files/pyavm-0.9.2-deprecated-fromstring.patch | 15 +++++++++ |
14 |
dev-python/pyavm/pyavm-0.9.2.ebuild | 38 ++++++++++++++++++++++ |
15 |
3 files changed, 54 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pyavm/Manifest b/dev-python/pyavm/Manifest |
18 |
index 792d025..c64932e 100644 |
19 |
--- a/dev-python/pyavm/Manifest |
20 |
+++ b/dev-python/pyavm/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST PyAVM-0.9.1.tar.gz 99461 SHA256 5b44dc29ee595849aed94af2db4fe670851a793713b1a3063bca2dee85aa415a SHA512 e3433a44d39cd54e20abd377c5722e7157e948cfde9176cabbe5f2a63999927ef2d9e94f1eb33da6276d6fac462fad8caa5991299483ae484aa15d9b96d9dc08 WHIRLPOOL 3b47b28685f2ffa48944bd87552a3f74282daa91444eb6a0eafb245df6292ec0f51365d76da7cde33b0d304e24ff52bd2439b1a2c150925ca6715c5f4b4af2d2 |
23 |
+DIST PyAVM-0.9.2.tar.gz 101071 SHA256 4bfc4bcb820d239b09d1f9c5a4cd1a3e0fc63af71d96f884a020cb7cc0c800fa SHA512 5e724d023ddd74ce64c3846fdb2e6310cbf8e2b9670e2bc28dd1b7978eae76f43f48a223d8e69f805aded41c569657c874d999bcb8198e0b8de7f02dbb51e7c1 WHIRLPOOL d7bc41a4cde21651ad2e278d10825c5b568d184be394f31066369a43970e9828d751272dcfc56ca6d42a9ed9be54f57502d2f27308203c52ff9de6ef65c4ab7c |
24 |
|
25 |
diff --git a/dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch b/dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch |
26 |
new file mode 100644 |
27 |
index 0000000..0e16177 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch |
30 |
@@ -0,0 +1,15 @@ |
31 |
+Description: Exception: fromstring() has been removed. Now frombytes() is called instead. |
32 |
+Author: Josue Ortega <josueortega@××××××××××.gt> |
33 |
+Last-Update: 2015-12-20 |
34 |
+ |
35 |
+--- a/pyavm/tests/test_main.py |
36 |
++++ b/pyavm/tests/test_main.py |
37 |
+@@ -46,7 +46,7 @@ |
38 |
+ @pytest.mark.parametrize('filename', XML_FILES_WCS) |
39 |
+ def test_to_wcs_target_image(filename, tmpdir): |
40 |
+ from PIL import Image |
41 |
+- image = Image.fromstring(data=b"1111", size=(2,2), mode="L") |
42 |
++ image = Image.frombytes(data=b"1111", size=(2,2), mode="L") |
43 |
+ image_file = tmpdir.join('test.png').strpath |
44 |
+ image.save(image_file) |
45 |
+ image.close() |
46 |
|
47 |
diff --git a/dev-python/pyavm/pyavm-0.9.2.ebuild b/dev-python/pyavm/pyavm-0.9.2.ebuild |
48 |
new file mode 100644 |
49 |
index 0000000..1b1c915 |
50 |
--- /dev/null |
51 |
+++ b/dev-python/pyavm/pyavm-0.9.2.ebuild |
52 |
@@ -0,0 +1,38 @@ |
53 |
+# Copyright 1999-2016 Gentoo Foundation |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+# $Id$ |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
60 |
+ |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+MYPN=PyAVM |
64 |
+MYP=${MYPN}-${PV} |
65 |
+ |
66 |
+DESCRIPTION="Python module for Astronomy Visualization Metadata i/o" |
67 |
+HOMEPAGE="http://astrofrog.github.io/pyavm/" |
68 |
+SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" |
69 |
+ |
70 |
+LICENSE="MIT" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
73 |
+IUSE="test" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ >=dev-python/astropy-0.2[${PYTHON_USEDEP}]" |
77 |
+ |
78 |
+DEPEND=" |
79 |
+ test? ( |
80 |
+ >=dev-python/astropy-0.2[${PYTHON_USEDEP}] |
81 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
82 |
+ )" |
83 |
+ |
84 |
+S="${WORKDIR}/${MYP}" |
85 |
+ |
86 |
+PATCHES=( "${FILESDIR}/${P}-deprecated-fromstring.patch" ) |
87 |
+ |
88 |
+python_test() { |
89 |
+ py.test || die "tests for ${EPYTHON} failed" |
90 |
+} |