mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 01:23:23 -04:00
dev-python/thriftrw: enable sphinx, disable tests
Closes: https://bugs.gentoo.org/820245 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
|
||||
@@ -3,28 +3,27 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
MYPN="${PN}-python"
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="${PN}-python"
|
||||
DESCRIPTION="A Thrift encoding library for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/thriftrw/thriftrw-python
|
||||
https://pypi.org/project/thriftrw
|
||||
"
|
||||
SRC_URI="https://github.com/thriftrw/${MYPN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MYPN}-${PV}"
|
||||
SRC_URI="https://github.com/thriftrw/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/ply[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
# broken tests
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="dev-python/ply[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
>=dev-python/cython-0.17[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/pytest-benchmark-3.0.1[${PYTHON_USEDEP}]
|
||||
@@ -36,4 +35,18 @@ PATCHES=(
|
||||
"${FILESDIR}/${P}-tool-pytest.patch"
|
||||
)
|
||||
|
||||
DOCS=( CHANGELOG.rst CONTRIBUTING.md README.rst TODO.rst )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs dev-python/alabaster
|
||||
|
||||
python_prepare_all() {
|
||||
rm tests/protocol/test_binary.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
use test && esetup.py build_ext --force --inplace
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user