Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: wangmy@fujitsu.com
To: openembedded-devel@lists.openembedded.org
Cc: Wang Mingyu <wangmy@fujitsu.com>
Subject: [oe] [meta-python] [PATCH] python3-click: upgrade 8.1.3 -> 8.1.5
Date: Tue, 18 Jul 2023 12:25:26 +0800	[thread overview]
Message-ID: <1689654348-30702-24-git-send-email-wangmy@fujitsu.com> (raw)
In-Reply-To: <1689654348-30702-1-git-send-email-wangmy@fujitsu.com>

From: Wang Mingyu <wangmy@fujitsu.com>

0001-tests-Fix-test_bytes_args.patch
removed since it's included in 8.1.5

Changelog:
==========
-Fix an issue with type hints for @click.command(), @click.option(), and other decorators. Introduce typing tests.
-Replace all typing.Dict occurrences to typing.MutableMapping for parameter hints. #2255
-Improve type hinting for decorators and give all generic types parameters. #2398
-Fix return value and type signature of shell_completion.add_completion_class function. #2421
-Bash version detection doesn’t fail on Windows. #2461
-Completion works if there is a dot (.) in the program name. #2166
-Improve type annotations for pyright type checker. #2268
-Improve responsiveness of click.clear(). #2284
-Improve command name detection when using Shiv or PEX. #2332
-Avoid showing empty lines if command help text is empty. #2368
-ZSH completion script works when loaded from fpath. #2344.
-EOFError and KeyboardInterrupt tracebacks are not suppressed when standalone_mode is disabled. #2380
-@group.command does not fail if the group was created with a custom command_class. #2416
-multiple=True is allowed for flag options again and does not require setting default=(). #2246, #2292, #2295
-Make the decorators returned by @argument() and @option() reusable when the cls parameter is used. #2294
-Don’t fail when writing filenames to streams with strict errors. Replace invalid bytes with the replacement character
-Remove unnecessary attempt to detect MSYS2 environment. #2355
-Remove outdated and unnecessary detection of App Engine environment. #2554
-echo() does not fail when no streams are attached, such as with pythonw on Windows. #2415
-Argument with expose_value=False do not cause completion to fail. #2336

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../0001-tests-Fix-test_bytes_args.patch      | 41 -------------------
 ...-click_8.1.3.bb => python3-click_8.1.5.bb} |  7 +---
 2 files changed, 2 insertions(+), 46 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-click/0001-tests-Fix-test_bytes_args.patch
 rename meta-python/recipes-devtools/python/{python3-click_8.1.3.bb => python3-click_8.1.5.bb} (85%)

diff --git a/meta-python/recipes-devtools/python/python3-click/0001-tests-Fix-test_bytes_args.patch b/meta-python/recipes-devtools/python/python3-click/0001-tests-Fix-test_bytes_args.patch
deleted file mode 100644
index e69a37c405..0000000000
--- a/meta-python/recipes-devtools/python/python3-click/0001-tests-Fix-test_bytes_args.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From da83bd7ca0959027086115f23534957b0917aaa5 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Thu, 27 Apr 2023 22:21:24 -0700
-Subject: [PATCH] tests: Fix test_bytes_args
-
-sys.stdin.encoding is readonly therefore use Mocking to wrap it.
-Sourced from - Alpine
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- tests/test_arguments.py | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/tests/test_arguments.py b/tests/test_arguments.py
-index 735df4b..3395c55 100644
---- a/tests/test_arguments.py
-+++ b/tests/test_arguments.py
-@@ -1,4 +1,5 @@
- import sys
-+from unittest import mock
- 
- import pytest
- 
-@@ -86,9 +87,12 @@ def test_bytes_args(runner, monkeypatch):
-         ), "UTF-8 encoded argument should be implicitly converted to Unicode"
- 
-     # Simulate empty locale environment variables
--    monkeypatch.setattr(sys.stdin, "encoding", "utf-8")
-     monkeypatch.setattr(sys, "getfilesystemencoding", lambda: "utf-8")
-     monkeypatch.setattr(sys, "getdefaultencoding", lambda: "utf-8")
-+    # sys.stdin.encoding is readonly, needs some extra effort to patch.
-+    stdin = mock.Mock(wraps=sys.stdin)
-+    stdin.encoding = "utf-8"
-+    monkeypatch.setattr(sys, "stdin", stdin)
- 
-     runner.invoke(
-         from_bytes,
--- 
-2.40.1
-
diff --git a/meta-python/recipes-devtools/python/python3-click_8.1.3.bb b/meta-python/recipes-devtools/python/python3-click_8.1.5.bb
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-click_8.1.3.bb
rename to meta-python/recipes-devtools/python/python3-click_8.1.5.bb
index 9b8ea94c2a..d7d50118e2 100644
--- a/meta-python/recipes-devtools/python/python3-click_8.1.3.bb
+++ b/meta-python/recipes-devtools/python/python3-click_8.1.5.bb
@@ -8,14 +8,11 @@ HOMEPAGE = "http://click.pocoo.org/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8"
 
-SRC_URI[sha256sum] = "7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"
+SRC_URI[sha256sum] = "4be4b1af8d665c6d942909916d31a213a106800c47d0eeba73d34da3cbc11367"
 
 inherit pypi setuptools3 ptest
 
-SRC_URI += " \
-	file://0001-tests-Fix-test_bytes_args.patch \
-	file://run-ptest \
-"
+SRC_URI += "file://run-ptest"
 
 RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
-- 
2.34.1



  parent reply	other threads:[~2023-07-18  4:26 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-18  4:25 [oe] [meta-oe] [PATCH] c-periphery: upgrade 2.4.1 -> 2.4.2 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] ctags: upgrade 6.0.20230611.0 -> 6.0.20230716.0 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] gensio: upgrade 2.6.6 -> 2.6.7 wangmy
2023-07-18  4:25 ` [oe] [meta-gnome] [PATCH] gnome-commander: upgrade 1.16.0 -> 1.16.1 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] hiredis: upgrade 1.1.0 -> 1.2.0 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] iperf3: upgrade 3.13 -> 3.14 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] iwd: upgrade 2.6 -> 2.7 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] libbytesize: upgrade 2.8 -> 2.9 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] libinih: upgrade 56 -> 57 wangmy
2023-07-18  4:25 ` [oe] [meta-networking] [PATCH] libnftnl: upgrade 1.2.5 -> 1.2.6 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] lvgl: upgrade 8.3.7 -> 8.3.8 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] bats: upgrade 1.9.0 -> 1.10.0 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] function2: upgrade 4.2.2 -> 4.2.3 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] lmdb: upgrade 0.9.29 -> 0.9.31 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] redis: upgrade 6.2.12 -> 6.2.13 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] ser2net: upgrade 4.3.12 -> 4.3.13 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-obd: upgrade 0.7.1 -> 0.7.2 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-path: upgrade 16.6.0 -> 16.7.1 wangmy
2023-07-18  4:25 ` [oe] [meta-webserver] [PATCH] nginx: upgrade 1.24.0 -> 1.25.1 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] php: upgrade 8.2.7 -> 8.2.8 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-arpeggio: upgrade 2.0.0 -> 2.0.2 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-astroid: upgrade 2.15.5 -> 2.15.6 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-charset-normalizer: upgrade 3.1.0 -> 3.2.0 wangmy
2023-07-18  4:25 ` wangmy [this message]
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-dnspython: upgrade 2.3.0 -> 2.4.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-engineio: upgrade 4.4.1 -> 4.5.1 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-eth-utils: upgrade 2.1.1 -> 2.2.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-frozenlist: upgrade 1.3.3 -> 1.4.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-gevent: upgrade 22.10.2 -> 23.7.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-google-api-python-client: upgrade 2.92.0 -> 2.93.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-google-auth: upgrade 2.21.0 -> 2.22.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-mock: upgrade 5.0.2 -> 5.1.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-platformdirs: upgrade 3.8.0 -> 3.9.1 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-protobuf: upgrade 4.23.3 -> 4.23.4 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-pymisp: upgrade 2.4.172 -> 2.4.173 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-pymongo: upgrade 4.4.0 -> 4.4.1 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-tox: upgrade 4.6.3 -> 4.6.4 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-virtualenv: upgrade 20.23.1 -> 20.24.0 wangmy
2023-07-18  4:25 ` [oe] [meta-python] [PATCH] python3-zeroconf: upgrade 0.70.0 -> 0.71.0 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] redis-plus-plus: upgrade 1.3.9 -> 1.3.10 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] redis: upgrade 7.0.11 -> 7.0.12 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] smemstat: upgrade 0.02.11 -> 0.02.12 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] tesseract: upgrade 5.3.1 -> 5.3.2 wangmy
2023-07-18  4:25 ` [oe] [meta-networking] [PATCH] weechat: upgrade 4.0.1 -> 4.0.2 wangmy
2023-07-18  4:25 ` [oe] [meta-networking] [PATCH] wireshark: upgrade 4.0.6 -> 4.0.7 wangmy
2023-07-18  4:25 ` [oe] [meta-oe] [PATCH] xterm: upgrade 383 -> 384 wangmy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1689654348-30702-24-git-send-email-wangmy@fujitsu.com \
    --to=wangmy@fujitsu.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox