diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/guppy | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/guppy')
-rw-r--r-- | dev-python/guppy/Manifest | 4 | ||||
-rw-r--r-- | dev-python/guppy/files/guppy-0.1.9-rm_BrokenTests.patch | 57 | ||||
-rw-r--r-- | dev-python/guppy/guppy-0.1.10-r1.ebuild | 48 | ||||
-rw-r--r-- | dev-python/guppy/metadata.xml | 17 |
4 files changed, 126 insertions, 0 deletions
diff --git a/dev-python/guppy/Manifest b/dev-python/guppy/Manifest new file mode 100644 index 000000000000..f8aeb4e69529 --- /dev/null +++ b/dev-python/guppy/Manifest @@ -0,0 +1,4 @@ +AUX guppy-0.1.9-rm_BrokenTests.patch 1643 BLAKE2B 4f40742c9cbb8238cebe96838bc8d37f5f378803d25222c1b2695e0897e0f7d03e1305610e4356448070aa8e5dbf1dfce3c91939406977d0904c7436417c40a4 SHA512 ad6f5b126c84062a5d29a45f23fdf5d91c63a305bb26d7ef1ac1e5034505c79498c7da393b17a04118762261c0cd74f4360e18b49cf292805896dd1f9294097d +DIST guppy-0.1.10.tar.gz 484906 BLAKE2B 6408396cdc03b8f7106a5f34d8e3792760989108fdba9b58084028eabfca8db80363d315a451cbeaf56dd962d67ef46854feb8d95ddb8b5cbbfa701bfd44eaf3 SHA512 ea48fd19d7fe9a24832364599b8843304e95ccd1ccf3a9a475456ba25af2a4be94991dcb61deb854b740c2358d280579e756177236b3c73cb0de100bdf0286ce +EBUILD guppy-0.1.10-r1.ebuild 1276 BLAKE2B 2634520d7f4a5cb9f2212eb9357054456fade788650dfd42266f2075649d94476e5de005423cfddfb96f99188bcf329e5eed99e75ebe9e954c7fdc363c4f185c SHA512 9e6f6d2ae52f0d03cfb54865584de3541373a3e76cd59a74b28c92bd6572375252fb59e12b994a761c54ae8a9241d0db00d9839f87f66d7adaad2c871310f506 +MISC metadata.xml 691 BLAKE2B c29bab3bd28127fe80120ce3eb878f9ccdc3ba4028263989e9a15d4394d2e7ca74985e05a8b748bc0e03af8ec9740cd8a0b7a5dec967eb7407437daeaa607a14 SHA512 df184d2e1d689a4017ce29f754d7cf85ebf3adc05e7b441790c1e7dfefcd42ddf247bb754298e2302bb6d34dedbb53bafb0d7542d600a4377d71870a0d002ab0 diff --git a/dev-python/guppy/files/guppy-0.1.9-rm_BrokenTests.patch b/dev-python/guppy/files/guppy-0.1.9-rm_BrokenTests.patch new file mode 100644 index 000000000000..fabbe4cda512 --- /dev/null +++ b/dev-python/guppy/files/guppy-0.1.9-rm_BrokenTests.patch @@ -0,0 +1,57 @@ +diff -ur guppy-0.1.9.orig/guppy/sets/test.py guppy-0.1.9/guppy/sets/test.py +--- guppy/sets/test.py 2009-06-23 21:48:32.000000000 +0800 ++++ guppy/sets/test.py 2012-11-07 16:59:38.383392670 +0800 +@@ -4,6 +4,11 @@ + # so wouldn't check so much with python -O. + + import gc, random, sys ++if sys.version_info[:2] == (2, 7): ++ import unittest ++else: ++ import unittest2 as unittest ++ + try: + import numpy.random + except ImportError: +@@ -211,6 +211,7 @@ + + '.nython off' + ++@unittest.skip("Class broken") + class Test: + faster = 1 # Set to 1 if test should be faster (less exhaustive) than normally + +diff -ur guppy-0.1.9.orig/guppy/heapy/test/test_View.py guppy-0.1.9/guppy/heapy/test/test_View.py +--- guppy/heapy/test/test_View.py 2009-06-12 18:20:53.000000000 +0800 ++++ guppy/heapy/test/test_View.py 2012-11-07 17:23:52.289280501 +0800 +@@ -1,4 +1,11 @@ + from guppy.heapy.test import support ++import sys ++ ++if sys.version_info[:2] == (2, 7): ++ import unittest ++else: ++ import unittest2 as unittest ++ + class TestCase(support.TestCase): + def setUp(self): + support.TestCase.setUp(self) +@@ -55,6 +55,7 @@ + p = iso(z).referents.indisize + self.aseq(p, iso(y).indisize) + ++ @unittest.skip("broken test") + def test_horizon(self): + iso = self.iso + h = self.View.horizon() +diff -ur guppy-0.1.9.orig/guppy/heapy/test/test_all.py guppy-0.1.9/guppy/heapy/test/test_all.py +--- guppy/heapy/test/test_all.py 2009-06-18 21:44:11.000000000 +0800 ++++ guppy/heapy/test/test_all.py 2012-11-07 17:34:04.036233306 +0800 +@@ -1,7 +1,6 @@ + import sys + + autotests = ( +- 'dependencies', + 'Classifiers', + 'heapyc', + 'ER', diff --git a/dev-python/guppy/guppy-0.1.10-r1.ebuild b/dev-python/guppy/guppy-0.1.10-r1.ebuild new file mode 100644 index 000000000000..f4cbb03c3eeb --- /dev/null +++ b/dev-python/guppy/guppy-0.1.10-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Guppy-PE -- A Python Programming Environment" +HOMEPAGE="http://guppy-pe.sourceforge.net/ https://pypi.org/project/guppy/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="" +RDEPEND="" + +PATCHES=( "${FILESDIR}"/${PN}-0.1.9-rm_BrokenTests.patch ) + +python_prepare_all() { + sed -e 's:_PyLong_AsScaledDouble:_PyLong_Frexp:' -i src/sets/bitset.c || die + distutils-r1_python_prepare_all +} + +python_compile() { + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + "${PYTHON}" setup.py build install --home="${T}/test-${EPYTHON}" \ + || die "Installation of tests failed" + pushd "${T}/test-${EPYTHON}/lib/python" > /dev/null + "${PYTHON}" guppy/heapy/test/test_all.py || die "tests failed" + popd > /dev/null +} + +python_install_all() { + # leave the html docs for install as the setup.py dictates but rm if set by IUSE doc + if use doc; then + local HTML_DOCS=( guppy/doc/. ) + find "${D}$(python_get_sitedir)" -name doc | xargs rm -rf + fi + distutils-r1_python_install_all +} diff --git a/dev-python/guppy/metadata.xml b/dev-python/guppy/metadata.xml new file mode 100644 index 000000000000..041d6c710310 --- /dev/null +++ b/dev-python/guppy/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en">Guppy-PE is a programming environment providing object and heap memory + sizing, profiling and analysis. It includes a prototypical + specification language that can be used to formally specify aspects of + Python programs and generate tests and documentation from a common + source.</longdescription> + <upstream> + <remote-id type="pypi">guppy</remote-id> + <remote-id type="sourceforge">guppy-pe</remote-id> + </upstream> +</pkgmetadata> |