public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Louis Sautier" <sbraz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-classes/
Date: Tue,  2 Jul 2019 21:58:15 +0000 (UTC)	[thread overview]
Message-ID: <1562104675.6c95f223c35aae386592b2d97a038fb0439775a2.sbraz@gentoo> (raw)

commit:     6c95f223c35aae386592b2d97a038fb0439775a2
Author:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  2 21:54:46 2019 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Tue Jul  2 21:57:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c95f223

dev-python/jaraco-classes: bump to 2.0, switches to pkgutil

Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>

 dev-python/jaraco-classes/Manifest                 |  1 +
 .../jaraco-classes/jaraco-classes-2.0.ebuild       | 60 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/dev-python/jaraco-classes/Manifest b/dev-python/jaraco-classes/Manifest
index 3ea0e7e35ed..bbee372ff5b 100644
--- a/dev-python/jaraco-classes/Manifest
+++ b/dev-python/jaraco-classes/Manifest
@@ -1,2 +1,3 @@
 DIST jaraco.classes-1.4.tar.gz 5171 BLAKE2B 193333a9a543328b6f781888ba7a6ae3cf0b1ae7cab078c9da65a1ed26cc71164aa06a31f2495b62c7d7a388b6fc075e97c7af58f7d67bc0ecc1785f9c7056dd SHA512 d434b470424c104f91e9a4a5e3a1f2109b919a35edf45540ad1ef8600f0b10864f32aefb411d747e13b5d99ba06601ea7abe5032e24e5dc6b25254b4e68f8a89
 DIST jaraco.classes-1.5.tar.gz 6710 BLAKE2B 884e756c7bff272a0b35d9ef8cd30538eba793e6d838b7bd409a59fde9539776906aeb95a456f7095178ce0623e20634fe1a09a8f3515d4b661bf702480cd934 SHA512 8fe3d40863424547e5396fd6a2b4ef3f27a92185ca82206bb88de2716419a9c2dc917fc945c732d5dab1a1795727a12014e0bbaceee7834896351de05491f99c
+DIST jaraco.classes-2.0.tar.gz 9911 BLAKE2B aa5e5c90f16c9536239ed61e6dccbc426244c98a33a944de32239bd42a0a4944e5df3529cfd525e05cf276a4a4b028edcec734006b549053ac8817032f52b2ea SHA512 83c9a570f951ef6c3708243dce6397cfbfe963db5920550ac807878a69860b34831af5f277f956fd0b327d85462676fd6386a22d6d97c7616e01ca81d7ace694

diff --git a/dev-python/jaraco-classes/jaraco-classes-2.0.ebuild b/dev-python/jaraco-classes/jaraco-classes-2.0.ebuild
new file mode 100644
index 00000000000..dfe803bba47
--- /dev/null
+++ b/dev-python/jaraco-classes/jaraco-classes-2.0.ebuild
@@ -0,0 +1,60 @@
+# 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}} )
+
+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}]
+	>=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
+	doc? (
+		>=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}"
+
+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-07-02 21:58 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-02 21:58 Louis Sautier [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-11-22  0:20 Patrick McLean
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=1562104675.6c95f223c35aae386592b2d97a038fb0439775a2.sbraz@gentoo \
    --to=sbraz@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