diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/click | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/click')
| -rw-r--r-- | dev-python/click/Manifest | 3 | ||||
| -rw-r--r-- | dev-python/click/click-6.7-r1.ebuild | 56 | ||||
| -rw-r--r-- | dev-python/click/click-7.0-r1.ebuild | 27 | ||||
| -rw-r--r-- | dev-python/click/click-7.1.2.ebuild | 27 | ||||
| -rw-r--r-- | dev-python/click/files/click-6.7-fix-tests.patch | 65 | ||||
| -rw-r--r-- | dev-python/click/files/click-6.7-support-sphinx-1.7.patch | 44 | ||||
| -rw-r--r-- | dev-python/click/metadata.xml | 13 |
7 files changed, 235 insertions, 0 deletions
diff --git a/dev-python/click/Manifest b/dev-python/click/Manifest new file mode 100644 index 000000000000..3c29d833fd71 --- /dev/null +++ b/dev-python/click/Manifest @@ -0,0 +1,3 @@ +DIST click-6.7.tar.gz 279019 BLAKE2B cc1e59d0a34ccb4ce50c8a2982b308d23cd525ceb44d84a493c0fe9b5a6f7f616e8a4c440ae211fca811a2bf904ddb75d93618f3c6ac7bbe6b1ed022710dab1f SHA512 d454369fe1acb01c2210a61e15f45ac9cc77102c93345257f4ef3090bd8f31f1ccc49d9fd6ea670cddca9f715ad5db29368b4eecd95abff50d1033c4f7a967d6 +DIST click-7.0.tar.gz 289077 BLAKE2B 0e180eeb1d7d9da34c33f95398c2b53dce124317bd2777ad545c1d4b4f3a96da0e281fac46c8fe6446848f25f7b705d2348d3ab6f5786219b4214650424ab260 SHA512 7ed2bf677f4a56f120deb61318675679a8f09c152af618e8808d24a20cc8537b0691c18b0de2e25b814c59e34b47d6f4d71191856422fc3be206de7669d78f3a +DIST click-7.1.2.tar.gz 295757 BLAKE2B aea76d5378cfa49fe58a83132737d609d48b3d3a71ec65c0a8a144c7a0e244b5bdf0196ffe2150889b82edda20c3f1faa3c84a227fc9ef459a5a9646cff86129 SHA512 d0caf2fb0a258774a18a7b8f83bdfa73abeb70196a70b45a6cc35befaeb862d068d2f2cce4e27201ab2e3adcd02e7e2f099d6c37c497a507010eefa10ad16eba diff --git a/dev-python/click/click-6.7-r1.ebuild b/dev-python/click/click-6.7-r1.ebuild new file mode 100644 index 000000000000..4da283791c9f --- /dev/null +++ b/dev-python/click/click-6.7-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A Python package for creating beautiful command line interfaces" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${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 ~m68k ~mips ppc ppc64 ~s390 sparc x86" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +PATCHES=( + # From upstream, can be removed in next release. + "${FILESDIR}/${PN}-6.7-fix-tests.patch" + # From upstream, can be removed in next release. + "${FILESDIR}/${PN}-6.7-support-sphinx-1.7.patch" +) + +pkg_setup() { + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' ) +} + +python_prepare_all() { + # Prevent un-needed d'loading + sed -e "s/, 'sphinx.ext.intersphinx'//" -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + emake test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + use examples && dodoc -r examples + distutils-r1_python_install_all +} diff --git a/dev-python/click/click-7.0-r1.ebuild b/dev-python/click/click-7.0-r1.ebuild new file mode 100644 index 000000000000..4703f5476147 --- /dev/null +++ b/dev-python/click/click-7.0-r1.ebuild @@ -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 +} diff --git a/dev-python/click/click-7.1.2.ebuild b/dev-python/click/click-7.1.2.ebuild new file mode 100644 index 000000000000..e7dbf92c6e53 --- /dev/null +++ b/dev-python/click/click-7.1.2.ebuild @@ -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 +} diff --git a/dev-python/click/files/click-6.7-fix-tests.patch b/dev-python/click/files/click-6.7-fix-tests.patch new file mode 100644 index 000000000000..8a305e3665dd --- /dev/null +++ b/dev-python/click/files/click-6.7-fix-tests.patch @@ -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 + diff --git a/dev-python/click/files/click-6.7-support-sphinx-1.7.patch b/dev-python/click/files/click-6.7-support-sphinx-1.7.patch new file mode 100644 index 000000000000..1076c2decad1 --- /dev/null +++ b/dev-python/click/files/click-6.7-support-sphinx-1.7.patch @@ -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 + diff --git a/dev-python/click/metadata.xml b/dev-python/click/metadata.xml new file mode 100644 index 000000000000..0972104a9c03 --- /dev/null +++ b/dev-python/click/metadata.xml @@ -0,0 +1,13 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> |
