Сравнение pyxattr-0.6.0-r3 с pyxattr-0.8.1

/usr/portage/dev-python/pyxattr/pyxattr-0.8.1.ebuild 2023-10-09 14:52:30.364368372 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
5
PYTHON_COMPAT=( python2_7 )
4
EAPI=8
6 5

  
7
inherit distutils-r1 eutils
6
DISTUTILS_EXT=1
7
DISTUTILS_USE_PEP517=setuptools
8
PYTHON_COMPAT=( python3_{9..11} pypy3 )
9

  
10
inherit distutils-r1 pypi
8 11

  
9 12
DESCRIPTION="Python interface to xattr"
10
HOMEPAGE="https://pyxattr.k1024.org/"
11
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
12
	https://pyxattr.k1024.org/downloads/${P}.tar.gz"
13
HOMEPAGE="
14
	https://pyxattr.k1024.org/
15
	https://github.com/iustin/pyxattr/
16
	https://pypi.org/project/pyxattr/
17
"
13 18

  
14 19
LICENSE="LGPL-2.1"
15
SLOT="2.7"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux"
17
IUSE="doc test"
18
RESTRICT="!test? ( test )"
19

  
20
RDEPEND="sys-apps/attr
21
	!dev-python/pyxattr:0[python_targets_python2_7]"
22
DEPEND="${RDEPEND}
23
	dev-python/setuptools[${PYTHON_USEDEP}]
24
	doc? ( >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] )
25
	test? ( dev-python/nose[${PYTHON_USEDEP}] )"
26

  
27
PATCHES=(
28
	"${FILESDIR}/${PN}-0.6.0-xattr_header.patch"
29
)
20
SLOT="0"
21
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
22

  
23
DEPEND="
24
	sys-apps/attr:=
25
"
26
RDEPEND="
27
	${DEPEND}
28
"
29

  
30
distutils_enable_tests pytest
31
distutils_enable_sphinx doc dev-python/recommonmark
30 32

  
31 33
python_prepare_all() {
32 34
	sed -i -e 's:, "-Werror"::' setup.py || die
......
36 38

  
37 39
	distutils-r1_python_prepare_all
38 40
}
39

  
40
python_compile_all() {
41
	use doc && emake doc
42
}
43

  
44
src_test() {
45
	# Perform the tests in /var/tmp; that location is more likely
46
	# to have xattr support than /tmp which is often tmpfs.
47
	local -x TEST_DIR="${TEST_DIR:-/var/tmp}"
48
	# Ignore selinux attributes by default, bug #503946.
49
	local -x TEST_IGNORE_XATTRS="${TEST_IGNORE_XATTRS:-security.selinux}"
50

  
51
	einfo "Please note that the tests fail if xattrs are not supported"
52
	einfo "by the filesystem used for ${TEST_DIR}."
53
	einfo
54
	einfo "The location for tests can be overriden using TEST_DIR variable:"
55
	einfo "  $ export TEST_DIR=/my/test/place"
56
	einfo
57
	einfo "Additionally, TEST_IGNORE_XATTRS can be set to control which"
58
	einfo "external attributes are ignored by the tests."
59
	einfo "See https://bugs.gentoo.org/503946 for details."
60
	einfo
61
	distutils-r1_src_test
62
}
63

  
64
python_test() {
65
	nosetests -v || die "Tests fail with ${EPYTHON}"
66
}
67

  
68
python_install_all() {
69
	use doc && local HTML_DOCS=( doc/html/. )
70
	distutils-r1_python_install_all
71
	rm -r ${D}/usr/share
72
}
Спасибо!