Diff pybugz-0.13-r2 with a pybugz-9999

/usr/portage/www-client/pybugz/pybugz-9999.ebuild 2024-12-25 14:59:52.843270184 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..11} )
6
DISTUTILS_USE_PEP517=flit
7
PYTHON_COMPAT=( python3_{10..13} )
7 8
PYTHON_REQ_USE="readline(+),ssl(+)"
8 9

  
9
if [ "${PV}" = "9999" ]; then
10
if [[ ${PV} = "9999" ]]; then
10 11
	EGIT_REPO_URI="https://github.com/williamh/pybugz.git"
11 12
	inherit git-r3
12 13
else
13 14
	SRC_URI="https://github.com/williamh/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
14
	KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
15
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
15 16
fi
16 17

  
17
inherit bash-completion-r1 distutils-r1
18
inherit distutils-r1
18 19

  
19 20
DESCRIPTION="Command line interface to (Gentoo) Bugzilla"
20 21
HOMEPAGE="https://github.com/williamh/pybugz"
21 22

  
22 23
LICENSE="GPL-2"
23 24
SLOT="0"
25
RESTRICT="test"
26
PROPERTIES="test_network"
24 27

  
25
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
26
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
27

  
28
python_install_all() {
29
	distutils-r1_python_install_all
30
	newbashcomp contrib/bash-completion bugz
31

  
32
	insinto /usr/share/zsh/site-functions
33
	newins contrib/zsh-completion _pybugz
28
python_test() {
29
	# not the highest quality of test, but checks many parts of the code work.
30
	# good enough for PYTHON_COMPAT checks.
31
	"${EPYTHON}" lbugz get 784263 || die "Tests failed with ${EPYTHON}"
34 32
}
Thank you!