|
Lines 3-9
Link Here
|
| 3 |
|
3 |
|
| 4 |
EAPI=7 |
4 |
EAPI=7 |
| 5 |
|
5 |
|
| 6 |
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} ) |
6 |
PYTHON_COMPAT=( python3_{6,7,8,9} ) |
| 7 |
|
7 |
|
| 8 |
inherit distutils-r1 |
8 |
inherit distutils-r1 |
| 9 |
|
9 |
|
|
Lines 19-29
Link Here
|
| 19 |
|
19 |
|
| 20 |
RDEPEND=" |
20 |
RDEPEND=" |
| 21 |
dev-python/certifi[${PYTHON_USEDEP}] |
21 |
dev-python/certifi[${PYTHON_USEDEP}] |
| 22 |
>=dev-python/urllib3-1.23[${PYTHON_USEDEP}] |
22 |
dev-python/urllib3[${PYTHON_USEDEP}] |
| 23 |
" |
23 |
" |
| 24 |
DEPEND=" |
24 |
BDEPEND=" |
| 25 |
dev-python/setuptools[${PYTHON_USEDEP}] |
|
|
| 26 |
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
| 27 |
test? ( |
25 |
test? ( |
| 28 |
${RDEPEND} |
26 |
${RDEPEND} |
| 29 |
!hppa? ( !ia64? ( |
27 |
!hppa? ( !ia64? ( |
|
Lines 34-48
Link Here
|
| 34 |
dev-python/python-fastimport[${PYTHON_USEDEP}] |
32 |
dev-python/python-fastimport[${PYTHON_USEDEP}] |
| 35 |
)" |
33 |
)" |
| 36 |
|
34 |
|
| 37 |
DISTUTILS_IN_SOURCE_BUILD=1 |
35 |
distutils_enable_sphinx docs |
| 38 |
|
|
|
| 39 |
# One test sometimes fails |
| 40 |
# https://github.com/jelmer/dulwich/issues/541 |
| 41 |
PATCHES=( "${FILESDIR}/${PN}-0.18.3-skip-failing-test.patch" ) |
| 42 |
|
| 43 |
python_compile_all() { |
| 44 |
use doc && emake -C docs html |
| 45 |
} |
| 46 |
|
36 |
|
| 47 |
python_test() { |
37 |
python_test() { |
| 48 |
# Do not use make check which rebuilds the extension and uses -Werror, |
38 |
# Do not use make check which rebuilds the extension and uses -Werror, |
|
Lines 52-58
Link Here
|
| 52 |
} |
42 |
} |
| 53 |
|
43 |
|
| 54 |
python_install_all() { |
44 |
python_install_all() { |
| 55 |
use doc && local HTML_DOCS=( docs/build/html/. ) |
|
|
| 56 |
if use examples; then |
45 |
if use examples; then |
| 57 |
docompress -x "/usr/share/doc/${PF}/examples" |
46 |
docompress -x "/usr/share/doc/${PF}/examples" |
| 58 |
dodoc -r examples |
47 |
dodoc -r examples |