blob: 2463f0a6c820554baa9c45f5d15a97fc0afdb983 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..10} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Python library for the Advanced Scientific Data Format"
HOMEPAGE="https://asdf.readthedocs.io/en/latest/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Reported upstream:
# https://github.com/asdf-format/asdf/issues/1319
RESTRICT="test"
BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/astropy[${PYTHON_USEDEP}]
dev-python/pytest-doctestplus[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/gwcs[${PYTHON_USEDEP}]
)
doc? ( media-gfx/graphviz )
"
RDEPEND="
>=dev-python/jmespath-0.6.2[${PYTHON_USEDEP}]
>=dev-python/jsonschema-3.0.2[${PYTHON_USEDEP}]
>=dev-python/numpy-1.10[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
>=dev-python/semantic_version-2.8[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/astropy dev-python/sphinx-astropy dev-python/matplotlib dev-python/docutils
python_test() {
# discovers things in docs dir if we do not
# explicitly set it to run on the tests dir
epytest asdf/tests
}
|