1 |
mgorny 13/10/05 14:51:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: unittest2-0.5.1-r2.ebuild |
5 |
Removed: unittest2-0.5.1.ebuild |
6 |
Log: |
7 |
Fix not applying anti-versioning patch for py3 & py3.3 test failure (bug #450762). Drop old. |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.37 dev-python/unittest2/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/ChangeLog?rev=1.37&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/ChangeLog?rev=1.37&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/ChangeLog?r1=1.36&r2=1.37 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/unittest2/ChangeLog,v |
21 |
retrieving revision 1.36 |
22 |
retrieving revision 1.37 |
23 |
diff -u -r1.36 -r1.37 |
24 |
--- ChangeLog 5 Sep 2013 18:45:59 -0000 1.36 |
25 |
+++ ChangeLog 5 Oct 2013 14:51:33 -0000 1.37 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for dev-python/unittest2 |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/ChangeLog,v 1.36 2013/09/05 18:45:59 mgorny Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/ChangeLog,v 1.37 2013/10/05 14:51:33 mgorny Exp $ |
31 |
+ |
32 |
+*unittest2-0.5.1-r2 (05 Oct 2013) |
33 |
+ |
34 |
+ 05 Oct 2013; Michał Górny <mgorny@g.o> +unittest2-0.5.1-r2.ebuild, |
35 |
+ -unittest2-0.5.1.ebuild: |
36 |
+ Fix not applying anti-versioning patch for py3 & py3.3 test failure (bug |
37 |
+ #450762). Drop old. |
38 |
|
39 |
05 Sep 2013; Michał Górny <mgorny@g.o> unittest2-0.5.1-r1.ebuild: |
40 |
Clean up PYTHON_COMPAT from old implementations. |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-python/unittest2/unittest2-0.5.1-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/unittest2-0.5.1-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/unittest2-0.5.1-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: unittest2-0.5.1-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/unittest2-0.5.1-r2.ebuild,v 1.1 2013/10/05 14:51:33 mgorny Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 ) |
57 |
|
58 |
inherit distutils-r1 |
59 |
|
60 |
PY3_P=${PN}py3k-${PV} |
61 |
|
62 |
DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+" |
63 |
HOMEPAGE="http://pypi.python.org/pypi/unittest2 |
64 |
http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/" |
65 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
66 |
mirror://pypi/${PN:0:1}/${PN}/${PY3_P}.tar.gz" |
67 |
|
68 |
LICENSE="BSD" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
71 |
IUSE="" |
72 |
|
73 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
74 |
RDEPEND="${DEPEND}" |
75 |
|
76 |
python_prepare_all() { |
77 |
local d |
78 |
for d in "${S}" "${WORKDIR}"/${PY3_P}; do |
79 |
# Disable versioning of unit2 script to avoid collision with versioning performed by distutils_src_install(). |
80 |
sed -i -e "/'%s = unittest2:main_' % SCRIPT2,/d" \ |
81 |
"${d}"/setup.py || die |
82 |
|
83 |
sed -i -e '/No module named/s/self.*$/pass/' \ |
84 |
"${d}"/unittest2/test/test_loader.py || die |
85 |
done |
86 |
|
87 |
distutils-r1_python_prepare_all |
88 |
} |
89 |
|
90 |
select_source() { |
91 |
if [[ ${EPYTHON} == python3* ]]; then |
92 |
cd "${WORKDIR}"/${PY3_P} || die |
93 |
else |
94 |
cd "${S}" || die |
95 |
fi |
96 |
} |
97 |
|
98 |
python_compile() { |
99 |
select_source |
100 |
distutils-r1_python_compile |
101 |
} |
102 |
|
103 |
src_test() { |
104 |
# multiprocessing causes test failure with signals |
105 |
local DISTUTILS_NO_PARALLEL_BUILD=1 |
106 |
|
107 |
distutils-r1_src_test |
108 |
} |
109 |
|
110 |
python_test() { |
111 |
cd "${BUILD_DIR}" || die |
112 |
scripts/unit2 discover -s lib || die "Tests fail with ${EPYTHON}" |
113 |
} |
114 |
|
115 |
python_install() { |
116 |
select_source |
117 |
distutils-r1_python_install |
118 |
} |