diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-04-18 18:46:07 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-04-18 18:46:07 +0000 |
commit | 1e25ca3d860805a571edc8266fb47cada135d3a6 (patch) | |
tree | b060e884672e6540e78538c93791d6c8ffe00bc2 /dev-python/logilab-common | |
parent | stable amd64, bug 266520 (diff) | |
download | historical-1e25ca3d860805a571edc8266fb47cada135d3a6.tar.gz historical-1e25ca3d860805a571edc8266fb47cada135d3a6.tar.bz2 historical-1e25ca3d860805a571edc8266fb47cada135d3a6.zip |
Bump to 0.39.0. Nice test fixes from idl0r. Closes #261984.
Package-Manager: portage-2.2_rc30/cvs/Linux x86_64
Diffstat (limited to 'dev-python/logilab-common')
-rw-r--r-- | dev-python/logilab-common/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/logilab-common/Manifest | 15 | ||||
-rw-r--r-- | dev-python/logilab-common/files/logilab-common-0.39.0-remove-broken-tests.patch | 29 | ||||
-rw-r--r-- | dev-python/logilab-common/logilab-common-0.39.0.ebuild | 74 |
4 files changed, 116 insertions, 13 deletions
diff --git a/dev-python/logilab-common/ChangeLog b/dev-python/logilab-common/ChangeLog index 3d88f1d23508..e06af385a4fb 100644 --- a/dev-python/logilab-common/ChangeLog +++ b/dev-python/logilab-common/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/logilab-common -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.37 2008/05/13 12:33:49 hawking Exp $ +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.38 2009/04/18 18:46:07 patrick Exp $ + +*logilab-common-0.39.0 (18 Apr 2009) + + 18 Apr 2009; Patrick Lauer <patrick@gentoo.org> + +files/logilab-common-0.39.0-remove-broken-tests.patch, + +logilab-common-0.39.0.ebuild: + Bump to 0.39.0. Nice test fixes from idl0r. Closes #261984. *logilab-common-0.31.0 (13 May 2008) diff --git a/dev-python/logilab-common/Manifest b/dev-python/logilab-common/Manifest index b2cc5791b3fc..54dc4e00e9bb 100644 --- a/dev-python/logilab-common/Manifest +++ b/dev-python/logilab-common/Manifest @@ -1,10 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX logilab-common-0.14.0-remove-broken-modutils-test.patch 760 RMD160 5a3aa174592a14df5d8a2c1cb0c929a50279459d SHA1 2b79e7bedd04378df7d1462e296054a827ee2cc9 SHA256 de9210bea8acae9306d6ec3f60b297ca721c7db3f571dbfa9c2da87125ca4ae1 AUX logilab-common-0.21.2-disable-access-tests-as-root.patch 1235 RMD160 f0db83d132957637d0bc1042201d035369141e47 SHA1 2395c781bf5a6c56e49f6a249aec697db1a985ff SHA256 6b8185b71a72b4d4d24c8966f5c6c66957c4fbd95f03caf136853230a1ce766a AUX logilab-common-0.21.2-remove-broken-tests.patch 916 RMD160 f0ec4be70ef6828ee8bbf1e1f356235f4dbf5d96 SHA1 38d62f07d30e3fffb6a946cc92d52e2500525812 SHA256 9272dc65490f7b9c82705b1b74f081a69fd01aea28ca278a592fd17a43de9333 AUX logilab-common-0.31.0-remove-broken-tests.patch 2045 RMD160 d91343e1aafebb026f47b9b48423763defa33119 SHA1 bca77e3f4342fbbbb2a73a4cad77fdb3bbe75b75 SHA256 b6a817767577b3429080646f1b0a24c5879d04494b94e9e1912a6f9cf1470848 +AUX logilab-common-0.39.0-remove-broken-tests.patch 1520 RMD160 775d5cecf91220a4b612000db979b630bd983606 SHA1 3b2906920663fde3c7157a4ee5b1879b843b470c SHA256 55d48469e605a2a6c1819e8e3084041d49f07fd5e7628cf45af88f0dcd07c9fb AUX logilab-common-setup.py.patch 596 RMD160 dfcc88bd4adc347f6e9f675ed32642f62bdb7036 SHA1 7aa8124db4478c4982c9c33cc3961b28dcc0cd3c SHA256 e8fccb01d1199890b91a15f61ddf943a060cb9e68af277cead63d03a2516e6d7 DIST common-0.15.0.tar.gz 140909 RMD160 c03fc7c7da4700c2320a78922ade833824d285a5 SHA1 5cb6df46c5bf47b1078885af636807fdf99cebd1 SHA256 c8bb306ec5dc7dfb9e6f3d61cf089bbac62e5e5fc22824ff41cb770fc8e8c2de DIST common-0.19.2.tar.gz 122095 RMD160 625e78d8e89a4ea16065678febde701757138de1 SHA1 03fdfc5f8bc61fb2de293274c8d3d8e379c8a96a SHA256 dc2ac017128dbcbb75060dfcb6f27fb027a56054fbbe8dae7743eadc59cd13f1 @@ -12,18 +10,13 @@ DIST common-0.9.3.tar.gz 156335 RMD160 cc26062a61f4d1dcd05feda9baa4ef22920b4aac DIST logilab-common-0.21.0.tar.gz 126170 RMD160 87eb6095a4198c036b82429f3fd6300e79aa33ae SHA1 2918986df24914469a9cd8881e0c7afd2ce9a318 SHA256 d9177b4f72ec589be8844dbe1a9cff150de28d9134acce3b6e2770fa6173d9cb DIST logilab-common-0.21.2.tar.gz 121708 RMD160 f16470bd3c7d729e5e1da155d35d28d89d69c62c SHA1 1ca4e822749400458619cc6890d4aeeba277520c SHA256 11fcb8a7096e73b1be72f17427377f1693244dc0e3b071ce067560f45980780b DIST logilab-common-0.31.0.tar.gz 148839 RMD160 97552a0c15550c6e9c1ed46d5ba26805c4ffb452 SHA1 55b7b057f93c215519523df1888dc1af809cccd7 SHA256 09048ee6cfec163d2b3437e0c3aae15f059e69d6de9143a855244c9758cbeb67 +DIST logilab-common-0.39.0.tar.gz 176629 RMD160 02de1650175e8c3e383c71f8e0aa935d2b132e87 SHA1 596657988e024d5d0286ba3a2a71f167eca9af1a SHA256 40dab682017bb399606a66d3f72c7906b61669ffcd113d096a7b7e1c9054550e EBUILD logilab-common-0.15.0.ebuild 1584 RMD160 46d4570ccfb6661104bf442e3e113e04af747938 SHA1 8385c72b23c394ca66200bd566831581e659e464 SHA256 fb71db0dbd41190365cef7fa49c86bdee64f6292e53686dc364e5cccf21a21ea EBUILD logilab-common-0.19.2.ebuild 1300 RMD160 bf11446f190f13ffc621a6b88b70c6c778e5f3b5 SHA1 d5741bef8af2b37279f5e77ded1812404be75cbc SHA256 7943e8015dfed6c3fe1952b3e38ad0559c8f44d0165a73f85f65c33ae40bf7b3 EBUILD logilab-common-0.21.0.ebuild 1199 RMD160 dc1796c428fdf33f1a4d4f7f5eae2eea1c276afd SHA1 189b29464a349ff0e673ffd9a923e50e3262d3ab SHA256 a78cc14f12dfe397f84b5f77f3153917a24619eedb68bc039400ecf2e6fbb743 EBUILD logilab-common-0.21.2.ebuild 1685 RMD160 5bd113fbff1a64008a6c1e052ab9d6a253e765b6 SHA1 d482a96b418bb98a71b735b7ee48fb51630a097e SHA256 ff210053f2d172d80b0fe038b120fbcdb801224e695905f0e47d8724b8099b15 EBUILD logilab-common-0.31.0.ebuild 1569 RMD160 7f7801064c55702318a0d51101316f8afdd5fc03 SHA1 279f239e4144d0c429629eed6851e45c93559d16 SHA256 fc31d5c6559b30bf66a818e64acad47196606cd71508eb9dbe7134c8c8e2c015 +EBUILD logilab-common-0.39.0.ebuild 2240 RMD160 11b383439b7389e0bf030ee97085531baaaf0d6c SHA1 a9d31b4e39e16fe65eb9c2bfd356e42382910a57 SHA256 8333879397446e5d20a2baa3812ccfaef2963bdac844db008c8785df7ebbdf30 EBUILD logilab-common-0.9.3.ebuild 807 RMD160 8ed2d828926ea08609391c3c33ccbac6f3280d8a SHA1 fe4e1eb341f6b34511a19061f274703b54fe0fc9 SHA256 f9f1b622987e3cdc166693822e6568c52d6133594ac2cab44422e4a0c526764e -MISC ChangeLog 6266 RMD160 44a090f05cbb48bfe669550e9c6b7d429b2a56cb SHA1 3a36b4190473ce4b660f55b06205faad748719b4 SHA256 f1ff2543b99e23230650aae0ee351aedef56ab840961c4a43002756bac9bbcc3 +MISC ChangeLog 6508 RMD160 80c1787ced38e30c80c15aa0b33381093536f65b SHA1 3c30c343946c18331367e9f21b59b10f590aabf5 SHA256 ebdbd7bd9b0db97fcbbcff8940947b638614065c79ac1057d6c7610ceb957f83 MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAkgpirIACgkQQU4yORhF8iBSjACgkMlV4AZEBmQKdso9uo1pY+QQ -+XUAn3p1EQEfWYX1Zwck/Xdnnb48FFsv -=HAkM ------END PGP SIGNATURE----- diff --git a/dev-python/logilab-common/files/logilab-common-0.39.0-remove-broken-tests.patch b/dev-python/logilab-common/files/logilab-common-0.39.0-remove-broken-tests.patch new file mode 100644 index 000000000000..cda1f63340b8 --- /dev/null +++ b/dev-python/logilab-common/files/logilab-common-0.39.0-remove-broken-tests.patch @@ -0,0 +1,29 @@ +--- test/unittest_modutils.py.old 2009-04-14 13:00:50.116522533 +0200 ++++ test/unittest_modutils.py 2009-04-14 13:20:41.727764570 +0200 +@@ -120,16 +120,6 @@ class file_from_modpath_tc(TestCase): + self.assertEqual(path.realpath(modutils.file_from_modpath(['os', 'path']).replace('.pyc', '.py')), + path.realpath(path.__file__.replace('.pyc', '.py'))) + +- def test_knownValues_file_from_modpath_3(self): +- try: +- # don't fail if pyxml isn't installed +- from xml.dom import ext +- except ImportError: +- pass +- else: +- self.assertEqual(path.realpath(modutils.file_from_modpath(['xml', 'dom', 'ext']).replace('.pyc', '.py')), +- path.realpath(ext.__file__.replace('.pyc', '.py'))) +- + def test_knownValues_file_from_modpath_4(self): + self.assertEqual(modutils.file_from_modpath(['sys']), + None) +@@ -165,9 +155,6 @@ class is_standard_module_tc(TestCase): + def test_knownValues_is_standard_module_3(self): + self.assertEqual(modutils.is_standard_module('unknown'), False) + +- def test_knownValues_is_standard_module_4(self): +- self.assertEqual(modutils.is_standard_module('StringIO'), True) +- + def test_knownValues_is_standard_module_5(self): + self.assertEqual(modutils.is_standard_module('data.module', (DATADIR,)), True) + self.assertEqual(modutils.is_standard_module('data.module', (path.abspath(DATADIR),)), True)
\ No newline at end of file diff --git a/dev-python/logilab-common/logilab-common-0.39.0.ebuild b/dev-python/logilab-common/logilab-common-0.39.0.ebuild new file mode 100644 index 000000000000..d2c65aec8652 --- /dev/null +++ b/dev-python/logilab-common/logilab-common-0.39.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.39.0.ebuild,v 1.1 2009/04/18 18:46:07 patrick Exp $ + +inherit distutils eutils python + +#DESCRIPTION="Several modules providing low level functionality shared among some python projects developed by logilab" +DESCRIPTION="useful miscellaneous modules used by Logilab projects" +HOMEPAGE="http://www.logilab.org/projects/common/" +SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="test" + +DEPEND="test? ( dev-python/egenix-mx-base )" +RDEPEND="" + +PYTHON_MODNAME="logilab" + +# Extra documentation (html/pdf) needs some love + +src_test() { + python_version + + # Install temporarily. + local tpath="${T}/test" + local lpath="${tpath}/lib/python" + + # setuptools would fail if the directory doesn't exist. + mkdir -p "${lpath}" || die + + # We also have to add ${lpath} to PYTHONPATH else the installation would + # fail. + PYTHONPATH="${lpath}" ${python} setup.py install --home="${tpath}" || \ + die "test copy failed" + + # Get a rid of precompiled files to ensure we run our _modified_ tests + find ${lpath} -type f -name '*.pyc' -exec rm {} ';' + + # Remove a botched tests. + # To support test w/o setuptools. + if [[ -d "${lpath}/${PN/-//}" ]]; then + pushd "${lpath}/${PN/-//}" >/dev/null || die + else + pushd "${lpath}/${P/-/_}-py${PYVER}.egg/${PN/-//}" >/dev/null || die + fi + + epatch "${FILESDIR}/${P}-remove-broken-tests.patch" + + # Bug 223079 + if ! has userpriv ${FEATURES}; then + rm test/unittest_fileutils.py || die + fi + + popd >/dev/null || die + + # It picks up the tests relative to the current dir, so cd in. Do + # not cd in too far though (to logilab/common for example) or some + # relative/absolute module location tests fail. + pushd "${lpath}" >/dev/null || die + PYTHONPATH="${lpath}" ${python} "${tpath}/bin/pytest" -v || die "tests failed" + popd >/dev/null || die +} + +src_install() { + distutils_src_install + + doman doc/pytest.1 || die "doman failed" + + # Remove unittests since they're just needed during build-time + rm -rf "${D}/$(python_get_sitedir)/${PN/-//}/test" || die +} |