pkgsrc/devel/py-click/Makefile

21 lines
563 B
Makefile
Raw Normal View History

py-click: updated to 7.1.1 Version 7.1.1 - Fix ClickException output going to stdout instead of stderr. Version 7.1 - Fix PyPI package name, "click" is lowercase again. - Fix link in unicode_literals error message. - Add support for colored output on UNIX Jupyter notebooks. - Operations that strip ANSI controls will strip the cursor hide/show sequences. - Remove unused compat shim for bytes. - Expand testing around termui, especially getchar on Windows. - Fix output on Windows Python 2.7 built with MSVC 14. - Fix OSError when running in MSYS2. - Fix OSError when redirecting to NUL stream on Windows. - Fix memory leak when parsing Unicode arguments on Windows. - Fix error in new AppEngine environments. - Always return one of the passed choices for click.Choice - Add no_args_is_help option to click.Command, defaults to False - Add show_defaults parameter to Context to enable showing defaults globally. - Handle env MYPATH='' as though the option were not passed. - It is once again possible to call next(bar) on an active progress bar instance. - open_file with atomic=True retains permissions of existing files and respects the current umask for new files. - When using the test CliRunner with mix_stderr=False, if result.stderr is empty it will not raise a ValueError. - Remove the unused mix_stderr parameter from CliRunner.invoke. - Fix TypeError raised when using bool flags and specifying type=bool. - Newlines in option help text are replaced with spaces before re-wrapping to avoid uneven line breaks. - MissingParameter exceptions are printable in the Python interpreter. - Fix how default values for file-type options are shown during prompts. - Fix environment variable automatic generation for commands containing -. - Option help text replaces newlines with spaces when rewrapping, but preserves paragraph breaks, fixing multiline formatting. - Option help text that is wrapped adds an extra newline at the end to distinguish it from the next option. - Consider sensible-editor when determining the editor to use for click.edit(). - Arguments to system calls such as the executable path passed to click.edit can contains spaces. - Add ZSH completion autoloading and error handling. - Add a repr to Command, Group, Option, and Argument, showing the name for friendlier debugging. - Completion doesn't consider option names if a value starts with - after the -- separator. - ZSH completion escapes special characters in values. - Add completion support for Fish shell. - Decoding bytes option values falls back to UTF-8 in more cases. - Make the warning about old 2-arg parameter callbacks a deprecation warning, to be removed in 8.0. This has been a warning since Click 2.0.
2020-03-10 09:25:35 +01:00
# $NetBSD: Makefile,v 1.15 2020/03/10 08:25:35 adam Exp $
py-click: updated to 7.1.1 Version 7.1.1 - Fix ClickException output going to stdout instead of stderr. Version 7.1 - Fix PyPI package name, "click" is lowercase again. - Fix link in unicode_literals error message. - Add support for colored output on UNIX Jupyter notebooks. - Operations that strip ANSI controls will strip the cursor hide/show sequences. - Remove unused compat shim for bytes. - Expand testing around termui, especially getchar on Windows. - Fix output on Windows Python 2.7 built with MSVC 14. - Fix OSError when running in MSYS2. - Fix OSError when redirecting to NUL stream on Windows. - Fix memory leak when parsing Unicode arguments on Windows. - Fix error in new AppEngine environments. - Always return one of the passed choices for click.Choice - Add no_args_is_help option to click.Command, defaults to False - Add show_defaults parameter to Context to enable showing defaults globally. - Handle env MYPATH='' as though the option were not passed. - It is once again possible to call next(bar) on an active progress bar instance. - open_file with atomic=True retains permissions of existing files and respects the current umask for new files. - When using the test CliRunner with mix_stderr=False, if result.stderr is empty it will not raise a ValueError. - Remove the unused mix_stderr parameter from CliRunner.invoke. - Fix TypeError raised when using bool flags and specifying type=bool. - Newlines in option help text are replaced with spaces before re-wrapping to avoid uneven line breaks. - MissingParameter exceptions are printable in the Python interpreter. - Fix how default values for file-type options are shown during prompts. - Fix environment variable automatic generation for commands containing -. - Option help text replaces newlines with spaces when rewrapping, but preserves paragraph breaks, fixing multiline formatting. - Option help text that is wrapped adds an extra newline at the end to distinguish it from the next option. - Consider sensible-editor when determining the editor to use for click.edit(). - Arguments to system calls such as the executable path passed to click.edit can contains spaces. - Add ZSH completion autoloading and error handling. - Add a repr to Command, Group, Option, and Argument, showing the name for friendlier debugging. - Completion doesn't consider option names if a value starts with - after the -- separator. - ZSH completion escapes special characters in values. - Add completion support for Fish shell. - Decoding bytes option values falls back to UTF-8 in more cases. - Make the warning about old 2-arg parameter callbacks a deprecation warning, to be removed in 8.0. This has been a warning since Click 2.0.
2020-03-10 09:25:35 +01:00
DISTNAME= click-7.1.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
2017-07-09 12:10:44 +02:00
CATEGORIES= devel python
Update py-click to 6.2. Add test target. Version 6.2 ----------- (bugfix release, released on November 27th 2015) - Correct fix for hidden progress bars. Version 6.1 ----------- (bugfix release, released on November 27th 2015) - Resolved an issue with invisible progress bars no longer rendering. - Disable chain commands with subcommands as they were inherently broken. - Fix `MissingParameter` not working without parameters passed. Version 6.0 ----------- (codename "pow pow", released on November 24th 2015) - Optimized the progressbar rendering to not render when it did not actually change. - Explicitly disallow nargs=-1 with a set default. - The context is now closed before it's popped from the stack. - Added support for short aliases for the false flag on toggles. - Click will now attempt to aid you with debugging locale errors better by listing with the help of the OS what locales are available. - Click used to return byte strings on Python 2 in some unit-testing situations. This has been fixed to correctly return unicode strings now. - For Windows users on Python 2, Click will now handle Unicode more correctly handle Unicode coming in from the system. This also has the disappointing side effect that filenames will now be always unicode by default in the `Path` type which means that this can introduce small bugs for code not aware of this. - Added a `type` parameter to `Path` to force a specific string type on the value. - For users running Python on Windows the `echo`) and `prompt` functions now work with full unicode functionality in the Python windows console by emulating an output stream. This also applies to getting the virtual output and input streams via `click.get_text_stream(...)`. - Unittests now always force a certain virtual terminal width. - Added support for allowing dashes to indicate standard streams to the `Path` type. - Multi commands in chain mode no longer propagate arguments left over from parsing to the callbacks. It's also now disallowed through an exception when optional arguments are attached to multi commands if chain mode is enabled. - Relaxed restriction that disallowed chained commands to have other chained commands as child commands. - Arguments with positive nargs can now have defaults implemented. Previously this configuration would often result in slightly unexpected values be returned.
2015-12-04 21:43:14 +01:00
MASTER_SITES= ${MASTER_SITE_PYPI:=c/click/}
MAINTAINER= pkgsrc-users@NetBSD.org
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.
2018-10-03 12:30:37 +02:00
HOMEPAGE= https://palletsprojects.com/p/click/
COMMENT= Simple wrapper around optparse for powerful command line utilities
LICENSE= modified-bsd
py-click: updated to 7.1.1 Version 7.1.1 - Fix ClickException output going to stdout instead of stderr. Version 7.1 - Fix PyPI package name, "click" is lowercase again. - Fix link in unicode_literals error message. - Add support for colored output on UNIX Jupyter notebooks. - Operations that strip ANSI controls will strip the cursor hide/show sequences. - Remove unused compat shim for bytes. - Expand testing around termui, especially getchar on Windows. - Fix output on Windows Python 2.7 built with MSVC 14. - Fix OSError when running in MSYS2. - Fix OSError when redirecting to NUL stream on Windows. - Fix memory leak when parsing Unicode arguments on Windows. - Fix error in new AppEngine environments. - Always return one of the passed choices for click.Choice - Add no_args_is_help option to click.Command, defaults to False - Add show_defaults parameter to Context to enable showing defaults globally. - Handle env MYPATH='' as though the option were not passed. - It is once again possible to call next(bar) on an active progress bar instance. - open_file with atomic=True retains permissions of existing files and respects the current umask for new files. - When using the test CliRunner with mix_stderr=False, if result.stderr is empty it will not raise a ValueError. - Remove the unused mix_stderr parameter from CliRunner.invoke. - Fix TypeError raised when using bool flags and specifying type=bool. - Newlines in option help text are replaced with spaces before re-wrapping to avoid uneven line breaks. - MissingParameter exceptions are printable in the Python interpreter. - Fix how default values for file-type options are shown during prompts. - Fix environment variable automatic generation for commands containing -. - Option help text replaces newlines with spaces when rewrapping, but preserves paragraph breaks, fixing multiline formatting. - Option help text that is wrapped adds an extra newline at the end to distinguish it from the next option. - Consider sensible-editor when determining the editor to use for click.edit(). - Arguments to system calls such as the executable path passed to click.edit can contains spaces. - Add ZSH completion autoloading and error handling. - Add a repr to Command, Group, Option, and Argument, showing the name for friendlier debugging. - Completion doesn't consider option names if a value starts with - after the -- separator. - ZSH completion escapes special characters in values. - Add completion support for Fish shell. - Decoding bytes option values falls back to UTF-8 in more cases. - Make the warning about old 2-arg parameter callbacks a deprecation warning, to be removed in 8.0. This has been a warning since Click 2.0.
2020-03-10 09:25:35 +01:00
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
Update py-click to 6.2. Add test target. Version 6.2 ----------- (bugfix release, released on November 27th 2015) - Correct fix for hidden progress bars. Version 6.1 ----------- (bugfix release, released on November 27th 2015) - Resolved an issue with invisible progress bars no longer rendering. - Disable chain commands with subcommands as they were inherently broken. - Fix `MissingParameter` not working without parameters passed. Version 6.0 ----------- (codename "pow pow", released on November 24th 2015) - Optimized the progressbar rendering to not render when it did not actually change. - Explicitly disallow nargs=-1 with a set default. - The context is now closed before it's popped from the stack. - Added support for short aliases for the false flag on toggles. - Click will now attempt to aid you with debugging locale errors better by listing with the help of the OS what locales are available. - Click used to return byte strings on Python 2 in some unit-testing situations. This has been fixed to correctly return unicode strings now. - For Windows users on Python 2, Click will now handle Unicode more correctly handle Unicode coming in from the system. This also has the disappointing side effect that filenames will now be always unicode by default in the `Path` type which means that this can introduce small bugs for code not aware of this. - Added a `type` parameter to `Path` to force a specific string type on the value. - For users running Python on Windows the `echo`) and `prompt` functions now work with full unicode functionality in the Python windows console by emulating an output stream. This also applies to getting the virtual output and input streams via `click.get_text_stream(...)`. - Unittests now always force a certain virtual terminal width. - Added support for allowing dashes to indicate standard streams to the `Path` type. - Multi commands in chain mode no longer propagate arguments left over from parsing to the callbacks. It's also now disallowed through an exception when optional arguments are attached to multi commands if chain mode is enabled. - Relaxed restriction that disallowed chained commands to have other chained commands as child commands. - Arguments with positive nargs can now have defaults implemented. Previously this configuration would often result in slightly unexpected values be returned.
2015-12-04 21:43:14 +01:00
USE_LANGUAGES= # none
py-click: updated to 7.1.1 Version 7.1.1 - Fix ClickException output going to stdout instead of stderr. Version 7.1 - Fix PyPI package name, "click" is lowercase again. - Fix link in unicode_literals error message. - Add support for colored output on UNIX Jupyter notebooks. - Operations that strip ANSI controls will strip the cursor hide/show sequences. - Remove unused compat shim for bytes. - Expand testing around termui, especially getchar on Windows. - Fix output on Windows Python 2.7 built with MSVC 14. - Fix OSError when running in MSYS2. - Fix OSError when redirecting to NUL stream on Windows. - Fix memory leak when parsing Unicode arguments on Windows. - Fix error in new AppEngine environments. - Always return one of the passed choices for click.Choice - Add no_args_is_help option to click.Command, defaults to False - Add show_defaults parameter to Context to enable showing defaults globally. - Handle env MYPATH='' as though the option were not passed. - It is once again possible to call next(bar) on an active progress bar instance. - open_file with atomic=True retains permissions of existing files and respects the current umask for new files. - When using the test CliRunner with mix_stderr=False, if result.stderr is empty it will not raise a ValueError. - Remove the unused mix_stderr parameter from CliRunner.invoke. - Fix TypeError raised when using bool flags and specifying type=bool. - Newlines in option help text are replaced with spaces before re-wrapping to avoid uneven line breaks. - MissingParameter exceptions are printable in the Python interpreter. - Fix how default values for file-type options are shown during prompts. - Fix environment variable automatic generation for commands containing -. - Option help text replaces newlines with spaces when rewrapping, but preserves paragraph breaks, fixing multiline formatting. - Option help text that is wrapped adds an extra newline at the end to distinguish it from the next option. - Consider sensible-editor when determining the editor to use for click.edit(). - Arguments to system calls such as the executable path passed to click.edit can contains spaces. - Add ZSH completion autoloading and error handling. - Add a repr to Command, Group, Option, and Argument, showing the name for friendlier debugging. - Completion doesn't consider option names if a value starts with - after the -- separator. - ZSH completion escapes special characters in values. - Add completion support for Fish shell. - Decoding bytes option values falls back to UTF-8 in more cases. - Make the warning about old 2-arg parameter callbacks a deprecation warning, to be removed in 8.0. This has been a warning since Click 2.0.
2020-03-10 09:25:35 +01:00
PYSETUPTESTTARGET= pytest
Update py-click to 6.2. Add test target. Version 6.2 ----------- (bugfix release, released on November 27th 2015) - Correct fix for hidden progress bars. Version 6.1 ----------- (bugfix release, released on November 27th 2015) - Resolved an issue with invisible progress bars no longer rendering. - Disable chain commands with subcommands as they were inherently broken. - Fix `MissingParameter` not working without parameters passed. Version 6.0 ----------- (codename "pow pow", released on November 24th 2015) - Optimized the progressbar rendering to not render when it did not actually change. - Explicitly disallow nargs=-1 with a set default. - The context is now closed before it's popped from the stack. - Added support for short aliases for the false flag on toggles. - Click will now attempt to aid you with debugging locale errors better by listing with the help of the OS what locales are available. - Click used to return byte strings on Python 2 in some unit-testing situations. This has been fixed to correctly return unicode strings now. - For Windows users on Python 2, Click will now handle Unicode more correctly handle Unicode coming in from the system. This also has the disappointing side effect that filenames will now be always unicode by default in the `Path` type which means that this can introduce small bugs for code not aware of this. - Added a `type` parameter to `Path` to force a specific string type on the value. - For users running Python on Windows the `echo`) and `prompt` functions now work with full unicode functionality in the Python windows console by emulating an output stream. This also applies to getting the virtual output and input streams via `click.get_text_stream(...)`. - Unittests now always force a certain virtual terminal width. - Added support for allowing dashes to indicate standard streams to the `Path` type. - Multi commands in chain mode no longer propagate arguments left over from parsing to the callbacks. It's also now disallowed through an exception when optional arguments are attached to multi commands if chain mode is enabled. - Relaxed restriction that disallowed chained commands to have other chained commands as child commands. - Arguments with positive nargs can now have defaults implemented. Previously this configuration would often result in slightly unexpected values be returned.
2015-12-04 21:43:14 +01:00
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"