mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-03 12:10:50 +02:00
mitmproxy: fix documentation generation
This commit is contained in:
parent
35ba43d548
commit
84c74cf7f3
2 changed files with 20 additions and 4 deletions
|
|
@ -50,7 +50,8 @@ DEPEND="${RDEPEND}
|
|||
test? (
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
)
|
||||
doc? ( dev-python/sphinxcontrib-documentedlist )"
|
||||
#fixme: bump it too
|
||||
# =www-servers/pathod-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
|
||||
|
||||
|
|
@ -69,15 +70,22 @@ python_prepare() {
|
|||
fi
|
||||
}
|
||||
python_foreach_impl hack_python34
|
||||
|
||||
# replace git describe with actual version
|
||||
sed -i -e "s/\"git\", \"describe\", \"--tags\", \"--long\"/'echo', 'v${PV}-0-0'/" docs/conf.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGELOG CONTRIBUTORS )
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
|
@ -50,7 +50,8 @@ DEPEND="${RDEPEND}
|
|||
test? (
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
)
|
||||
doc? ( dev-python/sphinxcontrib-documentedlist )"
|
||||
#fixme: bump it too
|
||||
# =www-servers/pathod-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
|
||||
|
||||
|
|
@ -63,15 +64,22 @@ python_prepare() {
|
|||
fi
|
||||
}
|
||||
python_foreach_impl hack_python34
|
||||
|
||||
# replace git describe with actual version
|
||||
sed -i -e "s/\"git\", \"describe\", \"--tags\", \"--long\"/'echo', 'v${PV}-0-0'/" docs/conf.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGELOG CONTRIBUTORS )
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
|
|
|||
Loading…
Reference in a new issue