dev-python/colorlog: add 6.8.2
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
caa838b081
commit
0d223d0674
@ -606,11 +606,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 2334 Ebuilds in total, 2320 of them have in total 2359 (43 different) licenses assigned.
|
||||
There are 2335 Ebuilds in total, 2321 of them have in total 2360 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1326|
|
||||
|MIT|1327|
|
||||
|Apache-2.0|551|
|
||||
|GPL-3|145|
|
||||
|BSD|123|
|
||||
|
@ -1,6 +1,9 @@
|
||||
AUX colorlog-6.7.0-nocolor.patch 1066 BLAKE2B ea43721681af7de1cc95ee931d0b111a23327e8ef6684c2f08f3f6b56be54ffb2c1ffa54c2fdc297ec4183ea574e805636f432f4d76d84ee82d7eee9b95d2f21 SHA512 a001bd56036c62091c54b171f1bd0961fa51b33f7db091c1f0d409ab02b0c1d86f77011228a4f2016c277dafe8357fb5de992929276e3088fa60bc833ec9fa51
|
||||
AUX colorlog-6.8.2-py313.patch 1396 BLAKE2B b3f8311fe2d61f74fb118a5635d3f8fbd22ee6e4e8e6762f2d7044cd9aa12b46c451c1ddab349a6f3464591145bfcba4ba191833d38795281a0b8eb36d853e11 SHA512 40374c7a695598232e7f96cba765225e4a9d6b93d1a6d58dc60d418b0ef6477561fb120d323a2a05309c0e3ddbe8bc5c96639941695f0d294e930501411cac48
|
||||
DIST colorlog-6.6.0.tar.gz 30712 BLAKE2B 21c297d08a53bb67184bdd40f9bfae859f0bfd8ae63a27df570b316f85aa4904b8323c78a9706abbceb36ae1b76aae66150f86e8e25612caa5fe0dd4df5f25d8 SHA512 8c8bdfcfe537dc34c145fbfb9ebd0399184e3a8ab0e4bccc2e61d52a323c1372c60757cac2b023c9d39eb3c9fcf191b50c8cd4d089941aa484b30170a3cd1389
|
||||
DIST colorlog-6.7.0.tar.gz 29920 BLAKE2B b4240f3fd17b17ead968293e54d5f4e589515d333a6cdf157a6d913c7457deff67d320ee87270ce05b853616134901c8ac47c4a542ef74158e1174d92de00b3c SHA512 19b3c04beb8ac26d3db69f78bc1e7db40288c95ba7edc7c1d2495d592262dea9a1bf91e42dce0e575341eb2a572f0050866970f23d3be8c5adae518c4115787d
|
||||
DIST colorlog-6.8.2.tar.gz 16529 BLAKE2B c745e9deae4f0a96e5b3481268b7ae402f0c7f05a3997753cbc6e117c1f0630338748ca557f5f3ae261694f0ce6c65f486d06d35778b3ee331160d2c0596465f SHA512 cffd4541837e15ed7cfa0e48d8424d6bb10d0de6e227fe16145cfba51ebc2f90e2a4c750db57d37ee2708ec0272de97ad74e946283b7b3cd3628e1bd24a60b6f
|
||||
EBUILD colorlog-6.6.0-r1.ebuild 426 BLAKE2B 92b3dd98b40393c012b4969b40935362392041a090c6408a632df6f3359b42c21802a3d6e0c341c8862365a96f98bd1471b05b96842d9e916184d7f058a339aa SHA512 c56f2d6764b2092334ffd6b133abe5f3b4fc9702383e5b5c9ca72c828cb295059215e8108da86fb8f6a120b1129cecaec6fb41048499e636f5ffc733638edba4
|
||||
EBUILD colorlog-6.7.0.ebuild 479 BLAKE2B 5bcc4cd02b9b4a69819a068cf0cd6cbede5b00d14a15aef2c6444da39880f1683691eb400e91d03159575f11890abc808407fc711f2c08dfe9c80e644c9674b8 SHA512 68a6dafddacd6deecb5b5d65f9207fb04f4c5b80a4b8d212436589dbd98bb52562093e415078a92c1cf64c2a5f159cf20a3865968af29e3c90bef28758e66da6
|
||||
EBUILD colorlog-6.8.2.ebuild 590 BLAKE2B f67022ff641a240a2008d0697d78cc3b8f5de7686db1d8539fe70543a9b703fc964ffcfb46be9fee49c8635ce16f7e722651608c995f84aa8764410bd80a9d75 SHA512 4867dd15553aecf71f0cb68df5e469dbf3ab824cdeda82e0e8079eedecbb6d2ee80f8180bf92215df19911ac08fb0762c10af647ec6aa2774727571ed90cf272
|
||||
MISC metadata.xml 521 BLAKE2B fd6f24fa6295239752d7f5d4c68e93b607a3a8dce292ed430dcb9e349db16eabbb2abef4c0fed9327dbe871e15a2eb5d00f13f3e37038fe6da39a5b5783c1d88 SHA512 9a298b2d779d8d9c9c7e3cd60b36c5e937c1ef88c44bf5739094873960731c23a8fc376bff806df12792d79ed2e5b75e1dd47629477f28c1675fca154e9878a6
|
||||
|
26
dev-python/colorlog/colorlog-6.8.2.ebuild
Normal file
26
dev-python/colorlog/colorlog-6.8.2.ebuild
Normal file
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Log formatting with colors"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/colorlog/
|
||||
https://github.com/borntyping/python-colorlog/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~loong ~riscv x86"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/borntyping/python-colorlog/commit/607485def2d60b60c40c0d682574324b47fc30ba
|
||||
"${FILESDIR}/${P}-py313.patch"
|
||||
)
|
51
dev-python/colorlog/files/colorlog-6.8.2-py313.patch
Normal file
51
dev-python/colorlog/files/colorlog-6.8.2-py313.patch
Normal file
@ -0,0 +1,51 @@
|
||||
From 607485def2d60b60c40c0d682574324b47fc30ba Mon Sep 17 00:00:00 2001
|
||||
From: Sam Clements <sam@borntyping.co.uk>
|
||||
Date: Fri, 26 Jan 2024 14:06:47 +0000
|
||||
Subject: [PATCH] Support Python 3.13
|
||||
|
||||
---
|
||||
colorlog/wrappers.py | 17 +++++++++++++----
|
||||
4 files changed, 17 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/colorlog/wrappers.py b/colorlog/wrappers.py
|
||||
index 20e3042..63b201a 100644
|
||||
--- a/colorlog/wrappers.py
|
||||
+++ b/colorlog/wrappers.py
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import functools
|
||||
import logging
|
||||
+import sys
|
||||
import typing
|
||||
from logging import (
|
||||
CRITICAL,
|
||||
@@ -53,8 +54,8 @@ def basicConfig(
|
||||
) -> None:
|
||||
"""Call ``logging.basicConfig`` and override the formatter it creates."""
|
||||
logging.basicConfig(**kwargs)
|
||||
- logging._acquireLock() # type: ignore
|
||||
- try:
|
||||
+
|
||||
+ def _basicConfig():
|
||||
handler = logging.root.handlers[0]
|
||||
handler.setFormatter(
|
||||
colorlog.formatter.ColoredFormatter(
|
||||
@@ -67,8 +68,16 @@ def basicConfig(
|
||||
stream=kwargs.get("stream", None),
|
||||
)
|
||||
)
|
||||
- finally:
|
||||
- logging._releaseLock() # type: ignore
|
||||
+
|
||||
+ if sys.version_info >= (3, 13):
|
||||
+ with logging._lock:
|
||||
+ _basicConfig()
|
||||
+ else:
|
||||
+ logging._acquireLock() # type: ignore
|
||||
+ try:
|
||||
+ _basicConfig()
|
||||
+ finally:
|
||||
+ logging._releaseLock() # type: ignore
|
||||
|
||||
|
||||
def ensure_configured(func):
|
Loading…
x
Reference in New Issue
Block a user