Wed Oct 3 10:30:37 2018 UTC ()
py-click: updated to 7.0

Version 7.0:

Drop support for Python 2.6 and 3.3.
Wrap click.Choice's missing message.
Add native ZSH autocompletion support.
Document that ANSI color info isn't parsed from bytearrays in Python 2.
Document byte-stripping behavior of CliRunner.
Usage errors now hint at the --help option.
Implement streaming pager.
Extract bar formatting to its own method.
Add DateTime type for converting input in given date time formats.
secho's first argument can now be None, like in echo.
Fixes a ZeroDivisionError in ProgressBar.make_step, when the arg passed to the first call of ProgressBar.update is 0.
Show progressbar only if total execution time is visible.
Added the ability to hide commands and options from help.
Document that options can be required=True.
Non-standalone calls to Context.exit return the exit code, rather than calling sys.exit.
click.getchar() returns Unicode in Python 3 on Windows, consistent with other platforms.
Added FloatRange type.
Added support for bash completion of type=click.Choice for Options and Arguments.
Only allow one positional arg for Argument parameter declaration.
Add case_sensitive=False as an option to Choice.
click.getchar() correctly raises KeyboardInterrupt on "^C" and EOFError on "^D" on Linux.
Fix encoding issue with click.getchar(echo=True) on Linux.
param_hint in errors now derived from param itself.
Add a test that ensures that when an argument is formatted into a usage error, its metavar is used, not its name.
Allow setting prog_name as extra in CliRunner.invoke.
Help text taken from docstrings truncates at the \f form feed character, useful for hiding Sphinx-style parameter documentation.
launch now works properly under Cygwin.
Update progress after iteration.
CliRunner.invoke now may receive args as a string representing a Unix shell command.
Make Argument.make_metavar() default to type metavar.
Add documentation for ignore_unknown_options.
Add bright colors support for click.style and fix the reset option for parameters fg and bg.
Add show_envvar for showing environment variables in help.
Avoid BrokenPipeError during interpreter shutdown when stdout or stderr is a closed pipe.
Document customizing option names.
Disable sys._getframes() on Python interpreters that don't support it.
Fix bug in test runner when calling sys.exit with None.
Clarify documentation on command line options.
Fix crash on Windows console.
Fix bug that caused bash completion to give improper completions on chained commands.
Added support for dynamic bash completion from a user-supplied callback.
Added support for bash completions containing spaces.
Allow autocompletion function to determine whether or not to return completions that start with the incomplete argument.
Fix option naming routine to match documentation and be deterministic.
Fix path validation bug.
Add test and documentation for Option naming: functionality.
Update doc to match arg name for path_type.
Raw strings added so correct escaping occurs.
Fix 16k character limit of click.echo on Windows.
Overcome 64k character limit when writing to binary stream on Windows 7.
Add bool conversion for "t" and "f".
NoSuchOption errors take ctx so that --help hint gets printed in error output.
Fixed the behavior of Click error messages with regards to Unicode on 2.x and 3.x. Message is now always Unicode and the str and Unicode special methods work as you expect on that platform.
Progress bar now uses stderr by default.
Add support for auto-completion documentation.
Allow CliRunner to separate stdout and stderr.
Fix variable precedence.
Fix invalid escape sequences.
Fix ResourceWarning that occurs during some tests.
When detecting a misconfigured locale, don't fail if the locale command fails.
Add case_sensitive=False as an option to Choice types.
Force stdout/stderr writable. This works around issues with badly patched standard streams like those from Jupyter.
Fix completion of subcommand options after last argument
_AtomicFile now uses the realpath of the original filename so that changing the working directory does not affect it.
Fix incorrect completions when defaults are present
Add copy option attrs so that custom classes can be re-used.
"x" and "a" file modes now use stdout when file is "-".
Fix missing comma in __all__ list.
Clarify how parameters are named.
Stdout is now automatically set to non blocking.
Do not set options twice.
Move fcntl import.
Fix Google App Engine ImportError.
Better handling of help text for dynamic default option values.
Fix get_winter_size() so it correctly returns (0,0).
Add test case checking for custom param type.
Allow short width to address cmd formatting.
Add details about Python version support.
Added deprecation flag to commands.
Fixed issues where fd was undefined.
Fix formatting for short help.
Document how auto_envvar_prefix works with command groups.
Don't add newlines by default for progress bars.
Use Python sorting order for ZSH completions.
Document that parameter names are converted to lowercase by default.
Subcommands that are named by the function now automatically have the underscore replaced with a dash. If you register a function named my_command it becomes my-command in the command line interface.
Hide hidden commands and options from completion.
Fix absolute import blocking Click from being vendored into a project on Windows.
Fix issue where a lowercase auto_envvar_prefix would not be converted to uppercase.


(adam)
diff -r1.13 -r1.14 pkgsrc/devel/py-click/Makefile
diff -r1.12 -r1.13 pkgsrc/devel/py-click/distinfo

cvs diff -r1.13 -r1.14 pkgsrc/devel/py-click/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-click/Makefile 2017/07/09 10:10:44 1.13
+++ pkgsrc/devel/py-click/Makefile 2018/10/03 10:30:37 1.14
@@ -1,24 +1,21 @@ @@ -1,24 +1,21 @@
1# $NetBSD: Makefile,v 1.13 2017/07/09 10:10:44 adam Exp $ 1# $NetBSD: Makefile,v 1.14 2018/10/03 10:30:37 adam Exp $
2 2
3DISTNAME= click-6.7 3DISTNAME= Click-7.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=c/click/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=c/click/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://pypi.python.org/pypi/click 9HOMEPAGE= https://palletsprojects.com/p/click/
10COMMENT= Simple wrapper around optparse for powerful command line utilities 10COMMENT= Simple wrapper around optparse for powerful command line utilities
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test 13TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
14 14
15USE_LANGUAGES= # none 15USE_LANGUAGES= # none
16 16
17TEST_ENV+= PYTHONPATH=.. 
18 
19do-test: 17do-test:
20 cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX} --tb=short 18 cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
21 19
22.include "../../lang/python/egg.mk" 20.include "../../lang/python/egg.mk"
23.include "../../mk/bsd.pkg.mk" 21.include "../../mk/bsd.pkg.mk"
24TEST_ENV+= LC_ALL=en_US.UTF-8 

cvs diff -r1.12 -r1.13 pkgsrc/devel/py-click/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-click/distinfo 2017/01/16 09:23:56 1.12
+++ pkgsrc/devel/py-click/distinfo 2018/10/03 10:30:37 1.13
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.12 2017/01/16 09:23:56 wiz Exp $ 1$NetBSD: distinfo,v 1.13 2018/10/03 10:30:37 adam Exp $
2 2
3SHA1 (click-6.7.tar.gz) = c16e7cb561a40c385ae8d1a50528e549cc1d8e94 3SHA1 (Click-7.0.tar.gz) = fcbbb6d25b8eb45f7919e8605ec33b33583b0217
4RMD160 (click-6.7.tar.gz) = 7c476ae1c5b84021c14532d7cc932bf8867cc0b0 4RMD160 (Click-7.0.tar.gz) = a32c3039391514af61a2fe4b23fccb35c6f35084
5SHA512 (click-6.7.tar.gz) = d454369fe1acb01c2210a61e15f45ac9cc77102c93345257f4ef3090bd8f31f1ccc49d9fd6ea670cddca9f715ad5db29368b4eecd95abff50d1033c4f7a967d6 5SHA512 (Click-7.0.tar.gz) = a7632989cde7c7eb2f535915a7a8220cb48d1ab8dd3527c4103518d4ac86287fea3488a5e0ce9f2968a4b6c52fe6ca4bc2480d0bf10f7084a4b17d31e803a92b
6Size (click-6.7.tar.gz) = 279019 bytes 6Size (Click-7.0.tar.gz) = 286192 bytes