Diff six-1.10.0 with a six-1.11.0

/usr/portage/dev-python/six/six-1.11.0.ebuild 2019-11-16 14:12:00.000000000 +0300
1 1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=6
5 5

  
6
PYTHON_COMPAT=( python2_7 python3_{5,6} pypy pypy3 )
6
PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} )
7 7

  
8 8
inherit distutils-r1
9 9

  
......
18 18
RESTRICT="!test? ( test )"
19 19

  
20 20
DEPEND="
21
	dev-python/setuptools[${PYTHON_USEDEP}]
21 22
	doc? ( dev-python/sphinx )
22 23
	test? ( >=dev-python/pytest-2.2.0[${PYTHON_USEDEP}] )"
23 24

  
24 25
PATCHES=(
25
	"${FILESDIR}"/1.10.0-no-setuptools.patch
26 26
	"${FILESDIR}"/1.9.0-mapping.patch
27 27
)
28 28

  
29
python_prepare_all() {
30
	# https://bitbucket.org/gutworth/six/issues/139/
31
	sed \
32
		-e 's:test_assertCountEqual:_&:g' \
33
		-e 's:test_assertRegex:_&:g' \
34
		-e 's:test_assertRaisesRegex:_&:g' \
35
		-i test_six.py || die
36
	distutils-r1_python_prepare_all
37
}
38

  
39 29
python_compile_all() {
40 30
	use doc && emake -C documentation html
41 31
}
......
45 35
}
46 36

  
47 37
python_install_all() {
48
	use doc && local HTML_DOCS=( documentation/_build/html/ )
38
	use doc && local HTML_DOCS=( documentation/_build/html/. )
49 39
	distutils-r1_python_install_all
50 40
}
51

  
52
# Remove pkg_preinst in the next version bump
53
pkg_preinst() {
54
	# https://bugs.gentoo.org/585146
55
	cd "${HOME}" || die
56

  
57
	_cleanup() {
58
		local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())")
59
		local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
60
		if [[ -d ${egginfo} ]]; then
61
			echo rm -r "${egginfo}"
62
			rm -r "${egginfo}" || die "Failed to remove egg-info directory"
63
		fi
64
	}
65
	python_foreach_impl _cleanup
66
}
Thank you!