mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 11:20:48 -04:00
dev-python/python-telegram-bot: enable docs flag
also added the test deps even though the tests fail anyway, we just use RESTRICT="test" to skip the tests. Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
@@ -8,20 +8,23 @@ PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapper of telegram bots API"
|
||||
HOMEPAGE="https://python-telegram-bot.org/"
|
||||
HOMEPAGE="https://python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot"
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
# No tests because require networking access
|
||||
# Commenting out the test deps so we can add py3_8
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
@@ -34,6 +37,31 @@ RDEPEND="
|
||||
www-servers/tornado[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
#DEPEND="test? (
|
||||
# dev-python/attrs[${PYTHON_USEDEP}]
|
||||
# dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
|
||||
# dev-python/flake8[${PYTHON_USEDEP}]
|
||||
# dev-python/flaky[${PYTHON_USEDEP}]
|
||||
# dev-python/pylint[${PYTHON_USEDEP}]
|
||||
# dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||
# dev-python/yapf[${PYTHON_USEDEP}]
|
||||
#)"
|
||||
|
||||
# No tests because require networking access
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
|
||||
|
||||
python_prepare_all() {
|
||||
# do not make a test flaky report
|
||||
sed -i -e '/addopts/d' setup.cfg || die
|
||||
|
||||
# this test fails: Unknown pytest.mark.nocoverage
|
||||
# likely this requires pytest-cov but that is deprecated
|
||||
# so we skip the test
|
||||
rm tests/test_meta.py || die
|
||||
|
||||
# this fails to import urllib3 even though
|
||||
# it is installed
|
||||
rm tests/test_official.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user