/[gentoo-x86]/dev-python/six/six-1.2.0-r1.ebuild
Gentoo

Contents of /dev-python/six/six-1.2.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Jan 2 18:11:20 2015 UTC (5 years, 2 months ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump six to 1.9.0 and remove old versions

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 30380381)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/six/six-1.2.0-r1.ebuild,v 1.6 2014/03/31 20:41:34 mgorny Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy pypy2_0 )
7
8 inherit distutils-r1
9
10 DESCRIPTION="Python 2 and 3 compatibility library"
11 HOMEPAGE="https://bitbucket.org/gutworth/six http://pypi.python.org/pypi/six"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
17 IUSE="doc test"
18
19 DEPEND="doc? ( dev-python/sphinx )
20 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
21
22 python_prepare_all() {
23 # disable tests that require tkinter
24 sed -i -e "s/test_move_items/_&/" test_six.py || die
25
26 distutils-r1_python_prepare_all
27 }
28
29 python_compile_all() {
30 use doc && emake -C documentation html
31 }
32
33 python_test() {
34 py.test || die "Testing failed with ${EPYTHON}"
35 }
36
37 python_install_all() {
38 use doc && local HTML_DOCS=( documentation/_build/html/ )
39
40 distutils-r1_python_install_all
41 }

  ViewVC Help
Powered by ViewVC 1.1.20