bump click-7.1.1

This commit is contained in:
Andreas Billmeier 2020-09-05 10:58:05 +02:00 committed by Andreas Billmeier
parent ff78567859
commit 0ffefeb8ea
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
6 changed files with 154 additions and 0 deletions

View File

@ -8,6 +8,7 @@
* bump openwrt-luci-rpc-1.1.5, openwrt-luci-rpc-1.1.6
* bump pysqueezebox-0.3.1 pysqueezebox-0.4.0
* bump home-assistant-frontend-20200901.0
* bump click-7.1.1
2020-09-01
* bump xknx-0.13.0

View File

@ -0,0 +1,5 @@
AUX click-6.7-fix-tests.patch 1971 BLAKE2B 67c0b66f8668851eb48899aab98b4437846f65cec5389957645f5dd637b6e2a0fc2934856815a85b958c8326a8c33bb1c97bdf963d1774173051eb3ea05c7096 SHA512 fb864761ae8bea93096b9d090eef9cecef7707751d58fa40f846aeccaa8f59e8e01af38f8f79624b94c6ad081b9a388bef287b33b7659bdbbc292f1ae87abda6
AUX click-6.7-support-sphinx-1.7.patch 1243 BLAKE2B d4939d49d43b50a3cddb77899ed2aae9ef6ede0941ca1e7e2d8d23d4f5afa0875df7d126adb498639839efb18790d021549018a355da3d4d71a77d4a6e80db79 SHA512 e497364ebf6243feb7281609d82ac73a73f1e399c1fcaf8a6c97a870c738d21605bcc98397adec7b4b0e1ebba209adf6eb1c6708c157e81e4baef1af1375e15d
DIST click-7.1.1.tar.gz 295672 BLAKE2B 7d9e877a82c3c246831f3bee850ca8460ee13c2e8a560c7e2831bcb6a043624792b6635511006d755ea0903eac439c9b4725087a88d693e0eaac137c8e4cf142 SHA512 955dd75569a7179c204971b868ca17c666bddbaa84201d2b23fbf53ccbd35878c1d638cf70d5c42c2785276fea0cf1f1c062ff990c5869736d6cba0d9fca1486
EBUILD click-7.1.1.ebuild 754 BLAKE2B 676d984143a33f3817f9e58a5aee811572cd4655b85654949ca9bd10ab77e9f2ea5cd903c989c66a34a4eb3ac0062e0fe3e44f0ba29ab616f7928f9e91dbfebe SHA512 296e06a3c9ab4886629b3ed196915ed576afdb9ce441012662338f9a842e98e21c71b20bbf60e56785e72d67b64ef436c3ca220096d5226cb6f6e3802d3fbcab
MISC metadata.xml 332 BLAKE2B a41bc7699360c666ce286a0d9a44779fab5afa6e6ce99efec2ee65a5d8d534bf3ccd65d4b23a2f5d40fc3b1c04c3c7e078a8889a3030909e7cc3992eabecfcb3 SHA512 de78734678a4bafe5175228f6df58210c65eaf016efec93e65441109b280725c4994406d0f21f2ee22ca0f9e1e27e27f76b3a1db724dbbd5b958fc8d8410126f

View File

@ -0,0 +1,27 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
inherit distutils-r1
DESCRIPTION="A Python package for creating beautiful command line interfaces"
SRC_URI="https://github.com/pallets/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
HOMEPAGE="https://palletsprojects.com/p/click/ https://pypi.org/project/click/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86"
IUSE="examples"
distutils_enable_sphinx docs \
'>=dev-python/docutils-0.14' \
dev-python/pallets-sphinx-themes
distutils_enable_tests pytest
python_install_all() {
use examples && dodoc -r examples
distutils-r1_python_install_all
}

View File

@ -0,0 +1,65 @@
From 20b4b1c0d1564ab4ef44b7d27d5b650735e28be3 Mon Sep 17 00:00:00 2001
From: Armin Ronacher <armin.ronacher@active-4.com>
Date: Sat, 23 Dec 2017 09:27:57 +0100
Subject: [PATCH] Updated tests to work with newer pytest versions
---
tests/test_basic.py | 2 +-
tests/test_compat.py | 9 +++++----
tests/test_options.py | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/tests/test_basic.py b/tests/test_basic.py
index 045f608..960cd32 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -357,7 +357,7 @@ def test_required_option(runner):
def test_evaluation_order(runner):
called = []
- def memo(ctx, value):
+ def memo(ctx, param, value):
called.append(value)
return value
diff --git a/tests/test_compat.py b/tests/test_compat.py
index e4ecdc8..9dacc21 100644
--- a/tests/test_compat.py
+++ b/tests/test_compat.py
@@ -1,4 +1,5 @@
import click
+import pytest
if click.__version__ >= '3.0':
@@ -11,10 +12,10 @@ if click.__version__ >= '3.0':
def cli(foo):
click.echo(foo)
- result = runner.invoke(cli, ['--foo', 'wat'])
- assert result.exit_code == 0
- assert 'WAT' in result.output
- assert 'Invoked legacy parameter callback' in result.output
+ with pytest.warns(Warning, match='Invoked legacy parameter callback'):
+ result = runner.invoke(cli, ['--foo', 'wat'])
+ assert result.exit_code == 0
+ assert 'WAT' in result.output
def test_bash_func_name():
diff --git a/tests/test_options.py b/tests/test_options.py
index 9dd8cdf..8bdda1f 100644
--- a/tests/test_options.py
+++ b/tests/test_options.py
@@ -199,7 +199,7 @@ def test_nargs_envvar(runner):
def test_custom_validation(runner):
- def validate_pos_int(ctx, value):
+ def validate_pos_int(ctx, param, value):
if value < 0:
raise click.BadParameter('Value needs to be positive')
return value
--
2.16.4

View File

@ -0,0 +1,44 @@
From 2c7929511114494350e26d7b0c790fb8ca82f605 Mon Sep 17 00:00:00 2001
From: Daw-Ran Liou <dawran6@gmail.com>
Date: Mon, 14 May 2018 13:34:23 -0400
Subject: [PATCH] Support Sphinx 1.7+
Move: from sphinx.util.compat import Directive
To: from docutils.parsers.rst import Directive
---
docs/clickdoctools.py | 2 +-
setup.py | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/docs/clickdoctools.py b/docs/clickdoctools.py
index c3db195..1dd47d3 100644
--- a/docs/clickdoctools.py
+++ b/docs/clickdoctools.py
@@ -15,7 +15,7 @@ from docutils import nodes
from docutils.statemachine import ViewList
from sphinx.domains import Domain
-from sphinx.util.compat import Directive
+from docutils.parsers.rst import Directive
PY2 = sys.version_info[0] == 2
diff --git a/setup.py b/setup.py
index b78403e..f1bcdcf 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,11 @@ setup(
maintainer_email='contact@palletsprojects.com',
long_description=readme,
packages=['click'],
+ extras_require={
+ 'docs': [
+ 'sphinx',
+ ],
+ },
description='A simple wrapper around optparse for '
'powerful command line utilities.',
license='BSD',
--
2.16.4

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">click</remote-id>
</upstream>
</pkgmetadata>