public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyxattr/
Date: Sat,  2 Nov 2019 04:45:15 +0000 (UTC)	[thread overview]
Message-ID: <1572669906.e13f9e7ace62bfea1c548e6a1881e52ebc887609.robbat2@gentoo> (raw)

commit:     e13f9e7ace62bfea1c548e6a1881e52ebc887609
Author:     Jeffrey Lin <jeffrey <AT> icurse <DOT> nl>
AuthorDate: Sun Oct 20 21:33:39 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 04:45:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13f9e7a

dev-python/pyxattr: add pypy3 to PYTHON_COMPAT

Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Jeffrey Lin <jeffrey <AT> icurse.nl>
(cherry picked from commit 61a15e5955cc63fcc94598977ebfa26780459ea1)
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13363

 dev-python/pyxattr/pyxattr-0.6.1-r1.ebuild | 66 ++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/dev-python/pyxattr/pyxattr-0.6.1-r1.ebuild b/dev-python/pyxattr/pyxattr-0.6.1-r1.ebuild
new file mode 100644
index 00000000000..5ce00c43a28
--- /dev/null
+++ b/dev-python/pyxattr/pyxattr-0.6.1-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Python interface to xattr"
+HOMEPAGE="https://pyxattr.k1024.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+	https://pyxattr.k1024.org/downloads/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sys-apps/attr"
+DEPEND="${RDEPEND}
+	dev-python/setuptools[${PYTHON_USEDEP}]
+	doc? ( >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] )
+	test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+	sed -i -e 's:, "-Werror"::' setup.py || die
+	# Bug 548486
+	sed -e "s:html_theme = 'default':html_theme = 'classic':" \
+		-i doc/conf.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+	use doc && emake doc
+}
+
+src_test() {
+	# Perform the tests in /var/tmp; that location is more likely
+	# to have xattr support than /tmp which is often tmpfs.
+	local -x TEST_DIR="${TEST_DIR:-/var/tmp}"
+	# Ignore selinux attributes by default, bug #503946.
+	local -x TEST_IGNORE_XATTRS="${TEST_IGNORE_XATTRS:-security.selinux}"
+
+	einfo "Please note that the tests fail if xattrs are not supported"
+	einfo "by the filesystem used for ${TEST_DIR}."
+	einfo
+	einfo "The location for tests can be overriden using TEST_DIR variable:"
+	einfo "  $ export TEST_DIR=/my/test/place"
+	einfo
+	einfo "Additionally, TEST_IGNORE_XATTRS can be set to control which"
+	einfo "external attributes are ignored by the tests."
+	einfo "See https://bugs.gentoo.org/503946 for details."
+	einfo
+	distutils-r1_src_test
+}
+
+python_test() {
+	nosetests -v || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+	use doc && local HTML_DOCS=( doc/html/. )
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2019-11-02  4:45 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-02  4:45 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-27 18:02 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyxattr/ Michał Górny
2023-07-15 12:29 Michał Górny
2023-07-15 11:50 Arthur Zamarin
2023-06-03 19:45 Arthur Zamarin
2023-06-03 18:26 Arthur Zamarin
2023-06-03 18:11 Arthur Zamarin
2023-06-03 18:09 Arthur Zamarin
2023-06-03 18:09 Arthur Zamarin
2023-06-03 18:02 Arthur Zamarin
2023-05-04 16:56 Michał Górny
2023-04-18  2:55 Michał Górny
2023-03-16  4:07 Michał Górny
2023-01-14  8:22 Arthur Zamarin
2023-01-14  8:21 Arthur Zamarin
2023-01-13 18:51 Arthur Zamarin
2023-01-13 18:51 Arthur Zamarin
2023-01-13 16:31 Arthur Zamarin
2023-01-13 14:50 Sam James
2023-01-13 14:50 Sam James
2023-01-13 14:50 Sam James
2022-12-14  6:31 Michał Górny
2022-08-10 13:05 Sam James
2022-08-10 13:05 Sam James
2022-02-23  8:25 Yixun Lan
2021-05-06 11:44 Michał Górny
2021-03-06 22:03 Michał Górny
2021-03-06 21:38 Sergei Trofimovich
2021-03-06 21:38 Sergei Trofimovich
2021-03-04  6:09 Sam James
2021-03-03 19:59 Sam James
2021-03-02  7:39 Sam James
2021-03-02  7:38 Sam James
2021-03-02  1:59 Sam James
2021-03-02  1:38 Sam James
2020-12-31  6:07 Sam James
2020-08-22  0:26 Matthew Thode
2020-05-27  7:45 Michał Górny
2020-05-04 11:49 Michał Górny
2020-04-24  5:52 Michał Górny
2020-04-14  7:28 Sergei Trofimovich
2020-03-25 15:27 Agostino Sarubbo
2020-03-25 13:27 Agostino Sarubbo
2020-03-25 13:12 Agostino Sarubbo
2020-03-25 12:36 Agostino Sarubbo
2020-03-25 12:23 Agostino Sarubbo
2019-12-11 22:03 Aaron Bauman
2019-11-18  9:55 Michał Górny
2019-11-18  9:55 Michał Górny
2018-07-25  7:51 Lars Wendler
2018-07-25  7:51 Lars Wendler
2018-07-18 21:48 Michał Górny
2018-07-11 13:24 Mikle Kolyada
2018-07-01 14:41 Mikle Kolyada
2018-06-28 12:54 Mart Raudsepp
2018-06-27 22:22 Sergei Trofimovich
2018-06-27 22:15 Sergei Trofimovich
2018-06-27 21:54 Sergei Trofimovich
2018-06-27 10:05 Tobias Klausmann
2018-06-26 22:17 Sergei Trofimovich
2018-06-26  2:04 Aaron Bauman
2018-06-25 23:20 Thomas Deutschmann
2018-04-24 16:09 Michał Górny
2018-04-24 16:09 Michał Górny
2018-04-24 16:09 Michał Górny
2018-04-24 16:09 Michał Górny
2018-04-24 16:09 Michał Górny
2018-03-17 10:51 Michał Górny
2017-07-30  9:15 Michał Górny
2017-05-15 12:37 Manuel Rüger
2017-03-10 15:53 Manuel Rüger
2017-02-03  4:35 Mike Frysinger
2017-01-30 18:56 Lars Wendler
2017-01-30 18:56 Lars Wendler
2016-03-27 20:26 David Seifert
2016-03-27 20:26 David Seifert
2016-03-27 19:04 David Seifert
2016-03-17 10:50 Agostino Sarubbo
2016-02-29  8:46 Stephen Klimaszewski
2016-01-17 17:02 Agostino Sarubbo
2016-01-11  9:07 Agostino Sarubbo
2016-01-10 10:34 Agostino Sarubbo
2016-01-09 16:17 Markus Meier
2016-01-09  6:43 Agostino Sarubbo
2016-01-04  6:13 Jeroen Roovers
2016-01-03 11:54 Agostino Sarubbo
2015-10-16 15:30 Mike Frysinger
2015-10-14 13:58 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1572669906.e13f9e7ace62bfea1c548e6a1881e52ebc887609.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox