summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2014-06-30 08:19:20 +0000
committerIan Delaney <idella4@gentoo.org>2014-06-30 08:19:20 +0000
commit8a7fbbb367d7009edc1ef878b3b3b996e58d42d2 (patch)
treec3ffa38fbbf7f1fb666dc33860b3833fd9379888 /dev-python
parentAdd ~mips keyword (diff)
downloadhistorical-8a7fbbb367d7009edc1ef878b3b3b996e58d42d2.tar.gz
historical-8a7fbbb367d7009edc1ef878b3b3b996e58d42d2.tar.bz2
historical-8a7fbbb367d7009edc1ef878b3b3b996e58d42d2.zip
drop py2.6, update deps, docbuild (includes new patch), remove old ebuild and patch, fixes bug #515752 by Patrick
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/testfixtures/ChangeLog8
-rw-r--r--dev-python/testfixtures/Manifest14
-rw-r--r--dev-python/testfixtures/files/docbuild.patch25
-rw-r--r--dev-python/testfixtures/files/testfixtures-2.3.4-adjust_tests.patch130
-rw-r--r--dev-python/testfixtures/testfixtures-2.3.4.ebuild50
-rw-r--r--dev-python/testfixtures/testfixtures-3.0.0.ebuild24
6 files changed, 50 insertions, 201 deletions
diff --git a/dev-python/testfixtures/ChangeLog b/dev-python/testfixtures/ChangeLog
index 30a29e4a8465..8d804a35e224 100644
--- a/dev-python/testfixtures/ChangeLog
+++ b/dev-python/testfixtures/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/testfixtures
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/testfixtures/ChangeLog,v 1.7 2014/03/19 23:10:07 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/testfixtures/ChangeLog,v 1.8 2014/06/30 08:18:54 idella4 Exp $
+
+ 30 Jun 2014; Ian Delaney <idella4@gentoo.org> +files/docbuild.patch,
+ -files/testfixtures-2.3.4-adjust_tests.patch, -testfixtures-2.3.4.ebuild,
+ testfixtures-3.0.0.ebuild:
+ drop py2.6, update deps, docbuild (includes new patch), remove old ebuild and
+ patch, fixes bug #515752 by Patrick
19 Mar 2014; SĂ©bastien Fabbro <bicatali@gentoo.org> testfixtures-3.0.0.ebuild:
Keyword ~amd64-linux ~x86-linux
diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest
index 747718de4a96..484fa54edaa8 100644
--- a/dev-python/testfixtures/Manifest
+++ b/dev-python/testfixtures/Manifest
@@ -1,17 +1,15 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX testfixtures-2.3.4-adjust_tests.patch 4904 SHA256 6197835fb3c2089e0913d4029ed8ef07b7dbb24057dcfe152d3470379804a790 SHA512 1d0235caf7d78fbda22ffda5f98eff879d72624a97439a3deef2b483199d79e4020421f37d8cec3922c3d98c4eb5d8c7de3ac7ba298538725b78d148314904f7 WHIRLPOOL 787d48f31726f64e9e108e1044d7f35503547f94ffbba5e5e029470026f4244bcd4bcfbae0b3cbd9f98121a87438038e30a113865712129828e303efaee98c61
-DIST testfixtures-2.3.4.tar.gz 73214 SHA256 376530e6608f072f6655d6a6de495a717040d47db5b04f2afac95ea7041af851 SHA512 858ebe20c0a2d682c2652a14a3e2fceea2e148f1e50d658f20237f3b15a84cf67ad61ff1d6b4a4b6c0a27981b337cf634b6b33fa7f717b7b9a5ceb289b396e47 WHIRLPOOL 4e6d7a8fd1fbac9d2f1c6b769ee810619b8a1db2d24469e7ac14867f19e92b7d0bc9596c09df3c80888dbf71350ddd80134b28564985de144cb3cfab2572d934
+AUX docbuild.patch 835 SHA256 7cfa67ab2843e0adab1d326611f1ed798b0ed7fce9e89785a57ce0912e912b7d SHA512 f135f91501b7308c9e535ed2773a4acab5ae83d8c7f3a387395a6a120ad9c1b2bc132c5b30333824d082553faa7c1152818654d9e1d7cebd9d488f02f29a82cb WHIRLPOOL ff610fe06ce611eb6b6a2ba7babd1225119e1f82d07e3962eae0483f6c9357dea73446c2183d32911ac40979cffb8c4c630b94592d9599d09f8a83818b2797a0
DIST testfixtures-3.0.0.tar.gz 75303 SHA256 20e82e23ffc39bd7d55317f2e87e49aa33ac15142f2bd38fedde696ccaa9469f SHA512 9bc7e30cad6a0c932f23de49f9aff099cb4de824f20b4f98bf1fb4a7313d7ac8d763f7c8208bc0f5351dcd899daa3d2fbc18cdc2143c1b65cefbe0f3ba29df0c WHIRLPOOL 5d51daa288f0c31ce0547815b15f7242df4d3309f2c0845cfa36241ba6d16b151caa1924977a35ae9753c1243724d1aac74cda2b7f5e64e981c378fa6696a512
-EBUILD testfixtures-2.3.4.ebuild 1247 SHA256 1ff061f67e90b28f8517792837d3e79d02b3df9f417a113cab77929b9896aae9 SHA512 e533382664fe4d2d38882d806bffc5fcefbb21e9cf1f13f3c410600c4b51dcb14703b583ac939869d5ef7ae52f006cc34b1f09abb6082674821583d217c9af63 WHIRLPOOL 00e87250f52097ccbfd15035b0e7e52d0a6a8d405beb898dcab8a1cd8692150db1f654d7f0b5ef61a40ad28791fb05563f5f4118cdd7d3995cd7cb18461b27d6
-EBUILD testfixtures-3.0.0.ebuild 1159 SHA256 2a4b4d0bfec3b39dde66e3f5cb88e69bea6dcdd68718d4da7a54985c2a07bf39 SHA512 f0753b3c3827473aca52455ca49be233e824e70fe27a35921fcb6870d089dee0bd37357fa5b78a97221e3d7d434322efd78a49ed7945492bae9aeae9f57f2c1a WHIRLPOOL c97b7085da88343defaa33fc4829cd950119c62dc9d703da8c68a599e0c5bd3ddba9edfdf740805c2cfb55286df6c89444d5f2e968b95e95a93863ebb7b85516
-MISC ChangeLog 1277 SHA256 c516c148dc962dd1886c7865f307d944f84a5b2e3e7c0a8d59d09201d87f97ab SHA512 e260e6f5548277c3417e66130106d6114766a6fbdc924c7ec608e1ec2da03c317f9c7c33725c67909635642ed94563be000692d7937d3ae53e518e379ed98d3f WHIRLPOOL cc9df6d9b548fa535c674299822e25e602eceb1900c0acdc4757dc74378265fc4bc215485911ab675113dbf94f85d0b5d8290fa1ac1aa400f67cd7c567cf0238
+EBUILD testfixtures-3.0.0.ebuild 1308 SHA256 ae4bb8ecad7eb8d085f5e58dc110986368e136a57601e4a7d229962ce1b4430a SHA512 8b945089c488a2492e98aefce486e7772a7ee8ba3f0b2642c427d9bbfe513ea551e01887555a455313ae470bbb1ed1db446ec3cdeb75c45c180bc3bda022d6e8 WHIRLPOOL 3aab32d47c7152aeac7558e3c02fdb7934462806c68de99a79c88529e208f182d3fcb44ad3be4667339657091366789bec4446f42bc5c01060d52a1021800113
+MISC ChangeLog 1571 SHA256 cc4250e95ca24a2b14c7ae176dd3d1903480ce967d25add756554ddf1596064b SHA512 b386e6684bb3b6de1a81b16f7e22651dfd5c82e9409297ca433ca3940452762c40260c26e5e27c9f2921b68eb2f7c001c97f17c1aa2b9dc40e93d7cc5df75b79 WHIRLPOOL f2107c4b1872d629a048f5aa1fc709036533091f57cc64c06915c224cc6a04cc964c910009def7606401b4ee7072857ee4ae58abac6eeea5ce8db473938b26d4
MISC metadata.xml 253 SHA256 e46efd590a64061ef839b703b4ea6f25ec8aa4b2e4da401c7ae00c74828de0c2 SHA512 8b47855847429a6f134541fe072f4b650f58e8ef0eb534e61c88442681429185b6ae3217512c69a427cf1309bad72fa7ab0d17bc62db76e4653081639224eac4 WHIRLPOOL 28eed9c27b29956e68cc70e1f74106f7e1b30a744c0cf045957cf80b5da93c05174f9a426ea7efef83ed07b7b3bdeb1c7139199e211837c5d4ec64870e0e7c69
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlMqI9AACgkQ1ycZbhPLE2AoPACggomwgwqvHncPADv7mPX2UhnU
-6dwAoLG4R2mZADpFaVuOVtMcClPSsHpS
-=cVx2
+iEYEAREIAAYFAlOxG4IACgkQso7CE7gHKw3tHQCgoCUtBPNo/t6lrpDwKWzugQcc
+jVMAnjnpash6wwv3wbyzuKj5hvJ7KQnA
+=MCTa
-----END PGP SIGNATURE-----
diff --git a/dev-python/testfixtures/files/docbuild.patch b/dev-python/testfixtures/files/docbuild.patch
new file mode 100644
index 000000000000..dcdef3270545
--- /dev/null
+++ b/dev-python/testfixtures/files/docbuild.patch
@@ -0,0 +1,25 @@
+diff -ur testfixtures-3.0.0.orig/docs/conf.py testfixtures-3.0.0/docs/conf.py
+--- docs/conf.py 2011-09-23 16:55:53.000000000 +0800
++++ docs/conf.py 2014-06-30 15:36:43.591451878 +0800
+@@ -4,8 +4,7 @@
+ pkg_info = pkginfo.Develop(os.path.join(os.path.dirname(__file__),'..'))
+
+ extensions = [
+- 'sphinx.ext.autodoc',
+- 'sphinx.ext.intersphinx'
++ 'sphinx.ext.autodoc'
+ ]
+
+ intersphinx_mapping = {'http://docs.python.org': None}
+diff -ur testfixtures-3.0.0.orig/docs/Makefile testfixtures-3.0.0/docs/Makefile
+--- docs/Makefile 2011-07-19 00:43:59.000000000 +0800
++++ docs/Makefile 2014-06-30 15:36:31.703450934 +0800
+@@ -3,7 +3,7 @@
+
+ # You can set these variables from the command line.
+ SPHINXOPTS =
+-SPHINXBUILD = ../bin/sphinx-build
++SPHINXBUILD = /usr/bin/sphinx-build
+ PAPER =
+
+ # Internal variables.
diff --git a/dev-python/testfixtures/files/testfixtures-2.3.4-adjust_tests.patch b/dev-python/testfixtures/files/testfixtures-2.3.4-adjust_tests.patch
deleted file mode 100644
index 590bb796b7b7..000000000000
--- a/dev-python/testfixtures/files/testfixtures-2.3.4-adjust_tests.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_comparison.py testfixtures-2.3.4/testfixtures/tests/test_comparison.py
---- testfixtures/tests/test_comparison.py 2012-01-26 18:00:05.000000000 +0800
-+++ testfixtures/tests/test_comparison.py 2012-04-13 19:00:15.856224293 +0800
-@@ -5,7 +5,7 @@
- from testfixtures.tests.sample1 import TestClassA,a_function
- from unittest import TestCase,TestSuite,makeSuite
-
--from .compat import py_27_plus
-+from compat import py_27_plus
-
- class AClass:
-
-diff -ur testfixtures-2.3.4.orig/tests/test_components.py testfixtures-2.3.4/testfixtures/tests/test_components.py
---- testfixtures/tests/test_components.py 2012-01-27 02:41:51.000000000 +0800
-+++ testfixtures/tests/test_components.py 2012-04-13 19:08:44.434220585 +0800
-@@ -14,7 +14,7 @@
- from testfixtures import compare
- from unittest import TestCase
-
--from .compat import catch_warnings
-+from compat import catch_warnings
-
- class ComponentsTests(TestCase):
-
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_docs.py testfixtures-2.3.4/testfixtures/tests/test_docs.py
---- testfixtures/tests/test_docs.py 2012-01-28 16:07:57.000000000 +0800
-+++ testfixtures/tests/test_docs.py 2012-04-13 19:03:36.649223003 +0800
-@@ -11,7 +11,7 @@
-
- import os
-
--from . import compat
-+import compat
-
- workspace = os.environ.get('WORKSPACE', join(dirname(__file__), pardir, pardir))
- tests = glob(join(workspace,'docs', '*.txt'))
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_logcapture.py testfixtures-2.3.4/testfixtures/tests/test_logcapture.py
---- testfixtures/tests/test_logcapture.py 2012-01-27 02:41:26.000000000 +0800
-+++ testfixtures/tests/test_logcapture.py 2012-04-13 19:09:02.930220838 +0800
-@@ -10,7 +10,7 @@
-
- from logging import getLogger
-
--from .compat import catch_warnings
-+from compat import catch_warnings
-
- root = getLogger()
- one = getLogger('one')
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_replace.py testfixtures-2.3.4/testfixtures/tests/test_replace.py
---- testfixtures/tests/test_replace.py 2012-01-27 02:34:12.000000000 +0800
-+++ testfixtures/tests/test_replace.py 2012-04-13 19:09:18.842220416 +0800
-@@ -17,7 +17,7 @@
- import sample1
- import sample2
-
--from .compat import catch_warnings
-+from compat import catch_warnings
-
- class TestReplace(TestCase):
-
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_should_raise.py testfixtures-2.3.4/testfixtures/tests/test_should_raise.py
---- testfixtures/tests/test_should_raise.py 2012-01-27 02:43:51.000000000 +0800
-+++ testfixtures/tests/test_should_raise.py 2012-04-13 19:09:36.235220628 +0800
-@@ -5,7 +5,7 @@
- from testfixtures import should_raise,ShouldRaise,Comparison as C
- from unittest import TestCase,TestSuite,makeSuite
-
--from .compat import py_27_plus
-+from compat import py_27_plus
-
- class TestShouldRaise(TestCase):
-
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_tempdirectory.py testfixtures-2.3.4/testfixtures/tests/test_tempdirectory.py
---- testfixtures/tests/test_tempdirectory.py 2012-01-27 02:25:43.000000000 +0800
-+++ testfixtures/tests/test_tempdirectory.py 2012-04-13 19:09:54.971220623 +0800
-@@ -13,7 +13,7 @@
-
- from logging import getLogger
-
--from .compat import catch_warnings
-+from compat import catch_warnings
-
- class DemoTempDirectory:
-
-diff -ur testfixtures-2.3.4.orig/testfixtures/tests/test_manuel_examples.py testfixtures-2.3.4/testfixtures/tests/test_manuel_examples.py
---- testfixtures/tests/test_manuel_examples.py 2012-01-26 04:31:12.000000000 +0800
-+++ testfixtures/tests/test_manuel_examples.py 2012-04-13 21:14:05.390172684 +0800
-@@ -11,7 +11,7 @@
- from testfixtures import TempDirectory
- from testfixtures.manuel import Files
-
--from . import compat
-+import compat
-
- def setUp(test):
- test.globs['tempdir']=TempDirectory()
-diff -ur testfixtures-2.3.4.orig/testfixtures/components.py testfixtures-2.3.4/testfixtures/components.py
---- testfixtures/components.py 2011-10-12 00:21:45.000000000 +0800
-+++ testfixtures/components.py 2012-04-29 18:12:41.891588669 +0800
-@@ -4,8 +4,8 @@
- import atexit
- import warnings
-
--from zope.component import getSiteManager
--from zope.component.registry import Components
-+#from zope.component import getSiteManager
-+#from zope.component.registry import Components
-
- class TestComponents:
- """
-@@ -20,11 +20,8 @@
- atexit_setup = False
-
- def __init__(self):
-- self.registry = Components('Testing')
-- self.old = getSiteManager.sethook(lambda:self.registry)
- self.instances.add(self)
- if not self.__class__.atexit_setup:
-- atexit.register(self.atexit)
- self.__class__.atexit_setup = True
-
- def uninstall(self):
-@@ -33,7 +30,6 @@
- was in place before this :class:`TestComponents` was
- instantiated.
- """
-- getSiteManager.sethook(self.old)
- self.instances.remove(self)
-
- @classmethod
diff --git a/dev-python/testfixtures/testfixtures-2.3.4.ebuild b/dev-python/testfixtures/testfixtures-2.3.4.ebuild
deleted file mode 100644
index 16561c171e58..000000000000
--- a/dev-python/testfixtures/testfixtures-2.3.4.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/testfixtures/testfixtures-2.3.4.ebuild,v 1.3 2013/03/15 20:58:09 idella4 Exp $
-
-EAPI=4
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS=1
-RESTRICT_PYTHON_ABIS="3.* *-pypy-* *-jython"
-DISTUTILS_SRC_TEST="py.test"
-inherit distutils eutils
-
-DESCRIPTION="A collection of helpers and mock objects for unit tests and doc tests"
-HOMEPAGE="http://pypi.python.org/pypi/testfixtures/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-LICENSE="MIT"
-SLOT="0"
-
-KEYWORDS="~amd64 ~x86"
-IUSE="doc test"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx )
- test? ( dev-python/manuel )"
-
-src_prepare() {
- sed -e s':../bin/sphinx-build:/usr/bin/sphinx-build:' \
- -i docs/Makefile || die
- epatch "${FILESDIR}"/${P}-adjust_tests.patch
-
- # remove test that tests the stripped zope-component test_components.ComponentsTests
- rm -f testfixtures/tests/test_components.py || die
- distutils_src_prepare
-}
-src_compile() {
- distutils_src_compile
-
- use doc && emake -C docs html
-}
-
-src_test() {
- distutils_src_test ${PN}/tests/
-}
-
-src_install() {
- distutils_src_install
- if use doc; then
- dohtml -r docs/_build/html/
- fi
-}
diff --git a/dev-python/testfixtures/testfixtures-3.0.0.ebuild b/dev-python/testfixtures/testfixtures-3.0.0.ebuild
index b107ab52d01d..f3b966fd0519 100644
--- a/dev-python/testfixtures/testfixtures-3.0.0.ebuild
+++ b/dev-python/testfixtures/testfixtures-3.0.0.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/testfixtures/testfixtures-3.0.0.ebuild,v 1.3 2014/03/19 23:10:07 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/testfixtures/testfixtures-3.0.0.ebuild,v 1.4 2014/06/30 08:18:54 idella4 Exp $
EAPI=5
-PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+PYTHON_COMPAT=( python{2_7,3_2,3_3} )
inherit distutils-r1
@@ -16,18 +16,19 @@ SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
-RDEPEND=""
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/pkginfo[${PYTHON_USEDEP}]' python2_7) )
test? ( dev-python/manuel[${PYTHON_USEDEP}] )"
-src_prepare() {
- sed -e s':../bin/sphinx-build:/usr/bin/sphinx-build:' \
- -i docs/Makefile || die
+# Prevent un-needed download during build, fix Makefile for doc build
+PATCHES=( "${FILESDIR}"/docbuild.patch )
+python_prepare() {
# remove test that tests the stripped zope-component test_components.ComponentsTests
rm -f testfixtures/tests/test_components.py || die
- distutils-r1_src_prepare
+
+ distutils-r1_python_prepare
}
python_compile_all() {
@@ -39,7 +40,6 @@ python_test() {
}
python_install_all() {
- if use doc; then
- dohtml -r docs/_build/html/
- fi
+ use doc && HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
}