summaryrefslogtreecommitdiff
blob: c4da9ca17c5b6c7d2bcafae5f63b90a1627f630a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} pypy )
DISTUTILS_USE_SETUPTOOLS=bdepend

inherit distutils-r1

DESCRIPTION="Read/rewrite/write Python ASTs"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
HOMEPAGE="https://pypi.org/project/astor/"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

distutils_enable_tests pytest

python_prepare_all() {
	# Tries to roundtrip every package on the system and is unreliable
	rm -f tests/test_rtrip.py || die

	distutils-r1_python_prepare_all
}