summaryrefslogtreecommitdiff
path: root/dev-python/loguru
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
commit4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch)
tree356496503d52354aa6d9f2d36126302fed5f3a73 /dev-python/loguru
parentfcc5224904648a8e6eb528d7603154160a20022f (diff)
gentoo resync : 20.03.2022
Diffstat (limited to 'dev-python/loguru')
-rw-r--r--dev-python/loguru/Manifest3
-rw-r--r--dev-python/loguru/files/0.6.0-typos.patch45
-rw-r--r--dev-python/loguru/loguru-0.6.0.ebuild24
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/loguru/Manifest b/dev-python/loguru/Manifest
index 2e7b05d0cddb..2dade522e7e5 100644
--- a/dev-python/loguru/Manifest
+++ b/dev-python/loguru/Manifest
@@ -1,3 +1,6 @@
+AUX 0.6.0-typos.patch 2236 BLAKE2B 8eafa371eec73761664e8f92a6abbc6df011f4ab8a9afafddd19b804611936c95d2cc05af97f1e709dff62baedbc16f10ce7326fa3450e8ca45c0011ab2f0ed9 SHA512 0c5e6d225eabeda3b791679c426bf8393b034cce797462264d4d39ccbc630641db978f0cd8f7844b0fb5b983bc5be8a4c8174f9da703936f3d5b4f9b55911677
DIST loguru-0.5.3.tar.gz 413858 BLAKE2B 995df880138e09ae80c33c1c96aea36acc635c8915687ca708b708eb4a92722908da4c5c4b03e8dd01ef1a3be560c072821405010f03e131781c4f3dbb7bd9cf SHA512 d26e9fcc79b6eb3437b53a03b8200679bdda8de2bced7710fb252ff3c19622fea48c20c8258a62bcd625bd18bfee080ed0a182876d91f34e1f2ef3524ac9bb46
+DIST loguru-0.6.0.tar.gz 417660 BLAKE2B a7b7d95ffcf652769503db3423768ff85a4fa4898f0e2b155d96ce0c42fa7f24255f9dc49ba62e8a4f19bb3b7cc8b374580fe0965c9683b14d9bcea9866e71a5 SHA512 6ca7087cde3b4ce11255e31af988e5e118a7ebfbb338b97ebd6e7e4af716f0301c0180a59b18c879fd799c25802b428411b868290b7593212f06d70bcbd6a9ca
EBUILD loguru-0.5.3.ebuild 674 BLAKE2B a375e15b823e44f0d2dac5dcd46203455553b1d7371ebec26be7b713f3aea7f219a5aa4fb5cd75145d63f33e74c28a20ebb4adede239d787d0616b7ff350639a SHA512 2a681fbb7fbacef1e2c0d211c28ec1acc55f40de257d91ff0b441938c8a7e7ffd9d972afbab0ae601e329ebd7c9280b904313f2cc4e34ff96e7f7b7924225ec8
+EBUILD loguru-0.6.0.ebuild 719 BLAKE2B 0235615f5279b390fcd0c84f06b2f35178ad6c9e225abb3348112b96111c761da1bfc4b9b3dc6275c21f96dbe37aa7ae09b7d53579e1f3233f63906eddba8757 SHA512 48893e1cfe4632f75ae1175aa1e7be8fa5f73a96b5256000aa05cba16e505faf8d84d04daa2e257cf8a72fc288fd3a5e42ca07faea7335e815b3333d9b7cb52f
MISC metadata.xml 684 BLAKE2B 983bdc7e62a6532def7c1f368fee4e9e6cac5357a5de859c181775b02d7e3fa2c0b035d7fb7eb4126cddcbab24d01d8721d89baaade8d328fb1b600c689695ec SHA512 bbd545f9f8d643ee8a402ef97178191c67aed817f765eb45e3cda90c6f765a4a32837098becfb9af6fa9d704107676d5b5f2ed7e00630ef0c98b2b1b689c6cc0
diff --git a/dev-python/loguru/files/0.6.0-typos.patch b/dev-python/loguru/files/0.6.0-typos.patch
new file mode 100644
index 000000000000..ed9fecc91bfd
--- /dev/null
+++ b/dev-python/loguru/files/0.6.0-typos.patch
@@ -0,0 +1,45 @@
+From 8b820c7a138f0b320311c85e8ea6e1c017576000 Mon Sep 17 00:00:00 2001
+From: Delgan <4193924+Delgan@users.noreply.github.com>
+Date: Sat, 29 Jan 2022 14:50:59 +0100
+Subject: [PATCH 1/2] Fix small typo in CHANGELOG.md
+
+---
+ CHANGELOG.rst | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CHANGELOG.rst b/CHANGELOG.rst
+index 4c57fad..1d08f9d 100644
+--- a/CHANGELOG.rst
++++ b/CHANGELOG.rst
+@@ -184,7 +184,7 @@ Initial release.
+
+
+ .. _Unreleased: https://github.com/delgan/loguru/compare/0.6.0...master
+-.. -0.6.0: https://github.com/delgan/loguru/releases/tag/0.6.0
++.. _0.6.0: https://github.com/delgan/loguru/releases/tag/0.6.0
+ .. _0.5.3: https://github.com/delgan/loguru/releases/tag/0.5.3
+ .. _0.5.2: https://github.com/delgan/loguru/releases/tag/0.5.2
+ .. _0.5.1: https://github.com/delgan/loguru/releases/tag/0.5.1
+
+From ee1ce85a047fc396276e10ae92b72610cbafd57b Mon Sep 17 00:00:00 2001
+From: Delgan <4193924+Delgan@users.noreply.github.com>
+Date: Sun, 30 Jan 2022 20:28:37 +0100
+Subject: [PATCH 2/2] Fix another small typo in CHANGELOG.rst
+
+---
+ CHANGELOG.rst | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CHANGELOG.rst b/CHANGELOG.rst
+index 1d08f9d..6e1c182 100644
+--- a/CHANGELOG.rst
++++ b/CHANGELOG.rst
+@@ -1,7 +1,7 @@
+ `0.6.0`_ (2022-01-29)
+ =====================
+
+-- 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>`_).
++- 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>`_).
+ - 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()``).
+ - Remove the possibility to add a coroutine sink with ``enqueue=True`` if ``loop=None`` and no event loop is running.
+ - Change default encoding of file sink to be ``utf8`` instead of ``locale.getpreferredencoding()`` (`#339 <https://github.com/Delgan/loguru/issues/339>`_).
diff --git a/dev-python/loguru/loguru-0.6.0.ebuild b/dev-python/loguru/loguru-0.6.0.ebuild
new file mode 100644
index 000000000000..df963952b368
--- /dev/null
+++ b/dev-python/loguru/loguru-0.6.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python logging made (stupidly) simple"
+HOMEPAGE="https://github.com/Delgan/loguru"
+SRC_URI="https://github.com/Delgan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+RDEPEND="$(python_gen_cond_dep 'dev-python/aiocontextvars[${PYTHON_USEDEP}]' 'python3_6')"
+BDEPEND="test? ( >=dev-python/colorama-0.3.4[${PYTHON_USEDEP}] )"
+# filesystem buffering tests may fail
+# on tmpfs with 64k PAGESZ, but pass fine on ext4
+distutils_enable_tests pytest
+
+PATCHES=( "${FILESDIR}/0.6.0-typos.patch" )