-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruamel-yaml-0.18.12.ebuild
More file actions
31 lines (24 loc) · 1.07 KB
/
ruamel-yaml-0.18.12.ebuild
File metadata and controls
31 lines (24 loc) · 1.07 KB
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
27
28
29
30
31
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3+ )
inherit distutils-r1
DESCRIPTION="YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"
HOMEPAGE="None https://pypi.org/project/ruamel.yaml/"
SRC_URI="https://files.pythonhosted.org/packages/56/2f/5a4dd48a259cb72d6f972abb728d3b219b50980fe3b7c548e0be7c5f56aa/ruamel.yaml-0.18.12.tar.gz -> ruamel.yaml-0.18.12.tar.gz"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="test? ( dev-python/flake8[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}] )"
IUSE="test"
SLOT="0"
LICENSE="MIT"
KEYWORDS="*"
S="${WORKDIR}/ruamel.yaml-0.18.12"
python_install() {
distutils-r1_python_install --single-version-externally-managed
find "${ED}" -name '*.pth' -delete || die
}
python_test() {
# This file produced by setup.py breaks finding system-wide installed ruamel.std.pthlib
# due to shared namespace
rm "${BUILD_DIR}/lib/ruamel/__init__.py" || die
py.test -v _test/test_*.py || die
}