public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-classes/
Date: Fri, 22 Nov 2019 00:20:55 +0000 (UTC)	[thread overview]
Message-ID: <1574380508.795ff18a06087adb7f1d333fc5955324718b63ee.chutzpah@gentoo> (raw)

commit:     795ff18a06087adb7f1d333fc5955324718b63ee
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Thu Nov 21 18:32:44 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Nov 21 23:55:08 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=795ff18a

dev-python/jaraco-classes: Revbump, add py38

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../jaraco-classes/jaraco-classes-2.0-r1.ebuild    | 75 ++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/dev-python/jaraco-classes/jaraco-classes-2.0-r1.ebuild b/dev-python/jaraco-classes/jaraco-classes-2.0-r1.ebuild
new file mode 100644
index 00000000000..abe398f82ad
--- /dev/null
+++ b/dev-python/jaraco-classes/jaraco-classes-2.0-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Tests fail with pypy
+PYTHON_COMPAT=( pypy3 python{2_7,3_{5,6,7,8}} )
+
+inherit distutils-r1
+
+MY_PN="${PN/-/.}"
+DESCRIPTION="Classes used by other projects by developer jaraco"
+HOMEPAGE="https://github.com/jaraco/jaraco.classes"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc test"
+
+RDEPEND="
+	>=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}]
+	dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="
+	dev-python/setuptools[${PYTHON_USEDEP}]
+	doc? ( $(python_gen_any_dep '
+			>=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
+			>=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
+			dev-python/sphinx[${PYTHON_USEDEP}]')
+	)
+	test? (
+		${RDEPEND}
+		>=dev-python/pytest-2.8[${PYTHON_USEDEP}]
+	)
+"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RESTRICT="!test? ( test )"
+
+python_check_deps() {
+	use doc || return 0
+	has_version ">=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]" && \
+		has_version ">=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]" && \
+		has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
+python_prepare_all() {
+	# avoid a setuptools_scm dependency
+	sed -i "s:use_scm_version=True:version='${PV}':" setup.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+	if use doc; then
+			cd docs || die
+			sphinx-build . _build/html || die
+			HTML_DOCS=( docs/_build/html/. )
+	fi
+}
+
+python_test() {
+	# Avoid ImportMismatchError, override pytest options to skip flake8
+	pytest -vv "${BUILD_DIR}"/lib --override-ini="addopts=--doctest-modules" \
+		|| die "tests failed with ${EPYTHON}"
+}
+
+# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages
+python_install() {
+	rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die
+	# note: eclass may default to --skip-build in the future
+	distutils-r1_python_install --skip-build
+}


             reply	other threads:[~2019-11-22  0:21 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-22  0:20 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-15  7:12 [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-classes/ Michał Górny
2024-10-14 12:42 Michał Górny
2024-07-01  6:18 Arthur Zamarin
2024-05-08 18:31 Michał Górny
2024-04-20  9:48 Michał Górny
2024-04-20  9:45 Michał Górny
2024-03-31 19:07 Arthur Zamarin
2024-02-24  9:50 Michał Górny
2024-02-24  9:49 Michał Górny
2024-02-08  4:22 Michał Górny
2023-08-11 19:08 Michał Górny
2023-08-11 19:03 Arthur Zamarin
2023-07-09  3:26 Michał Górny
2023-05-23 15:42 Michał Górny
2023-03-21 16:45 Michał Górny
2023-02-12 19:05 Michał Górny
2023-02-07  9:26 Michał Górny
2022-11-03 19:41 Arthur Zamarin
2022-11-03 19:27 Arthur Zamarin
2022-09-27  2:04 Michał Górny
2022-08-29 10:37 Michał Górny
2022-08-13 10:57 Arthur Zamarin
2022-08-13 10:53 Arthur Zamarin
2022-07-13  8:10 Michał Górny
2022-06-10  4:18 Michał Górny
2022-06-10  3:09 Sam James
2022-05-09 20:38 Michał Górny
2022-05-09 15:01 Michał Górny
2022-04-25 18:41 Sam James
2022-02-07 21:15 James Le Cuirot
2022-02-04 12:04 Michał Górny
2021-07-28 23:38 Marek Szuba
2021-05-06 14:44 Michał Górny
2021-03-25 19:09 Michał Górny
2021-03-25 14:23 Sam James
2021-02-24 22:30 Michał Górny
2021-02-24 22:05 Sam James
2021-02-21 20:12 Louis Sautier
2021-01-25  8:09 Michał Górny
2020-11-28 14:21 Sam James
2020-11-28 14:21 Sam James
2020-09-20 15:38 Michał Górny
2020-09-06 17:35 Sam James
2020-07-28 17:28 Sergei Trofimovich
2020-07-13 23:13 Sam James
2020-07-06 11:57 Michał Górny
2020-07-05 15:16 Michał Górny
2020-06-29 13:40 Agostino Sarubbo
2020-06-22 19:05 Mart Raudsepp
2020-05-27  7:16 Michał Górny
2020-05-16 11:25 Mikle Kolyada
2020-02-08 11:33 Sergei Trofimovich
2020-01-05 12:48 Sergei Trofimovich
2019-12-31 15:18 Louis Sautier
2019-12-12  2:19 Georgy Yakovlev
2019-12-08 23:31 Sergei Trofimovich
2019-12-04 19:44 Sergei Trofimovich
2019-11-27 12:59 Mikle Kolyada
2019-11-25 12:35 Michał Górny
2019-11-25  7:56 Patrick McLean
2019-07-02 21:58 Louis Sautier
2019-04-17 18:07 Aaron Bauman
2018-07-24 21:22 Louis Sautier
2018-06-25 10:40 Jason Zaman
2018-06-12  8:46 Patrice Clement
2018-06-12  8:46 Patrice Clement
2017-06-17 17:24 Agostino Sarubbo
2017-06-17 15:36 Agostino Sarubbo
2016-06-27 12:49 Göktürk Yüksek
2016-06-27 12:49 Göktürk Yüksek
2016-01-20 14:45 Patrice Clement
2015-12-29 13:58 Ian Delaney

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=1574380508.795ff18a06087adb7f1d333fc5955324718b63ee.chutzpah@gentoo \
    --to=chutzpah@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