mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -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:
@@ -1 +1 @@
|
|||||||
DIST v12.4.2.tar.gz 1896003 BLAKE2B 2fbf77046da9c25b82682db040967e326bb92be0709f76ce9ebf98d611822d07c60d68d02e241cfbb4cc233be0e198a866f85557790227e7439d2688c5d01651 SHA512 b5c652433c99205e71dee67d1c9e5d3a9b2df40b2d60c1810135ef8b1b72f2b4b27a506682d0522a1bae58d39ba7cd559e262c222fde7dd324df779a00a76e10
|
DIST python-telegram-bot-12.4.2.tar.gz 1896003 BLAKE2B 2fbf77046da9c25b82682db040967e326bb92be0709f76ce9ebf98d611822d07c60d68d02e241cfbb4cc233be0e198a866f85557790227e7439d2688c5d01651 SHA512 b5c652433c99205e71dee67d1c9e5d3a9b2df40b2d60c1810135ef8b1b72f2b4b27a506682d0522a1bae58d39ba7cd559e262c222fde7dd324df779a00a76e10
|
||||||
|
|||||||
@@ -8,20 +8,23 @@ PYTHON_COMPAT=( python3_{6,7,8} )
|
|||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
||||||
DESCRIPTION="Python wrapper of telegram bots API"
|
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
|
if [[ ${PV} == *9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot"
|
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot"
|
||||||
else
|
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"
|
KEYWORDS="~amd64 ~x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="test"
|
|
||||||
|
# No tests because require networking access
|
||||||
|
# Commenting out the test deps so we can add py3_8
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/certifi[${PYTHON_USEDEP}]
|
dev-python/certifi[${PYTHON_USEDEP}]
|
||||||
@@ -34,6 +37,31 @@ RDEPEND="
|
|||||||
www-servers/tornado[${PYTHON_USEDEP}]
|
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
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,20 +8,23 @@ PYTHON_COMPAT=( python3_{6,7,8} )
|
|||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
||||||
DESCRIPTION="Python wrapper of telegram bots API"
|
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
|
if [[ ${PV} == *9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot"
|
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot"
|
||||||
else
|
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"
|
KEYWORDS="~amd64 ~x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="test"
|
|
||||||
|
# No tests because require networking access
|
||||||
|
# Commenting out the test deps so we can add py3_8
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/certifi[${PYTHON_USEDEP}]
|
dev-python/certifi[${PYTHON_USEDEP}]
|
||||||
@@ -34,6 +37,31 @@ RDEPEND="
|
|||||||
www-servers/tornado[${PYTHON_USEDEP}]
|
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