2020-01-05 20:54:22 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2019-12-12 01:03:08 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
2020-02-04 22:32:18 +03:00
|
|
|
PYTHON_COMPAT=( python{3_6,3_7,3_8} )
|
2019-12-12 01:03:08 +03:00
|
|
|
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
|
|
|
|
}
|