mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/pyavm: version bump
Package-Manager: portage-2.2.27
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST PyAVM-0.9.1.tar.gz 99461 SHA256 5b44dc29ee595849aed94af2db4fe670851a793713b1a3063bca2dee85aa415a SHA512 e3433a44d39cd54e20abd377c5722e7157e948cfde9176cabbe5f2a63999927ef2d9e94f1eb33da6276d6fac462fad8caa5991299483ae484aa15d9b96d9dc08 WHIRLPOOL 3b47b28685f2ffa48944bd87552a3f74282daa91444eb6a0eafb245df6292ec0f51365d76da7cde33b0d304e24ff52bd2439b1a2c150925ca6715c5f4b4af2d2
|
||||
DIST PyAVM-0.9.2.tar.gz 101071 SHA256 4bfc4bcb820d239b09d1f9c5a4cd1a3e0fc63af71d96f884a020cb7cc0c800fa SHA512 5e724d023ddd74ce64c3846fdb2e6310cbf8e2b9670e2bc28dd1b7978eae76f43f48a223d8e69f805aded41c569657c874d999bcb8198e0b8de7f02dbb51e7c1 WHIRLPOOL d7bc41a4cde21651ad2e278d10825c5b568d184be394f31066369a43970e9828d751272dcfc56ca6d42a9ed9be54f57502d2f27308203c52ff9de6ef65c4ab7c
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Description: Exception: fromstring() has been removed. Now frombytes() is called instead.
|
||||
Author: Josue Ortega <josueortega@debian.org.gt>
|
||||
Last-Update: 2015-12-20
|
||||
|
||||
--- a/pyavm/tests/test_main.py
|
||||
+++ b/pyavm/tests/test_main.py
|
||||
@@ -46,7 +46,7 @@
|
||||
@pytest.mark.parametrize('filename', XML_FILES_WCS)
|
||||
def test_to_wcs_target_image(filename, tmpdir):
|
||||
from PIL import Image
|
||||
- image = Image.fromstring(data=b"1111", size=(2,2), mode="L")
|
||||
+ image = Image.frombytes(data=b"1111", size=(2,2), mode="L")
|
||||
image_file = tmpdir.join('test.png').strpath
|
||||
image.save(image_file)
|
||||
image.close()
|
||||
38
dev-python/pyavm/pyavm-0.9.2.ebuild
Normal file
38
dev-python/pyavm/pyavm-0.9.2.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MYPN=PyAVM
|
||||
MYP=${MYPN}-${PV}
|
||||
|
||||
DESCRIPTION="Python module for Astronomy Visualization Metadata i/o"
|
||||
HOMEPAGE="http://astrofrog.github.io/pyavm/"
|
||||
SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/astropy-0.2[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
>=dev-python/astropy-0.2[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-deprecated-fromstring.patch" )
|
||||
|
||||
python_test() {
|
||||
py.test || die "tests for ${EPYTHON} failed"
|
||||
}
|
||||
Reference in New Issue
Block a user