Diff gunicorn-19.8.1 with a gunicorn-19.9.0

/usr/portage/www-servers/gunicorn/gunicorn-19.9.0.ebuild 2020-06-12 19:09:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
5

  
6
PYTHON_COMPAT=( python3_6 )
4
EAPI=7
5
PYTHON_COMPAT=( python3_{6..9} )
7 6

  
8 7
inherit distutils-r1
9 8

  
......
14 13
LICENSE="MIT PSF-2 doc? ( BSD )"
15 14
SLOT="0"
16 15
KEYWORDS="amd64 ~arm ~arm64 x86"
17
IUSE="doc test"
18
RESTRICT="!test? ( test )"
19 16

  
20 17
RDEPEND="dev-python/setproctitle[${PYTHON_USEDEP}]"
21
DEPEND="
22
	dev-python/setuptools[${PYTHON_USEDEP}]
23
	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
18
BDEPEND="
24 19
	test? (
25 20
		dev-python/mock[${PYTHON_USEDEP}]
26
		dev-python/pytest[${PYTHON_USEDEP}]
27
		dev-python/pytest-cov[${PYTHON_USEDEP}]
28 21
		dev-python/unittest2[${PYTHON_USEDEP}]
29 22
	)"
30 23

  
31 24
DOCS="README.rst"
32 25

  
33
python_prepare_all() {
34
	sed -ie "s/..\/bin/\/usr\/bin\//" docs/Makefile || die
35

  
36
	distutils-r1_python_prepare_all
37
}
38

  
39
python_compile_all() {
40
	use doc && emake -C docs html
41
}
26
distutils_enable_sphinx 'docs/source' --no-autodoc
27
distutils_enable_tests pytest
42 28

  
43
python_test() {
44
	py.test -v || die "Testing failed with ${EPYTHON}"
29
src_prepare() {
30
	sed -e 's:--cov=gunicorn --cov-report=xml::' -i setup.cfg || die
31
	distutils-r1_src_prepare
45 32
}
46 33

  
47 34
python_install_all() {
48
	use doc && local HTML_DOCS=( docs/build/html/. )
35
	use doc && local HTML_DOCS=( docs/source/_build/html/. )
49 36

  
50 37
	distutils-r1_python_install_all
51 38
}
Thank you!