1 |
commit: 1db32248868329eea9b57247b9eb2e3ebc383b37 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 31 13:30:23 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 31 14:14:37 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1db32248 |
7 |
|
8 |
dev-python/jaraco-logging: bump to 3.0.0, drops <Py3.6, add Py3.8 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/jaraco-logging/Manifest | 1 + |
14 |
.../jaraco-logging/jaraco-logging-3.0.0.ebuild | 63 ++++++++++++++++++++++ |
15 |
2 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/jaraco-logging/Manifest b/dev-python/jaraco-logging/Manifest |
18 |
index 4aa6976fa1e..cbb953c7e1a 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-2.0.tar.gz 10356 BLAKE2B a7522fa9895784a68c8c0af265ad5a82ba27f69e90a17ba18b4a579e1ca5785ad11b7718273adb33661e45e780876b885b581af1b4518ef5322c077ed76242ba SHA512 9262575c3071f78ded2284ebef3a1a80c8ffd60addecf9b215db04471672bd892f6c6bd06a84f9a82e872adf31d45d4eb3faa2884815fcce608840821f49954e |
24 |
+DIST jaraco.logging-3.0.0.tar.gz 10739 BLAKE2B c5cad0b6d7702a1216869dd0cd388d51a0a8e7bd24000108ef818623b54d23ce1adf0de2e017b869d764342484bf25d676ee18af9647b82964933ebb184cec0e SHA512 bc0edeef6223d0eb78110d51159a70afd16542e830e3cd37dec7628e582bce44218cd7669c03c41125db9824b6fc774f608dd7f6540224659f4dc2f1927d681c |
25 |
|
26 |
diff --git a/dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild b/dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2c8fcf0eb31 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild |
31 |
@@ -0,0 +1,63 @@ |
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 python3_{6,7,8} ) |
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 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+# TODO: remove six |
53 |
+# https://github.com/jaraco/jaraco.logging/pull/1 |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] |
56 |
+ dev-python/six[${PYTHON_USEDEP}] |
57 |
+ dev-python/tempora[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
61 |
+ doc? ( |
62 |
+ >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] |
64 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
65 |
+ ) |
66 |
+ test? ( |
67 |
+ ${RDEPEND} |
68 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
73 |
+ |
74 |
+python_compile_all() { |
75 |
+ if use doc; then |
76 |
+ # conf.py looks for '../CHANGES.rst' |
77 |
+ cd docs || die |
78 |
+ sphinx-build . _build/html || die |
79 |
+ HTML_DOCS=( docs/_build/html/. ) |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+python_test() { |
84 |
+ # Override pytest options to skip flake8 |
85 |
+ PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \ |
86 |
+ || die "tests failed with ${EPYTHON}" |
87 |
+} |
88 |
+ |
89 |
+# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages |
90 |
+python_install() { |
91 |
+ rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die |
92 |
+ # note: eclass may default to --skip-build in the future |
93 |
+ distutils-r1_python_install --skip-build |
94 |
+} |