51 Commits

Author SHA256 Message Date
4aedbfd551 - Update to version 0.22.1:
- Features
 - Added expanding aliases to `showcmd` command using `-e` argument ([#6041](https://github.com/xonsh/xonsh/issues/6041)) ([5b706d4](5b706d493e))
 - **prompt:** Added XONSH_PROMPT_NEXT_CMD to set the text of the next command that will be inserted in the next prompt ([#6037](https://github.com/xonsh/xonsh/issues/6037)) ([8a04bad](8a04bad17a))
 - Bug Fixes
 - **appimage:** Fixed `xpy` value in `xcontext` in xonsh AppImage ([#6033](https://github.com/xonsh/xonsh/issues/6033)) ([5f27c06](5f27c06aa3))
 - **source-foreign:** Quote pathnames when sourcing a foreign function ([#6014](https://github.com/xonsh/xonsh/issues/6014)) ([818b19a](818b19a5fa))
 - **xoreutils:** Added KeyboardInterrupt handling in xoreutils yes command ([#6012](https://github.com/xonsh/xonsh/issues/6012)) ([cb71a8d](cb71a8d06b))
 - Documentation
 - add showcmd mention ([54e2898](54e2898e08))
 - Add xonsh install script ([#6046](https://github.com/xonsh/xonsh/issues/6046)) ([d044dc4](d044dc41cb))
 - platform guide micro fix ([93dd54e](93dd54eb06))
 - Refactor xonsh installation process description ([#6029](https://github.com/xonsh/xonsh/issues/6029)) ([3770165](3770165220))

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=41
2026-01-18 12:28:46 +00:00
5c8bcf591d - Update to version 0.22.0:
- ⚠ BREAKING CHANGES
 - Remove aliases `ipynb`, `scp-resume` from builtin aliases and rename `xonsh-reset` to `xreset` ([#5992](https://github.com/xonsh/xonsh/issues/5992))
 - Features
 - added `xpython` and `xсontext` builtin aliases ([#5989](https://github.com/xonsh/xonsh/issues/5989)) ([4382735](43827358d2))
 - **events:** added `events.handlers()` to get info about registered event handlers and also `events.__repr__` to just `print(events)`. ([#5994](https://github.com/xonsh/xonsh/issues/5994)) ([166a1a6](166a1a6a82))
 - Bug Fixes
 - allow spaces in auto-suggest completions ([#5993](https://github.com/xonsh/xonsh/issues/5993)) ([4332701](4332701179))
 - docs publish ([#5985](https://github.com/xonsh/xonsh/issues/5985)) ([e666ea9](e666ea9674))
 - **history:** Using absolute path to history file to prevent downstream issues ([#6002](https://github.com/xonsh/xonsh/issues/6002)) ([f1501b2](f1501b257c))
 - Documentation
 - add description and examples for `@.env.register` ([#5990](https://github.com/xonsh/xonsh/issues/5990)) ([9ce5d5d](9ce5d5d3d5))
 - Update tutorial to replace prompt ([#6007](https://github.com/xonsh/xonsh/issues/6007)) ([3260b77](3260b77ab4))
 - Update xonsh logo in the docs ([#6004](https://github.com/xonsh/xonsh/issues/6004)) ([dbeb276](dbeb27688b))
 - Code Refactoring
 - Remove aliases `ipynb`, `scp-resume` from builtin aliases and rename `xonsh-reset` to `xreset` ([#5992](https://github.com/xonsh/xonsh/issues/5992)) ([df3ff49](df3ff497e9))
- Update to version 0.21.2:
 - Bug Fixes
 - appimage upload to release ([#5982](https://github.com/xonsh/xonsh/issues/5982)) ([7965b1f](7965b1ffef))
- Update to version 0.21.1:
 - Bug Fixes
 - conditional checks for docs deployment ([#5980](https://github.com/xonsh/xonsh/issues/5980)) ([addaffe](addaffe986))
- Update to version 0.21.0:
 - ⚠ BREAKING CHANGES
 - `$AUTO_SUGGEST` is now deprecated in favour of `$XONSH_PROMPT_AUTO_SUGGEST`
 - Features
 - Added `@` as a global object that provides easy access to `@.env`, `@. lastcmd ` and `@.imp`(inline-imports) ([#5956](https://github.com/xonsh/xonsh/issues/5956)) ([64e3a3c](64e3a3c467))
 - added support for multiline shebang (guix fixed) ([#5957](https://github.com/xonsh/xonsh/issues/5957)) ([e9e0055](e9e0055c6c))
 - added support for using a p-string as a context manager to temporarily change the working directory (e.g., with p'~/test'.mkdir().cd(): $[pwd]) ([d9a14c1](d9a14c1f8c))
 - allow on_command_not_found handlers to return replacement commands ([#5952](https://github.com/xonsh/xonsh/issues/5952)) ([#5962](https://github.com/xonsh/xonsh/issues/5962)) ([14d9686](14d9686b3f))

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=39
2026-01-01 10:21:49 +00:00
1797baac46 Accepting request 1288431 from home:StevenK:branches:shells
- Use pyproject macros to build and install.

OBS-URL: https://build.opensuse.org/request/show/1288431
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=37
2025-06-25 04:54:47 +00:00
1e69f78a92 - Update to version 0.19.8:
* Bug Fixes
  * ci update
  * pypi wheel checking
  * update publish
- Update to version 0.19.6:
  * Bug Fixes
  * upload releases to PyPI
- Update to version 0.19.5:
  * Features
  * #5745 - send Ctrl+C event on Windows instead of forceful terminate
  * completion: Accept single completion in VI MODE using `Ctrl+]`
  * New experimental Rust based parser for xonsh
  * Bug Fixes
  * don't skip history items when running full history pull after session-specific pull
  * Performance Improvements
  * Disable double check is_file on Windows systems to speedup IO
  * Documentation
  * Add missing bash conversion example

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=36
2025-06-24 19:43:50 +00:00
836d8bd8e6 Accepting request 1273963 from home:dirkmueller:Factory
- update to 0.19.4:
  * Updated bash_completion.py from archived xonsh/py-bash-
    completion repo
  * Using trace on with .xsh scripts could previously lead to a
    spurious ignored exception showing up on stderr. This is now
    fixed.
  * bash_completion: Fixed empty line in completion result
    (https://github.com/xonsh/py-bash-completion/pull/21).
  * pipelines: fixed 'NoneType' object has no attribute 'pid'
    exception (#5794).
  * The history delete action on the sqlite backend used to pass
    matched history lines to a SQL statement without
    sanitization. This could lead to unexpected SQL being run on
    the history database. This is now fixed. Security risk: low.

OBS-URL: https://build.opensuse.org/request/show/1273963
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=34
2025-05-02 09:35:37 +00:00
7835d4b295 Accepting request 1248201 from home:Lioli7k:branches:shells
- fix use python3-base during build
  * full python3 is needed only during runtime.

OBS-URL: https://build.opensuse.org/request/show/1248201
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=32
2025-02-24 15:47:24 +00:00
36e3c9bcd6 Accepting request 1246434 from home:Lioli7k:branches:shells
- fix missing readline
  * depend on python3 instead of python3-base

- update to 0.19.2:
  * env: add $XONSH_PROMPT_CURSOR_SHAPE for configuring prompt
    cursor shape.
  * env: Added XONSH_CONFIG_DIR, XONSH_DATA_DIR and
    XONSH_CACHE_DIR.
  * SIGHUP will now be forwarded to child processes when received
    by the main xonsh process. This matches the behavior of other
    shells e.g. bash.
  * Documented the fact that the on_postcommand event only fires in
    interactive mode.
  * history: Added and documented --session-id parameter for
    history pull command.
  * history-json: Implemented history pull for JSON history
    backend.
  * Running a subcommand in an event handler will no longer block
    xonsh from exiting.
  * history: Prevented history pull command from adding consecutive
    duplicates to propmter history.
  * prompt toolkit: Fixed autosuggest sometimes not updating when
    up-arrow is pressed (#5787).
  * Subprocess-based completions like xontrib-fish-completer
    <https://github.com/xonsh/xontrib-fish-completer>_ no longer
    append a space if the single available completion ends with a
    directory separator. This is consistent with the behavior of
    the default completer.

OBS-URL: https://build.opensuse.org/request/show/1246434
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=30
2025-02-17 14:49:00 +00:00
d5177423c4 Accepting request 1170597 from home:dirkmueller:Factory
- update to 0.16.0:
  * Square brackets can now be used in command arguments without
    quotes (e.g. echo a[b])
  * Add XONSH_BASH_PATH_OVERRIDE option (off-by-default) to
    override what is returned by xonsh.platform.bash_command.
  * Added PATH.prepend(path) to add path to the beginning.
  * Xonsh AppImage now on Python 3.12 that works faster.
  * Xonsh AppImage: pinned prompt-toolkit version until fix
    upstream issue.
  * Builtin aliases (xontrib, history) switched to threadable
    mode.
  * EnvPath methods (append, remove, add, insert) prepare the
    path before action.
  * Replaced black formatter with ruff-format
  * source_foreign_fn now does not run subshells in interactive
    mode, so associated RC files like zshrc and bashrc will not
    be auto-loaded on sourcing.
  * Removed usage of deprecated cgi module
  * Removed ArgParserAlias.hook_pre_add_argument,
    ArgParserAlias.hook_post_add_argument. Please use custom
    action instead to modify the argument options.
  * Removed deprecated module xonsh.proc
  * Fixed an issue with completions when using absolute paths to
    commands and having $UPDATE_COMPLETIONS_ON_KEYPRESS set to
    True. https://github.com/xonsh/xonsh/issues/5127
  * Jobs: fixed "index out of range" exception.
  * Expressions like 2>1 are now parsed correctly as Python code
    instead of being treated like special io-redirection
    operators.
  * Redirect tokens in quotes (e.g. ">", "2>", "2>1") are now

OBS-URL: https://build.opensuse.org/request/show/1170597
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=28
2024-05-02 13:06:33 +00:00
d72a2071f0 Accepting request 1158714 from home:dirkmueller:Factory
- update to 0.15.1:
  * pytest: Fix pytest collection starting at pytest>=8.1.0
  * Updated docs to reflect VS Code support for xonsh as the
    user's default shell.
  * Pinned prompt-toolkit version 3.0.29-3.0.40 to workaround
    upstream issue. More info in issue 5241.

OBS-URL: https://build.opensuse.org/request/show/1158714
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=26
2024-03-20 14:43:46 +00:00
13e2dcbb29 Accepting request 1142071 from home:dirkmueller:Factory
- update to 0.14.4:
  * System clipboard can be fully disabled using
    $XONSH_USE_SYSTEM_CLIPBOARD.
  * xonsh now adds the user site packages directory to sys.path
    where required for proper xontrib discovery
  * history: fix json file permissions upon sudo
  * Correctly parse multi line foreign aliases
  * Upgrade Python version at the introduction

OBS-URL: https://build.opensuse.org/request/show/1142071
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=24
2024-01-31 14:18:56 +00:00
04bd4acf8d Accepting request 1119077 from home:dirkmueller:Factory
- update to 0.14.1:
  * Added ``history delete`` command to both the JSON and SQLite
    history backends allowing users to delete commands from
    history that matches a pattern.
  * Added preliminary support for Python v3.12
  * Always load rc files except that --norc is passed.
  * Unset the default line continuation environment variables
    (``$MULTILINE_PROMPT_PRE`` and ``$MULTILINE_PROMPT_POS``) to
    allow differentiating between user setting an empty value and
    not setting anything
  * Dropped support for Python v3.8
  * This change fixes issue #4855, that is, rc files will be
    loaded in non-interactive mode.

    multiline prompts via two environment variables:
  * Added ``chdir`` to ``xonsh.tools``. This allows to use
    ``menu-complete`` enables TAB behavior like ``readline`` command ``menu-complete``.  First TAB selects the first matching
  - ``xonfig jupyter-kernel`` new subcommand to generate xonsh kernel spec for jupyter.
    Installing a new xonsh kernel for jupyter automatically removes any other one registered with jupyter,
  - xonsh/environ.py: new rule: for "registered" environment variables (in ``DEFAULT_VARS`` or via ``env.register()``),
    if default is set to ``DefaultNotGiven``, then variable has no default and raises ``KeyError`` if it is not
  - ``xonfig info`` displays whether jupyter detected in environment and
  - setup no longer (tries to) install jupyter kernel automatically,
    ``pip install .`` wouldn't (because pip mucks with ``sys.path``),
  - Rewrote Installation and Configuration sections of Getting Started doc
  - Flake8/black fixes to the whole code tree, in 3 steps.
  - Fixed bug on Windows if Path elements has trailing spaces. Windows in general and ``os.path.isdir()``
    are still executed first to avoid a bug were other tests would prevent ``test_*.xsh``
  -  `[color] in .gitconfig (#3427) <https://github.com/xonsh/xonsh/issues/3427>`_ now stripped from {curr\_branch}
  - Remove built in support for "win unicode console". Full unicode support on windows is now provided by

OBS-URL: https://build.opensuse.org/request/show/1119077
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=22
2023-10-30 14:04:14 +00:00
6a1072b7bf Accepting request 1095482 from home:dirkmueller:Factory
- update to 0.14.0:
  * key_bindings: map `escape-f` as another word completer for macOS
  * Added ``history pull`` command to SQLite history backend to pull
    the history from parallel sessions and add to the current
    session.
  * Add support for `Semantic Prompt for line continuations in
    multiline prompts via two environment variables: 
    ``$MULTILINE_PROMPT_PRE``  and ``$MULTILINE_PROMPT_POS``
    (e.g., ``\x01\x1b]133;B\x07\x02``) that are inserted
    before/after each continuation line 'dots' block to mark input
  * Wheels for Python 3.11 are part of the automated release action
  * Added ``chdir`` to ``xonsh.tools``. This allows to use 
    ``with chdir("dir"):`` to run commands block in the certain
    directory without manually cd-ing.
  * Display the current branch of Fossil VCS checkouts in the prompt,
    similar to git and hg.
  * Added link to xonsh on Mastodon - https://mastodon.online/@xonsh
  * xontrib load: added option ``-s`` to skip warning about not
    installed xontribs.
  * Altered documentation for xonshrc to remove Python REPL prompts
    so that you can copy the code without having to edit it.
  * xonsh AppImage - bumped python to 3.11
  * The prompt end character switched to ``@``.
  * The `command not found` error will show the ``repr(cmd)``
    to uncover the cases when the command name has ``\n``, ``\t``
    or not visible color codes and raises the error.

OBS-URL: https://build.opensuse.org/request/show/1095482
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=20
2023-06-26 20:35:31 +00:00
9abdd19851 - update to version 0.13.4:
- Added:
  - tests for methods changed in tools.py (is_tok_color_dict)
  - ``$XDG_CACHE_HOME``, ``$XONSH_CACHE_DIR`` are now available inside ``Xonsh``
  - #2455 Add `on_command_not_found` event, fired when a command is not found.
 - Changed:
  - is_str_str_dict changed to check for Token:style dict
 - Removed:
  - ``$COMMANDS_CACHE_SIZE_WARNING`` is removed. When ``$COMMANDS_CACHE_SAVE_INTERMEDIATE`` is enabled,
    the cache file size is optimized.
 - Fixed:
  - #4668 Fix ptk completion stacking when auto-suggest is on and no normal completions are generated.
  - $XONSH_STYLE_OVERRIDES cannot be assigned dict of {Token: str} #4375
  - commands_cache: add a configurable value to disable cache. useful for running scripts
  - fixed stale results when ``$COMMANDS_CACHE_SAVE_INTERMEDIATE`` is enabled.
  - #4951 Fix gitstatus prompt when rebasing
  - fixed using aliases to override commands without the file extension on Windows
  - #3279 Add `XONSH_HISTORY_IGNORE_REGEX` support. You can specify a regular
    expression in the environment variable `XONSH_HISTORY_IGNORE_REGEX` and any
    command that matches the expression will not be added to the history.

- Update to version 0.13.2:

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=18
2022-12-10 09:06:46 +00:00
fe9a6ca4a2 Accepting request 1040647 from home:dirkmueller:Factory
- update to 0.13.3:
  * ``pygments`` startup crash when incorrect prepending ``bg:`` to
    ``noinherit`` style directives
  * When there is no git repository, the values of all ``gitstatus`` prompt
    fields are now ``None``.
  * With ``$THREAD_SUBPROCS=False``: When a callable alias is executed with
    ``![]``, its standard output and standard error are no longer captured.
    This is because a separate thread is required in order to both capture
    the output and stream it to the terminal while the alias is running.
  * Fixed timeit syntax error
  * When there is no git repository, ``$PROMPT`` format strings like
    ``{gitstatus: hello {}}`` now work as expected.
  * With ``$THREAD_SUBPROCS=False``: When ``cd`` is used with an invalid
    directory, the error message is now correctly displayed.
  * Fixed case when xpip returns None instead of command.

OBS-URL: https://build.opensuse.org/request/show/1040647
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=17
2022-12-10 08:54:37 +00:00
f2e0e6fa7a - update to version 0.13.1:
- Added:
 - The ujson (faster version of json) added to xonsh[full] package.
 - Changed:
 - Bumped Python version in `xonsh.AppImage` to 3.10
 - The terminal's title is updated with the current command's name even if the command is a captured command or a callable alias
 - Fixed:
 - Warn and continue if a user without ``pygments`` tries to load an unknown style
 - Fixed a bash completion bug when prefixing a file path with '<' or '>' (for redirecting stdin/stdout/stderr)
 - Fixed a bash completion bug when completing a git branch name when deleting a remote branch (e.g. `git push origin :dev-branch`)
 - A callable alias containing subprocess commands no longer freezes when piped to another command
 - ``less`` no longer stops when a callable alias containing subprocess commands is piped into it
 - ``gitstatus`` Prompt-field would be empty on paths without git setup.
 - When using the sway window manager, ``swaymsg -t get_inputs`` no longer fails with the error "Unable to receive IPC response"
 - The ``current_job`` variable now works as expected when used in ``$TITLE``
 - Security:
 - ``xpip`` will never add ``sudo`` under any circumstances and will instead append ``--user`` as needed
- update to version 0.13.0:
 - Removed:
 - The ``xonsh`` code-base is no longer amalgamated, so tracebacks should be
   human-readable without intervention.  This may have (minor) impacts on startup
   speed.
 - Fixed:
 - Fix xontrib loading for `free_cwd`
 - Fixed `whole_word_jumping` xontrib failing on Linux, conditional import of ``ptk_win32`` → Windows only
 - Fixed error caused by unintialized Xonsh session env when using Xonsh as a library just for its Pygments lexer plugin.
- update to version 0.12.6:
 - Fixed:
 - String literal concatenation now works with f-strings and path literals
 - A SyntaxError is raised when string literal concatenation is attempted with literals of different types (e.g. str and bytes)

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=15
2022-08-23 19:11:54 +00:00
2bce9c7b15 OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=14 2022-05-31 05:41:36 +00:00
eda43d3250 minor changelog fix
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=13
2022-05-22 10:39:02 +00:00
39f122fb87 - update to version 0.12.4:
- update to version 0.12.3:
 - Changed:
 - fix: remove os.path.basename from _get_git_branch()
 - now 3rd party xontrib list is maintained at `Awesome Xontribs <https://github.com/xonsh/awesome-xontribs/>`_ page.
   Going forward, new contributions will be updated here, making it not depending on `the xonsh release <https://github.com/xonsh/xonsh/issues/4679>`_.
 - Removed:
 - Removed Python 3.7 support following `NEP0029 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_
 - Fixed:
 - Dictionaries are now pretty-printed with their items in the correct order

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=12
2022-05-22 10:36:48 +00:00
ff1116a96c - update to version 0.12.2:
- Fixed completions for command argument paths after equal signs
 - A trailing space no longer gets appended when tab-completing command arguments that involve equals signs. For example `dd sta` gets completed to `dd status=`, without a space space after the equals sign.
 - regression on `gitstatus <https://github.com/xonsh/xonsh/pull/4771>`_ prompt is fixed now. It will display the value now instead of the name.
 - `fixed <https://github.com/xonsh/xonsh/pull/4763>`_ ``vox rm`` crashing when user input is required

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=11
2022-05-02 19:35:42 +00:00
4ed4e2fdad - removed obsolete fix-4550.patch
- update to version 0.12.1:
 - Fixed:
 - fixed regression issue in loading `xontrib-abbrevs <https://github.com/xonsh/xonsh/pull/4757>`_
 - Allow xonsh to start gracefully even if modal cursors aren't in the available
   prompt_toolkit version
- update to version 0.12.0:
 - Added:
 - Added interface to complete any alias that has ``xonsh_complete`` attribute. It is a function with ``fn(**kwargs) -> Iterator[RichCompletion | str]`` signature.
 - added ``$ALIAS_COMPLETIONS_OPTIONS_LONGEST`` to control showing options in completions
 - added ``$CMD_COMPLETIONS_SHOW_DESC`` environment variable to control showing command completions with a description part.
 - `completer complete` command is added to test current completions
 - completions from man page will now show the description for the options if available.
 - ``$XONSH_COMPLETER_DIRS`` to put command completers
 - ``Aliases.register`` to register an alias function.
 - Tracebacks are now printed in color if available (interactive session with shell that supports colors with pygments installed and $COLOR_RESULTS enabled)
 - Added python's match statement for python >=3.10.
 - Added support for the $SHLVL environment variable, typed as int, using bash's semantics.
 - Python files with command completions can be put inside ``xompletions`` namespace package,
   they will get loaded lazily.
 - `xontrib.fish_completer` is available to complete using `fish` shell.
 - Support for pythons sys.last_type, sys.last_value, sys.last_traceback.
 - added ``xonsh-uname`` command to ``xoreutils``
 - auto-completion support for commands : ``source-foreign``, ``source-bash``, ``source-zsh``, ``source-cmd``
 - added ``history transfer`` command to transfer history entries between backends.
 - now ``$PROMPT_FIELDS`` is a custom class with method ``pick(field_name)`` to get the field value efficiently.
   The results are cached within the same prompt call.
 - new class ``xonsh.prompt.base.PromptField`` to ease creating/extending prompt-fields
 - **Sublime Text 4** extension to the Editors page.

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=10
2022-04-19 14:27:39 +00:00
8d6464c8b0 Accepting request 950673 from home:bmwiedemann:branches:shells
build docs without ASLR for deterministic results (boo#1062303)
- drop non-deterministic sphinx artifacts

OBS-URL: https://build.opensuse.org/request/show/950673
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=9
2022-02-02 08:06:59 +00:00
65a95f3b35 - add fix-4550.patch to fix doc build error and re-enable doc builds.
OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=7
2021-11-18 19:53:03 +00:00
1374d22ac0 - update to version 0.11.0:
- Added:
 - added new utility classes ``xonsh.cli_utils.ArgParserAlias``, ``xonsh.cli_utils.ArgCompleter``.
   These are helper classes, that add coloring and auto-completion support to the alias-commands.
 - when ``$ENABLE_ASYNC_PROMPT=True`` lazy load ``prompt-toolkit``'s color-input support.
 - Add ``CTRL-Right`` key binding to complete a single auto-suggestion word.
 - Show environment variables' type and descriptions when completing them.
 - Add ``CTRL-Backspace`` key binding to delete a single word via ``$XONSH_CTRL_BKSPC_DELETION``.
 - Improved ``pip``/``xpip`` completer.
 - Separator used by gitstatus can now be styled using ``XONSH_GITSTATUS_SEPARATOR``.
 - Complete 'import' statements with modules that aren't loaded.
 - Complete multiple modules/objects in 'import' statements.
 - Multiple new metadata fields in ``setup.py``
 - Pure Python control files are now supported when named ``*.py``.
   Using python files may lower the startup time by a bit.
 - new environment variable ``$XONSH_TRACE_SUBPROC_FUNC``
   to handle ``$XONSH_TRACE_SUBPROC`` output
 - Added `xontrib-pyrtn <https://github.com/dyuri/xontrib-pyrtn>` to xontrib list.
 - Changed:
 - Display error message when running `xonfig colors` in a non-interactive shell
 - Using ``ArgparserAlias`` for ``dirs``, ``popd``, ``pushd``
 - use ``ArgparserAlias`` for ``disown`` alias with completion support
 - ``history`` alias now has colored help message and completion support when running interactively.
 - using ``ArgparserAlias`` for ``trace`` alias with completion support
 - improve ``vox`` CLI completions
 - use ArgparserAlias for ``xexec``. Now it supports completions.
 - ``xonfig`` now has colored help message when ran interactively.
 - Using ``ArgparserAlias`` to improve ``xontrib`` completions
 - Changed !() to also capture background subprocesses
 - Suggested commands are cached for better performance.

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=6
2021-11-18 11:10:02 +00:00
6320595c12 - update to version 0.10.1:
- Fixed:
 - ``execx`` and ``xonsh -c`` previously exposed xonsh-internal code in global scope. They also did not support defining variables and then referring to them in comprehensions, generators, functions, or lambdas. - https://github.com/xonsh/xonsh/issues/4363
 - Short color token names can be used in ``register_custom_style()`` (#4339)
- update to version 0.10.0:
 - Added:
 - Added ability to set XONSH_HISTORY_FILE before loading the history backend.
 - Added ability to get the arguments list in ExecAlias using ``$args`` and ``$arg<n>`` environment variables.
 - Added instruction how to run xonsh AppImage on Alpine
 - Xonsh now supports generators as completer functions.
 - Completion Context - Allow completers to access a parsed representation of the current commandline context.
 - Added casting CommandPipeline to int, hash and str.
 - Ability to call the tool by the name from callable alias with the same name without the infinite loop error.
 - ``on wsl`` field when running xonfig (when linux is detected)
 - Help and superhelp (``obj?`` and ``obj??``) now use the ``__name__`` if available.
 - added ``$XONSH_GITSTATUS_FIELDS_TO_HIDE`` to hide unwanted fields from ``{gitstatus}`` prompt field.
 - Added number of lines added and removed to gitstatus
 - Saving current working directory (cwd) to the history.
 - Added XONSH_HISTORY_SAVE_CWD environment variable.
 - Added environment variable ``$COMPLETE_DOTS`` to specify how current and previous directories should be tab completed in cd  ('./', '../'):
     - ``always`` Always complete paths with ./ and ../
     - ``never`` Never complete paths with ./ and ../
     - ``matching`` Complete if path starts with . or ..
 - Complete ``import`` keyword in ``from ... import`` statements.
 - Enabled case-insensitive completions for the ``jedi`` xontrib.
 - Non-exclusive completers that enable aggregating multiple completer results.
 - New ``$XONSH_CAPTURE_ALWAYS`` variable for opt-in interactive capturing.
   Since this capturing breaks background jobs and some interactive programs (like ``git`` invoking an editor),
   This behavior is now opt-in using this variable.
   See https://github.com/xonsh/xonsh/pull/4283 and linked issues.

OBS-URL: https://build.opensuse.org/package/show/shells/xonsh?expand=0&rev=4
2021-07-27 10:39:59 +00:00
fd4946802c Accepting request 879288 from shells
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/879288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=27
2021-03-18 21:54:30 +00:00
d8579122f7 Accepting request 846959 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/846959
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=26
2020-11-08 19:59:33 +00:00
3e905c63b7 Accepting request 842364 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/842364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=25
2020-10-18 14:36:40 +00:00
483dd68e1f Accepting request 838684 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/838684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=24
2020-09-30 17:54:26 +00:00
d59c21f746 Accepting request 833392 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/833392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=23
2020-09-10 20:52:54 +00:00
88325ff8c9 Accepting request 805663 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/805663
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=22
2020-05-16 20:26:38 +00:00
ee417f254b Accepting request 791562 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/791562
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=21
2020-04-07 08:28:37 +00:00
b20a88cf7f Accepting request 782247 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/782247
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=20
2020-03-07 20:41:21 +00:00
a3373d45a0 Accepting request 722839 from devel:languages:python
- update to version 0.9.10:
 - Added:
  - $PROMPT_REFRESH_INTERVAL: Automatically invalidate the PROMPT every so many seconds.
  - Allow disabling individual items in gitstatus prompt
 - Fixed:
  - Fix ``cat`` can't read pseudo files with zero size such as /proc/\* or /sys/\* (#3182, #3199)
  - command-not-found: now works on non-Debian bansed distributions
  - Implemented ``'target'`` psuedo-color in ``$LS_COLORS`` for link coloring based
    off of the link target. This was causing issues on some systems where this is
    the default.

OBS-URL: https://build.opensuse.org/request/show/722839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=19
2019-08-13 11:27:03 +00:00
9a4b0f0d3d Accepting request 720288 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/720288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=18
2019-08-05 08:38:33 +00:00
0c74b31d4a Accepting request 715542 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/715542
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=17
2019-07-18 13:20:03 +00:00
90222a0836 Accepting request 713860 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/713860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=16
2019-07-08 13:11:56 +00:00
f65f7091a9 Accepting request 709544 from devel:languages:python
- remove docroot from a documentation file, workaround for rpmlint error file-contains-buildroot
- update to version 0.9.5:
 - Fixed:
  - Style 'bw'. Background colors was added in the style description.
  - Fix causing error in ``get_predictor_threadable`` on windows when try to run not exist command
  - ``pip`` completer no longer fires when ``pip`` happens to appear within a word
    like ``bagpipes``
  - Fixed issue with ``history gc`` command not running properly.
- update to version 0.9.4:
 - Added:
  - Add processing ``%d`` for avoid overwriting in ``run-tests.xsh``
 - Changed:
  - Xonsh now does not attempt to expand raw strings, so now::
      $ echo "$HOME"
      /home/user
      $ echo r"$HOME"
      $HOME
  - sudoedit now runs unthreaded
 - Fixed:
  - threadable predictor for 'env' command based on predictor from the executed
    command. Fixes #2759 and #3103.
  - An error in the 'xon.sh' executable that only popped up during testing has
    been fixed.  Specifically: It now directly calls 'python3' without invoking
    'env'.
  - bashisms extension can be used again with prompt_toolkit v1
  - Fix a crash when setting ``$INTENSIFY_COLORS_ON_WIN`` in certain situations.
  - Fix issue with bashsisms xontrib causing syntax errors for some Python statements
  - portable trick to pass args which replace '/usr/bin/env' is removed and
    '/usr/bin/env' is used. Fixes bug when a python3 used is outside the default
    'PATH'.
- update to version 0.9.3:
 - Deprecated:
  - Python v3.4 has been fully, completely, and (hopefully) correctly
    deprecated. Please migrate to an officially supported version of Python.
- update to version 0.9.2:
 - Changed:
  - For aliases, predictor is build with the predictor of original command, in
    place of default predictor.
 - Fixed:
  - Updated setup.py to require Python 3.4 using the ``python_requires`` keyword.
    This rectifies issues with pip installing xonsh. Python 3.4 support will
    be removed on the following release.
- update to version 0.9.1:
 - Changed:
  - We no longer manually check the Python version in ``setup.py``,
    but instead use the setuptools ``python_requires`` feature.
 - Fixed:
  - Updates for integrating with new colors styles in Pygments v2.4.0.
- update to version 0.9.0:
 - Added:
  - Implemented the following "bang command" bashisms: ``!$``, ``$*``, ``!^``,
    and ``!<str>``.  These are in addition to ``!!``, which was already
    implemented.
  - asciinema (terminal recorder) added in not threadable commands.
  - tput added in not threadable commands.
  - New ``color_tools.KNOWN_XONSH_COLORS`` frozenset.
  - New ``pyghooks.PYGMENTS_MODIFIERS`` mapping from color modifier names to
    pygments colors.
  - New ``pyghooks.color_name_to_pygments_code()`` function for converting
    color names into pygments color codes.
 - Changed:
  - Circle now runs ``black`` checks on contents of bundled xontribs
  - The ``black`` checks no longer skip some files buried deeper in the directory
    tree.
  - Errors while formatting the prompt are highlighted for easier debugging.
  - Pygments styles only define the standard set of colors, by default.
    Additional colors are computed as needed.
  - PTYs created for running threadable command have now size set to same size
    than main terminal.
  - Update documentation pointing to the minimal required version of
    Python (3.5).
 - Deprecated:
  - Drop support for Python 3.4.
 - Removed:
  - ``pyghooks.KNOWN_COLORS`` is no longer needed or useful as pygments colors
    are computed automatically.
  - ``style_tools.KNOWN_COLORS`` was never used, redundant with
    ``pyghooks.KNOWN_COLORS`` and has thus been removed.
 - Fixed:
  - Fixed a DeprecationWarning that would show up during an import of MutableSet.
  - Fixed error with aliases composed of functions wrapped in functools.partial.
  - ``black`` formatted all xontribs
  - deleting a non existing environement variable with default value do nothing
    instead of raising a exception trying to deleting it in existing values dict.
  - Fixed crash while converting ANSI color codes with leading zeroes
  - Fixed crash while parsing invalid ANSI color code
  - fix causing infinite loop when doing ``cat`` empty file
  - Fixed issue which occurs when user doesn't have access to parent directory and
    xonsh scan all parents directory to find if we are in a Hg repository.
  - Fixed issue with pygments-cache not properly generating a cache the first
    time when using prompt-toolkit when using ``ptk2``.
    This was due to a lingering lazy import of ``pkg_resources``
    that has been removed.
  - Minor update for Python v3.8.
  - Fixed a "'NoneType' object is not iterable" bug when looking up ``stty``
    in command cache.
  - The release tarball now includes all test files.
  - Arguments passed to python in 'scripts/xonsh' and in 'scripts/xonsh-cat' are
    now passed by a portable hack in sh, not anymore by /usr/bin/env.

OBS-URL: https://build.opensuse.org/request/show/709544
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=15
2019-06-13 21:03:21 +00:00
98174b06cc Accepting request 687599 from devel:languages:python
- update to version 0.8.11
 - Added:
  - New ``xonsh.color_tools.short_to_ints()`` function for directly
    converting a short (0 - 256) color into a 3-tuple of ints
    represeting its RGB value.
  - New ``xonsh.ansi_colors.ansi_reverse_style()`` function for
    converting a mapping of color names to ANSI escape codes into
    a mapping from escape codes into color names. This is not a
    round-trippable operation.
  - New ``xonsh.ansi_colors.ansi_color_escape_code_to_name()`` function
    for converting an ANSI color escape code into the closest xonsh
    color name for a given style.
  - New ``xonsh.events.EventManager.exists()`` method enables the checking
    of whether events actually exist with out making the event if it
    doesn't exist.
  - New command-specific event categories called ``on_pre_spec_run_<cmd-name>``
    and ``on_post_spec_run_<cmd-name>`` will be fired before and after
    ``SubpocSpec.run()`` is called.  This allows for command specific
    events to be executed.  For example, ``on_pre_spec_run_ls`` would
    be run prior to an invocation of ``ls``.
  - New ``xonsh.environ.LsColors`` class for managing the ``$LS_COLORS``
    environment variable. This ensures that the ``ls`` command respects the
    ``$XONSH_COLOR_STYLE`` setting. An instance of this class is added to the
    environment when either the ``$LS_COLORS`` class is first accessed or
    the ``ls`` command is executed.
  - The ``on_pre_spec_run_ls`` event is initialized with a default handler
    that ensures that ``$LS_COLORS`` is set in the actual environment prior
    to running an ``ls`` command.
  - New ``xonsh.tools.detype()`` function that simply calls an objects own
    ``detype()`` method in order to detype it.

OBS-URL: https://build.opensuse.org/request/show/687599
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=14
2019-04-05 09:56:53 +00:00
a9fefa4cb3 Accepting request 679043 from devel:languages:python
- update to version 0.8.10
 - Added:
  - New ``xonsh.aliases.partial_eval_alias()`` function and related classes
    for dispatching and evaluating partial alias applications for callable
    aliases.
 - Changed:
  - Subprocesses will no longer close file descriptors automatically.
    This was causing issues with other commands that expected file
    descriptors to remain open, such as ``make``.
  - The ``xonsh.Aliases.eval_alaises()`` method updated to use
    ``xonsh.aliases.partial_eval_alias()``.
 - Fixed:
  - Fixed ``xonsh.completers.base.complete_base()`` to no longer throw an
    error caused by ``complete_python()`` sometimes returning a tuple.
    This fixes cases such as ``ls &&<TAB>``.
  - Fixed regression with line continuations in implicit subprocess mode within
    indented blocks of code, such as if-statements.
  - Resolved issue where setting empty signal masks was causing the
    terminal to close. This was problematic for certain command
    pipelines. For example, ``pv /dev/urandom | head`` now works.
  - Prevents recurssive errors from being raised when there is no child process
    in ``xonsh.jobs.wait_for_active_job()``.
  - Tweaked ``xonsh.completers.commands.complete_skipper()`` to insert a space following
    certain tokens (``&&``, ``||``, ``|``, ``and``, ``or``) to avoid overwriting existing tokens
    with completer output.
  - Fixed bug with evaluating recurssive aliases that did not implement
    the full callable alias signature.
 - Security:
  - <news item>,
 - Authors:
  - Anthony Scopatz
  - Gil Forsyth
  - Troy de Freitas
- update to version 0.8.9
 - Added:
  - New ``env_prefix`` & ``env_postfix`` prompt fields for rendering the pre- and
    post-fix characters of the an active virtual environment.
  - ON_WSL attribute in platform.py
  - Rendering of ``{env_name}`` in ``$PROMPT`` is now suppressed if
    the ``$VIRTUAL_ENV_DISABLE_PROMPT`` environment variable is
    defined and truthy.
  - Rendering of ``{env_name}`` in ``$PROMPT`` is now overridden by
    the value of ``str($VIRTUAL_ENV_PROMPT)`` if that environment variable
    is defined and ``not None``. ``$VIRTUAL_ENV_DISABLE_PROMPT`` takes precedence
    over ``$VIRTUAL_ENV_PROMPT``.
  - A xontrib which adds support for `direnv <https://direnv.net/>`_
 - Changed:
  - ``env_name`` prompt field now looks up the pre- and post-fix characters,
    rather than relying on hard-coded values.
  - Some minor ``history show`` efficiency improvements.
  - If we are on wsl, avoid to use xonsh_preexec_fn when pipe.
 - Fixed:
  - Made ``$PATH`` searching more robust to broken symlinks on Windows.
  - undesirable SIGSTOP by putting in a SIGCONT
  - Fixed issue with recursive aliases not being passes all keyword arguments
    that are part of the callable alias spec. This allows commands like
    ``aliases['hsa'] = "history show all"; hsa | head`` to no longer fail
    with strange errors.
 - Authors:
  - Anthony Scopatz
  - Sagar Tewari
  - Brian Skinn
  - Yohei Tamura
  - anatoly techtonik
  - 74th
  - Chad Kennedy

OBS-URL: https://build.opensuse.org/request/show/679043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=13
2019-02-26 21:20:34 +00:00
73aca76cc2 Accepting request 667871 from devel:languages:python
- update to version 0.8.8
 - Added:
  - ``vox new`` has an added ``-p --interpreter`` flag for choosing the python interpreter to use for virtualenv creation
  - The default Python intrepreter vox uses to create virtual environments can be set using the ``$VOX_DEFAULT_INTERPRETER`` environment variable.
 - Changed:
  - ``lib.ChainDB`` now resolves results to the type of the inputs if possible
- update to version 0.8.7
 - Added:
  - New xonsh syntax ``pf`` strings -- combining path strings with f-strings.
    Usage:
    .. code-block:: bash
         gil@bad_cat ~ $ repos = 'github.com'
         gil@bad_cat ~ $ pf"~/{repos}"
         PosixPath('/home/gil/github.com')
         gil@bad_cat ~ $ pf"{$HOME}"
         PosixPath('/home/gil')
         gil@bad_cat ~ $ pf"/home/${'US' + 'ER'}"
         PosixPath('/home/gil')
 - Fixed:
  - Set ``ls`` to ``predict_true`` in ``default_threadable_predictors``.  This prevents ``ls`` on OSX
    from being flagged on OSX as unthreadable (incorrectly) because it relies on ``ncurses``.
- update to version 0.8.6
 - Added:
  - Doco about how to update xonsh and how to set and unset environment variables
 - Fixed:
  - Updated behavior of the ``cat`` coreutils function so that it properly
    handles as vareity of cases such as:
      * Exits after concatenating normal files which have a finite size
      * Continues to run for special files which do not have a size,
        such as ``/dev/random``
      * Is interruptable in all cases with Crtl-C.
  - Callable aliases were not properly raising a ``CalledProcessError`` when they
    returned a non-zero exist status when ``$RAISE_SUBPROC_ERROR = True``. This has
    been fixed.
  - Fixed interpretation of color names with PTK2 and Pygments 2.3.1.
- update to version 0.8.5
 - Added:
  - Add alias to `base16 shell <https://github.com/chriskempson/base16-shell>`_
  - Installation / Usage
      1. To install use pip
      .. code-block:: bash
          python3 -m pip install xontrib-base16-shell
      2. Add on ``~/.xonshrc``
      .. code:: python
          :number-lines:
          $BASE16_SHELL = $HOME + "/.config/base16-shell/"
          xontrib load base16_shell
      3. See image
      .. image:: https://raw.githubusercontent.com/ErickTucto/xontrib-base16-shell/master/docs/terminal.png
          :width: 600px
          :alt: terminal.png
  - New ``DumbShell`` class that kicks in whenever ``$TERM == "dumb"``.
    This usually happens in emacs. Currently, this class inherits from
    the ``ReadlineShell`` but adds some light customization to make
    sure that xonsh looks good in the resultant terminal emulator.
  - Aliases from foreign shells (e.g. Bash) that are more than single expressions,
    or contain sub-shell executions, are now evaluated and run in the foreign shell.
    Previously, xonsh would attempt to translate the alias from sh-lang into
    xonsh. These restrictions have been removed.  For example, the following now
    works:
    .. code-block:: sh
        $ source-bash 'alias eee="echo aaa \$(echo b)"'
        $ eee
        aaa b
  - New ``ForeignShellBaseAlias``, ``ForeignShellFunctionAlias``, and
    ``ForeignShellExecAlias`` classes have been added which manage foreign shell
    alias execution.
 - Changed:
  - String aliases will now first be checked to see if they contain sub-expressions
    that require evaluations, such as ``@(expr)``, ``$[cmd]``, etc. If they do,
    then an ``ExecAlias`` will be constructed, rather than a simple list-of-strs
    substitutiuon alias being used. For example:
    .. code-block:: sh
        $ aliases['uuu'] = "echo ccc $(echo ddd)"
        $ aliases['uuu']
        ExecAlias('echo ccc $(echo ddd)\n', filename='<exec-alias:uuu>')
        $ uuu
        ccc ddd
  - The ``parse_aliases()`` function now requires the shell name.
  - ``ForeignShellFunctionAlias`` now inherits from ``ForeignShellBaseAlias``
    rather than ``object``.
 - Fixed:
  - Fixed issues where the prompt-toolkit v2 shell would print an extra newline
    after Python evaluations in interactive mode.
- update to version 0.8.4
 - Added:
  - Added the possibility of arbitrary paths to the help strings in ``vox activate`` and
    ``vox remove``; also updated the documentation accordingly.
  - New ``xonsh.aliases.ExecAlias`` class enables multi-statement aliases.
  - New ``xonsh.ast.isexpression()`` function will return a boolean of whether
    code is a simple xonsh expression or not.
  - Added top-level ``run-tests.xsh`` script for safely running the test suite.
 - Changed:
  - String aliases are no longer split with ``shlex.split()``, but instead use
    ``xonsh.lexer.Lexer.split()``.
  - Update xonsh/prompt/cwd.py _collapsed_pwd to print 2 chars if a directory begins with "."
  - test which determines whether a directory is a virtualenv
    previously it used to check the existence of 'pyvenv.cfg'
    now it checks if 'bin/python' is executable
 - Fixed:
  - Fixed issue with ``and`` & ``or`` being incorrectly tokenized in implicit
    subprocesses. Auto-wrapping of certain subprocesses will now correctly work.
    For example::
        $ echo x-and-y
        x-and-y
  - Fix EOFError when press `control+d`
  - fix no candidates if no permission files in PATH
  - Fixed interpretation of color names with PTK2 and Pygments 2.3.
  - Several ResourceWarnings: unclosed file in tests
  - AttributeError crash when using --timings flag
  - issue #2929
- update to version 0.8.3
 - Added:
  - Dociumentation paragrapgh about gow to run xonsh in Emacs shell
 - Changed:
  - Updated what pip requirements are needed to build the documnetaion
  - ``$XONSH_TRACEBACK_LOGFILE`` now beside strings also accepts ``os.PathLike``
    objects.
  - Updated vended version of ``ply`` to 3.11
  - Deprecation warnings now print from stacklevel 3.
 - Fixed:
  - Annotation assignment statements (e.g. ``x : int = 42``) are now supported.
  - Fixed error output wording for fg and bg commands
  - Flake8 errors
  - xonsh can now properly parse import statements with trailing comma within
    parentheses, e.g.::
      from x import (y, z,)
  - ResourceWarning: unclosed scandir iterator in imphooks.py
  - Removed use of deprecated ``inspect.formatargspec()`` for ``inspect.signature()``
  - ``Makefile`` directive that updates vended version of ``ply``

OBS-URL: https://build.opensuse.org/request/show/667871
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=12
2019-01-24 13:14:21 +00:00
a4abc2a325 Accepting request 653698 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/653698
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=11
2018-12-14 19:53:46 +00:00
9698347d1d Accepting request 646484 from devel:languages:python
- update to version 0.8.1
 - Added:
  - ``SubprocSpec`` has a new ``pipeline_index`` integer attribute that indicates
    the commands position in a pipeline. For example, in
    .. code-block:: sh
      p = ![ls -l | grep x]
    The ``ls`` command would have a pipeline index of 0
    (``p.specs[0].pipeline_index == 0``) and ``grep`` would have a pipeline index
    of 1 (``p.specs[1].pipeline_index == 1``).  This may be usefule in callable
    alaises which recieve the spec as an argument.
 - Changed:
  - Removed ``fish`` from list of supported foreign shells in the wizard.
  - Circle CI config updated to use a pinned version of ``black`` (18.9b0)
  - Pytest plugin now uses ``xonsh.main.setup()`` to setup test environment.
  - Linux platform discovery will no longer use ``platform.linux_distribution()``
    on Python >=3.6.6. due to pending deprecation warning.
  - Updated Linux Guide as Xonsh is now available in Arch Linux official repositories.
 - Fixed:
  - Builtin dynamic proxies and deprecation warning proxies were not deleting
    attributes and items properly.
  - Fixed stdout/sdterr writing infinite recurssion error that would occur in
    long pipelines of callable aliases.
  - Fixed a bug which under very rare conditions could cause the shell
    to die with PermissionError exception while sending SIGSTOP signal
    to a child process.
  - Fixed further raw string deprecation warnings thoughout the code base.
- update to version 0.8.0
 - Added:
- changelog.sh is an internal script for generating changelog.

OBS-URL: https://build.opensuse.org/request/show/646484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=10
2018-11-08 08:48:30 +00:00
f07c7f7951 Accepting request 637174 from devel:languages:python
- update to version 0.7.7:
 - Added:
  - A xontrib which adds support for autojump to xonsh
  - Added new env-var ``XONSH_HISTORY_MATCH_ANYWHERE``. If set to ``True`` then
    up-arrow history matching will match existing history entries with the search
    term located anywhere, not just at the beginning of the line. Default value is
    ``False``
 - Changed:
  - Improved iteration over virtual environments in Vox.__iter__
 - Fixed:
  - Fix for ``Enter`` not returning from Control-R search buffer
  - Fixed automatic wrapping of many subprocesses that spanned multiple lines via
    line continuation characters with logical operators separating the commands.
    For example, the following now works:
    .. code-block:: sh
          echo 'a' \
          and echo 'b'
  - Environment swapping would not properly reraise errors due to weird
    Python name binding issue.
- update to version 0.7.6:
 - Added:
  - Callable aliases may now accept a ``stack`` argument. If they do, then the
    stack, as computed from the aliases call site, is provided as a list of
    ``FrameInfo`` objects (as detailed in the standard library ``inspect``
    module). Otherwise, the ``stack`` parameter is ``None``.
  - ``SubprocSpec`` now has a ``stack`` attribute, for passing the call stack
    to callable aliases. This defaults to ``None`` if the spec does not
    need the stack. The ``resolve_stack()`` method computes the ``stack``
    attribute.
 - Changed:
  - xonsh/environ.py
    Exceptions are caught in the code executed under Env.swap()
 - Fixed:
  - Scripts are now cached by their realpath, not just abspath.
  - Fixed a potential crash (``AssertionError: wrong color format``) on Python 3.5 and prompt_toolkit 1.
  - The ``completer`` command now correctly finds completion functions
    when nested inside of other functions.
  - Fixed a crash when using the ``$XONSH_STDERR_PREFIX/POSTFIX`` with
    prompt_toolkit and Pygments 2.2.
- update to version 0.7.5:
 - Fixed:
  - Recent command history in ptk2 prompt now returns most recently executed
    commands first (as expected)
  - Fixed a regression taat prevented the readline backend from beeing used. This
    regression was caused by the new ansi-color names, which are incompatible with
    pygments 2.2.
- update to version 0.7.4:
 - Added:
  - New ``xonsh-cat`` command line utility, which is a xonsh replacement
    for the standard UNIX ``cat`` command.
  - The new ``xonsh.xoreutils.cat.cat_main()`` enables the ``xonsh.xoreutils.cat``
    module to be run as a command line utility.
  - New ``CommandsCache.is_only_functional_alias()`` and
    ``CommandsCache.lazy_is_only_functional_alias()`` methods for determining if
    if a command name is only implemented as a function, and thus has no
    underlying binary command to execute.
  - ``xonsh.xontribs.xontribs_load()`` is a new first-class API for loading
    xontribs via a Python function.
  - ``$COMPLETIONS_DISPLAY`` now supports readline-like behavior on
    prompt-toolkit v2.
 - Changed:
  - The xonsh Jupyter kernel now will properly redirect the output of commands
    such as ``git log``, ``man``, ``less`` and other paged commands to the client.
    This is done by setting ``$PAGER = 'cat'``. If ``cat`` is not available
    on the system, ``xonsh-cat`` is used instead.
  - The ``setup()`` function for starting up a working xonsh has ``aliases``,
    ``xontribs``, and ``threadable_predictors`` as new additional keyword
    arguments for customizing the loading of xonsh.
 - Fixed:
  - Fixed a bug with converting new PTK2 colors names to old names when using PTK1 or Jupyter
      as the shell type.
  - ``CommandsCache.locate_binary()`` will now properly return None when
    ``ignore_alias=False`` and the command is only a functional alias,
    such as with ``cd``. Previously, it would return the name of the
    command.
  - Fixed issue with ``$COMPLETIONS_DISPLAY`` raising an error on
    prompt-toolkit v2 when the value was not set to ``multi``.
  - ValueError when executing ``vox list``

OBS-URL: https://build.opensuse.org/request/show/637174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=9
2018-09-24 11:13:30 +00:00
ac4793ef88 Accepting request 631175 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/631175
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=8
2018-08-24 15:12:03 +00:00
fa75c4d00c Accepting request 622801 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/622801
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=7
2018-07-18 20:54:37 +00:00
afa5d2223c Accepting request 617152 from devel:languages:python
- update to version 0.6.6:
 * Added:
  * A multipurpose add method to EnvPath.
  * Added ``pygments-cache`` project in order to reduce startup time.
 * Changed:
  * built_ins.py, corrected a typo.
  * test/test_news.py
    It now uses regex to verify the format of rst files
  * Mercurial (``hg``) will no longer run in a threadable subprocess when
    it is run in interactive mode.
 * Fixed:
  * issue 2313
- update to version 0.6.5:
 * Added:
  * Wizard ``FileInsterter`` node class now has ``dumps()`` method for
    converting a mapping to a string to insert in a file.
 * Fixed:
  * Fixed issue with ``xonfig wizard`` writer failing to write valid run control
    files for environment variables that are containter types. In particular,
    the storage of ``$XONSH_HISTORY_SIZE`` has been fixed.

OBS-URL: https://build.opensuse.org/request/show/617152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=6
2018-06-29 20:27:06 +00:00
7d2d4d3386 Accepting request 611051 from devel:languages:python
- update to version 0.6.4:
 * Changed:
  * Error message improved for sourcing foreign shells, when file cannot be found
    or there is a syntax error.
 * Fixed:
  * Fixed issues with readline completer tab completing entries
    with spaces.
  * Fixed ``xonsh.tools.columnize()`` bug the prevented single-row
    input from being columnized correctly.
  * Now honor ASYNC and AWAIT as keywords in tokenizer on
    Python 3.7.

OBS-URL: https://build.opensuse.org/request/show/611051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=5
2018-05-29 08:38:01 +00:00
9716ce74e8 Accepting request 606300 from devel:languages:python
- update to version 0.6.3:
 * Added:
  * Docs for using ``@(<expr>)`` as a way to run commands and a gotcha about
    list of strings vs single string expressions.
  * Ubuntu versions which xonsh is packaged for (with xonsh versions)
 * Changed:
  * When reporting errors without a traceback (i.e. ``$XONSH_SHOW_TRACEBACK = False``) and the error is a ``XonshError``
    the exception type is not longer printed.
  * ``CommandPipeline.proc`` may now be ``None``, to accomodate when the process
    fails to even start (i.e. a missing command or incorrect permisions).
 * Fixed:
  * The ``curl`` command will now be run in a thread, which prevents documents that
    do not end in a newline from writing over the next prompt and vice versa.
  * Fix bug on Windows when ``PATHEXT`` environment variable did not exist.
    This also fixes building the xonsh documentation on Windows.
  * Fixed a bug in the `free_cwd <http://xon.sh/xontribs.html#free-cwd>`__ Windows Xontrib, which caused the prompt to error if the current directory is 
    deleted/renamed from an other process.
  * Fixed issue with ``$XONSH_SHOW_TRACEBACK`` not being respected in subprocess
    mode when the command could not be found or had incorrect permissions.

OBS-URL: https://build.opensuse.org/request/show/606300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=4
2018-05-11 07:19:08 +00:00
0c82ee0ba9 Accepting request 603097 from devel:languages:python
- update to version 0.6.2:
 * Added:
  * Release tarballs now include licenses and minimal documentation for xonsh and ply
  * Wizard now has a FileInserter node that allows blocks to be inserted and replaced inside of a file. This adheres to conversion rules fordumping as provided on this node.
  * New xonsh.wizard.StateVisitor.flatten() method for flattening the current state.
 * Changed:
  * The xonsh startup wizard will only be triggered if no xonshrc files exist and the file ~/.local/config/xonsh/no-wizard is not present.
  * The xonfig wizard command will now run write out to the xonshrc file.
  * Wizard nodes Save and Load had their names changed to SaveJSON and LoadJSON.
 * Removed:
  * Static configuration is dead (config.json), long live run control (xonshrc)!
  * The following evironment variables have been removed as they are no longer needed: $LOADED_CONFIG and $XONSHCONFIG.
  * Many support functions for static configuration have also been removed.
 * Fixed:
  * Files starting with # are auto-escaped by TAB completion
- update to version 0.6.1:
 * Added:
  * Support for MSYS2.
  * New ``xonsh.main.setup()`` function for starting up xonsh in 3rd party
    packages.
 * Changed:
  * Updated CircleCI to use circle version 2.0
  * Replaced StopIteration with return in CommandPipeline.iterraw.
  * Xonsh run control now also looks for the XDG-compliant file
    ``~/.config/xonsh/rc.xsh`` at startup.
 * Fixed:
  * Clean out ``$LINES`` and ``$COLUMNS`` if set, preventing some programs from drawing weirdly
  * cat from xoreutils now outputs in configured encoding
  * Fixed hanging issue with pipelines whose middle processes exit before the
    first or last process.
  * Fixed issue where xonsh would deduplicate spaces from bash autocompletions.
  * Fixed failing redirections from stderr to stdout when the command
    being executed was a callable alias.
  * Ensure that the ``free_cwd`` contrib can only be active on pure Windows.
  * Made an exceptional case in ``iglobpath()`` more robust when Python globbing
    fails for due to strange scrandir issue.
  * Unexpected process suspension on Cygwin and MSYS2.
  * ``$XONSH_APPEND_NEWLINE`` will now default to True when in interactive mode.
  * Fixed issue with uncalled lambdas being run in subproc mode.
  * Lambda nodes not have proper line and column numbers in AST.
  * Properly throw ``SyntaxError`` when no kwargs are defined
    in a kwarg-only function. This used to throw a
    ``TypeError: 'NoneType' object is not iterable``.
  * Addressed issue where encoding and errors were None when teeing output.
  * Commands like ``git c`` would complete to ``git 'checkout '`` because git adds an extra space
    to the end of the completion, which was being captured in the completion. Xonsh now fixes the git issue
    while retaining all whitespace when there is other internal whitespace.

OBS-URL: https://build.opensuse.org/request/show/603097
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=3
2018-05-08 11:36:40 +00:00
0fa5eadcad Accepting request 557311 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/557311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonsh?expand=0&rev=2
2018-01-13 20:44:19 +00:00