1 |
commit: 299e575c48a138f1074889bb2c47e87abbb874a1 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 2 07:27:15 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 2 07:31:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=299e575c |
7 |
|
8 |
dev-python/loguru: add 0.6.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832534 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-python/loguru/Manifest | 1 + |
14 |
dev-python/loguru/files/0.6.0-typos.patch | 45 +++++++++++++++++++++++++++++++ |
15 |
dev-python/loguru/loguru-0.6.0.ebuild | 24 +++++++++++++++++ |
16 |
3 files changed, 70 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/loguru/Manifest b/dev-python/loguru/Manifest |
19 |
index 94a377a9b3a4..28caff1daff7 100644 |
20 |
--- a/dev-python/loguru/Manifest |
21 |
+++ b/dev-python/loguru/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST loguru-0.5.3.tar.gz 413858 BLAKE2B 995df880138e09ae80c33c1c96aea36acc635c8915687ca708b708eb4a92722908da4c5c4b03e8dd01ef1a3be560c072821405010f03e131781c4f3dbb7bd9cf SHA512 d26e9fcc79b6eb3437b53a03b8200679bdda8de2bced7710fb252ff3c19622fea48c20c8258a62bcd625bd18bfee080ed0a182876d91f34e1f2ef3524ac9bb46 |
24 |
+DIST loguru-0.6.0.tar.gz 417660 BLAKE2B a7b7d95ffcf652769503db3423768ff85a4fa4898f0e2b155d96ce0c42fa7f24255f9dc49ba62e8a4f19bb3b7cc8b374580fe0965c9683b14d9bcea9866e71a5 SHA512 6ca7087cde3b4ce11255e31af988e5e118a7ebfbb338b97ebd6e7e4af716f0301c0180a59b18c879fd799c25802b428411b868290b7593212f06d70bcbd6a9ca |
25 |
|
26 |
diff --git a/dev-python/loguru/files/0.6.0-typos.patch b/dev-python/loguru/files/0.6.0-typos.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..ed9fecc91bfd |
29 |
--- /dev/null |
30 |
+++ b/dev-python/loguru/files/0.6.0-typos.patch |
31 |
@@ -0,0 +1,45 @@ |
32 |
+From 8b820c7a138f0b320311c85e8ea6e1c017576000 Mon Sep 17 00:00:00 2001 |
33 |
+From: Delgan <4193924+Delgan@××××××××××××××××××××.com> |
34 |
+Date: Sat, 29 Jan 2022 14:50:59 +0100 |
35 |
+Subject: [PATCH 1/2] Fix small typo in CHANGELOG.md |
36 |
+ |
37 |
+--- |
38 |
+ CHANGELOG.rst | 2 +- |
39 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
40 |
+ |
41 |
+diff --git a/CHANGELOG.rst b/CHANGELOG.rst |
42 |
+index 4c57fad..1d08f9d 100644 |
43 |
+--- a/CHANGELOG.rst |
44 |
++++ b/CHANGELOG.rst |
45 |
+@@ -184,7 +184,7 @@ Initial release. |
46 |
+ |
47 |
+ |
48 |
+ .. _Unreleased: https://github.com/delgan/loguru/compare/0.6.0...master |
49 |
+-.. -0.6.0: https://github.com/delgan/loguru/releases/tag/0.6.0 |
50 |
++.. _0.6.0: https://github.com/delgan/loguru/releases/tag/0.6.0 |
51 |
+ .. _0.5.3: https://github.com/delgan/loguru/releases/tag/0.5.3 |
52 |
+ .. _0.5.2: https://github.com/delgan/loguru/releases/tag/0.5.2 |
53 |
+ .. _0.5.1: https://github.com/delgan/loguru/releases/tag/0.5.1 |
54 |
+ |
55 |
+From ee1ce85a047fc396276e10ae92b72610cbafd57b Mon Sep 17 00:00:00 2001 |
56 |
+From: Delgan <4193924+Delgan@××××××××××××××××××××.com> |
57 |
+Date: Sun, 30 Jan 2022 20:28:37 +0100 |
58 |
+Subject: [PATCH 2/2] Fix another small typo in CHANGELOG.rst |
59 |
+ |
60 |
+--- |
61 |
+ CHANGELOG.rst | 2 +- |
62 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
63 |
+ |
64 |
+diff --git a/CHANGELOG.rst b/CHANGELOG.rst |
65 |
+index 1d08f9d..6e1c182 100644 |
66 |
+--- a/CHANGELOG.rst |
67 |
++++ b/CHANGELOG.rst |
68 |
+@@ -1,7 +1,7 @@ |
69 |
+ `0.6.0`_ (2022-01-29) |
70 |
+ ===================== |
71 |
+ |
72 |
+-- Remove internal use of ``pickle.loads()`` considered as a security vulnerability referenced as `CVE-2022-0329 https://nvd.nist.gov/vuln/detail/CVE-2022-0329`_ (`#563 <https://github.com/Delgan/loguru/issues/563>`_). |
73 |
++- Remove internal use of ``pickle.loads()`` considered as a security vulnerability referenced as `CVE-2022-0329 <https://nvd.nist.gov/vuln/detail/CVE-2022-0329>`_ (`#563 <https://github.com/Delgan/loguru/issues/563>`_). |
74 |
+ - Modify coroutine sink to make it discard log messages when ``loop=None`` and no event loop is running (due to internally using ``asyncio.get_running_loop()`` in place of ``asyncio.get_event_loop()``). |
75 |
+ - Remove the possibility to add a coroutine sink with ``enqueue=True`` if ``loop=None`` and no event loop is running. |
76 |
+ - Change default encoding of file sink to be ``utf8`` instead of ``locale.getpreferredencoding()`` (`#339 <https://github.com/Delgan/loguru/issues/339>`_). |
77 |
|
78 |
diff --git a/dev-python/loguru/loguru-0.6.0.ebuild b/dev-python/loguru/loguru-0.6.0.ebuild |
79 |
new file mode 100644 |
80 |
index 000000000000..df963952b368 |
81 |
--- /dev/null |
82 |
+++ b/dev-python/loguru/loguru-0.6.0.ebuild |
83 |
@@ -0,0 +1,24 @@ |
84 |
+# Copyright 2019-2022 Gentoo Authors |
85 |
+# Distributed under the terms of the GNU General Public License v2 |
86 |
+ |
87 |
+EAPI=8 |
88 |
+ |
89 |
+PYTHON_COMPAT=( python3_{8..10} ) |
90 |
+ |
91 |
+inherit distutils-r1 |
92 |
+ |
93 |
+DESCRIPTION="Python logging made (stupidly) simple" |
94 |
+HOMEPAGE="https://github.com/Delgan/loguru" |
95 |
+SRC_URI="https://github.com/Delgan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
96 |
+ |
97 |
+LICENSE="MIT" |
98 |
+SLOT="0" |
99 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
100 |
+ |
101 |
+RDEPEND="$(python_gen_cond_dep 'dev-python/aiocontextvars[${PYTHON_USEDEP}]' 'python3_6')" |
102 |
+BDEPEND="test? ( >=dev-python/colorama-0.3.4[${PYTHON_USEDEP}] )" |
103 |
+# filesystem buffering tests may fail |
104 |
+# on tmpfs with 64k PAGESZ, but pass fine on ext4 |
105 |
+distutils_enable_tests pytest |
106 |
+ |
107 |
+PATCHES=( "${FILESDIR}/0.6.0-typos.patch" ) |