forked from pool/python-click
Accepting request 1101851 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1101851 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-click?expand=0&rev=21
This commit is contained in:
commit
f1b53e8ef1
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e
|
||||
size 331147
|
3
click-8.1.6.tar.gz
Normal file
3
click-8.1.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:48ee849951919527a045bfe3bf7baa8a959c423134e1a5b98c05c20ba75a1cbd
|
||||
size 336051
|
@ -1,37 +0,0 @@
|
||||
From 6e05e1fa1c2804410f9916b27edc07076e3b156d Mon Sep 17 00:00:00 2001
|
||||
From: Sagi Buchbinder-Shadur <saroad2@gmail.com>
|
||||
Date: Wed, 3 May 2023 11:16:59 -0400
|
||||
Subject: [PATCH] Update dependencies using pip-compile-multi (#2508)
|
||||
|
||||
---
|
||||
requirements/build.txt | 14 +++++++-------
|
||||
requirements/dev.txt | 38 ++++++++++++++++++--------------------
|
||||
requirements/docs.txt | 38 +++++++++++++++++++-------------------
|
||||
requirements/tests.txt | 12 ++++++------
|
||||
tests/test_arguments.py | 6 +++++-
|
||||
5 files changed, 55 insertions(+), 53 deletions(-)
|
||||
|
||||
diff --git a/tests/test_arguments.py b/tests/test_arguments.py
|
||||
index 735df4b53..3395c552b 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 from_bytes(arg):
|
||||
), "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,
|
@ -1,3 +1,39 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 1 19:44:22 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 8.1.6
|
||||
* Replace all typing.Dict occurrences to typing.MutableMapping for parameter
|
||||
hints. #2255
|
||||
* Improve type hinting for decorators and give all generic types parameters.
|
||||
* 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 (<28>). #2395
|
||||
* 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
|
||||
* Fix an issue with type hints for @click.command(), @click.option(), and
|
||||
other decorators. Introduce typing tests. #2558
|
||||
* Fix an issue with type hints for @click.group(). #2558
|
||||
- Drop fix-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 5 13:41:09 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@ -16,29 +16,21 @@
|
||||
#
|
||||
|
||||
|
||||
%define oldpython python
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-click
|
||||
Version: 8.1.3
|
||||
Version: 8.1.6
|
||||
Release: 0
|
||||
Summary: A wrapper around optparse for command line utilities
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/mitsuhiko/click
|
||||
Source: https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/pallets/click/commit/6e05e1fa1c2804410f9916b27edc07076e3b156d Update dependencies using pip-compile-multi (#2508)
|
||||
# our tests were failing in a staging because of some new version and upstream came across the issue while updating dependencies, hence the weird commit message
|
||||
Patch: fix-tests.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if "%{python_flavor}" == "python36"
|
||||
Requires: python-importlib-metadata
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
|
Loading…
x
Reference in New Issue
Block a user