1 |
commit: d528c4bfb9d0b293619dbe0918dffe171f29aaee |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 2 13:59:33 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 2 14:02:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d528c4bf |
7 |
|
8 |
dev-python/jaraco-logging: bump to 2.0, switches to pkgutil |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.16 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/jaraco-logging/Manifest | 1 + |
14 |
.../jaraco-logging/jaraco-logging-2.0.ebuild | 60 ++++++++++++++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/jaraco-logging/Manifest b/dev-python/jaraco-logging/Manifest |
18 |
index a868354b9a8..74af9db8ac6 100644 |
19 |
--- a/dev-python/jaraco-logging/Manifest |
20 |
+++ b/dev-python/jaraco-logging/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST jaraco.logging-1.5.2.tar.gz 7135 BLAKE2B 5235566df80008270f2f28101ab5df1d7fbc1446f138eb4cb851c9bb464b741c0ebb8528d3502130b5c557f30214ec27ce1ea563e09e78776e22d37811da21b5 SHA512 3299adc9c9ca6113198cddbc34147afe1bf453edee16a2d6bfcce64e63deeaff7f87beb74ff44f092435f3433a921b19167fb45778dce444512807357bce1661 |
23 |
DIST jaraco.logging-1.5.tar.gz 5707 BLAKE2B 853d2747ab92754de4480871355180a33a7a6cbf69fc3d32ba489ecac27dc55ad92d94bfb84e411ee13400d82d162ea400be1027c3002f317a97e00b849484ec SHA512 18f267bd0c764f38ff5223d4fd6e08d7d9fa568691db285155d7b955c71439474fd84edd61b20d57f6eac77394d4b3ddf9b35d8e6ba08a2db5dd4b2ada6e0d68 |
24 |
+DIST jaraco.logging-2.0.tar.gz 10356 BLAKE2B a7522fa9895784a68c8c0af265ad5a82ba27f69e90a17ba18b4a579e1ca5785ad11b7718273adb33661e45e780876b885b581af1b4518ef5322c077ed76242ba SHA512 9262575c3071f78ded2284ebef3a1a80c8ffd60addecf9b215db04471672bd892f6c6bd06a84f9a82e872adf31d45d4eb3faa2884815fcce608840821f49954e |
25 |
|
26 |
diff --git a/dev-python/jaraco-logging/jaraco-logging-2.0.ebuild b/dev-python/jaraco-logging/jaraco-logging-2.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..392aac0a28e |
29 |
--- /dev/null |
30 |
+++ b/dev-python/jaraco-logging/jaraco-logging-2.0.ebuild |
31 |
@@ -0,0 +1,60 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( pypy3 python{2_7,3_{5,6,7}} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+MY_PN="${PN/-/.}" |
42 |
+DESCRIPTION="Additional facilities to supplement Python's stdlib logging module" |
43 |
+HOMEPAGE="https://github.com/jaraco/jaraco.logging" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="doc test" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] |
53 |
+ dev-python/six[${PYTHON_USEDEP}] |
54 |
+ dev-python/tempora[${PYTHON_USEDEP}] |
55 |
+" |
56 |
+DEPEND=" |
57 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
59 |
+ doc? ( |
60 |
+ >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] |
62 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
63 |
+ ) |
64 |
+ test? ( |
65 |
+ ${RDEPEND} |
66 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
71 |
+ |
72 |
+python_compile_all() { |
73 |
+ if use doc; then |
74 |
+ cd docs || die |
75 |
+ sphinx-build . _build/html || die |
76 |
+ HTML_DOCS=( docs/_build/html/. ) |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ # Override pytest options to skip flake8 |
82 |
+ PYTHONPATH=. pytest -v --override-ini="addopts=--doctest-modules" \ |
83 |
+ || die "tests failed with ${EPYTHON}" |
84 |
+} |
85 |
+ |
86 |
+# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages |
87 |
+python_install() { |
88 |
+ rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die |
89 |
+ # note: eclass may default to --skip-build in the future |
90 |
+ distutils-r1_python_install --skip-build |
91 |
+} |