From adbf4a5233ed8dd69b32ed8fe6959ce9f6cf107a Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Wed, 1 Mar 2017 11:42:00 -0500 Subject: [PATCH] version bump to 0.5.7 --- .appveyor.yml | 2 +- CHANGELOG.rst | 114 ++++++++++++++++++++++++++++++++++++ news/ao.rst | 16 ----- news/argp.rst | 15 ----- news/badglob.rst | 14 ----- news/delcwd.rst | 18 ------ news/delparen.rst | 13 ---- news/extargs.rst | 14 ----- news/fast_hg_branch.rst | 15 ----- news/fix_history_replay.rst | 14 ----- news/fix_pwd.rst | 16 ----- news/generator_at.rst | 13 ---- news/ic.rst | 14 ----- news/impenc.rst | 15 ----- news/ji.rst | 14 ----- news/jsonutils.rst | 16 ----- news/no-thread-nvim.rst | 13 ---- news/nsredir.rst | 15 ----- news/ntenv.rst | 16 ----- news/nullsub.rst | 15 ----- news/oserr.rst | 15 ----- news/partial.rst | 14 ----- news/ponynosay.rst | 14 ----- news/ptkcomp.rst | 14 ----- news/ptkvt.rst | 13 ---- news/q.rst | 13 ---- news/rediral.rst | 14 ----- news/rlwiz.rst | 18 ------ news/subshell.rst | 18 ------ news/unthreadsig.rst | 15 ----- news/welcome.rst | 17 ------ news/win_line_cont.rst | 19 ------ news/winuserexp.rst | 15 ----- news/xolor.rst | 19 ------ news/zsh.rst | 18 ------ xonsh/__init__.py | 2 +- 36 files changed, 116 insertions(+), 504 deletions(-) delete mode 100644 news/ao.rst delete mode 100644 news/argp.rst delete mode 100644 news/badglob.rst delete mode 100644 news/delcwd.rst delete mode 100644 news/delparen.rst delete mode 100644 news/extargs.rst delete mode 100644 news/fast_hg_branch.rst delete mode 100644 news/fix_history_replay.rst delete mode 100644 news/fix_pwd.rst delete mode 100644 news/generator_at.rst delete mode 100644 news/ic.rst delete mode 100644 news/impenc.rst delete mode 100644 news/ji.rst delete mode 100644 news/jsonutils.rst delete mode 100644 news/no-thread-nvim.rst delete mode 100644 news/nsredir.rst delete mode 100644 news/ntenv.rst delete mode 100644 news/nullsub.rst delete mode 100644 news/oserr.rst delete mode 100644 news/partial.rst delete mode 100644 news/ponynosay.rst delete mode 100644 news/ptkcomp.rst delete mode 100644 news/ptkvt.rst delete mode 100644 news/q.rst delete mode 100644 news/rediral.rst delete mode 100644 news/rlwiz.rst delete mode 100644 news/subshell.rst delete mode 100644 news/unthreadsig.rst delete mode 100644 news/welcome.rst delete mode 100644 news/win_line_cont.rst delete mode 100644 news/winuserexp.rst delete mode 100644 news/xolor.rst delete mode 100644 news/zsh.rst diff --git a/.appveyor.yml b/.appveyor.yml index 942ef9101..824bc9500 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,4 +1,4 @@ -version: 0.5.6.{build} +version: 0.5.7.{build} os: Windows Server 2012 R2 environment: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a42c9e925..7ecc15f39 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,120 @@ Xonsh Change Log .. current developments +v0.5.7 +==================== + +**Added:** + +* New ``color_tools`` module provides basic color tools for converting + to and from various formats as well as creating pallettes from color + strings. +* Redirections may now be used in string and list-of-strings + aliases. +* Subprocess redirection may now forego the whitespace between the + redirection and a file name. For example, + ``echo hello world >/dev/null``. +* Add a ``-P`` flag to the ``cd`` function in order to change directory and + following symlinks. +* ``xonfig tutorial`` command to launch the http://xon.sh/tutorial in the + browser. +* ``@(...)`` syntax now supports generators and tuples without parentheses. +* Sourcing foreign shells now have the ``--show`` option, which + lets you see when script will be run, and the ``--dryrun`` + option which prevents the source from actually taking place. + Xonsh's foriegn shell API also added these keyword arguments. +* Subprocess mode now supports subshells. Place any xonsh + code between two parentheses, e.g. ``(cmd)``, to run + this command in a separate xonsh subprocess. +* Foreign shell aliases now have the ability to take extra arguments, + if needed. +* Xonsh will issue a warning message when the current working + directory has been remove out from under it and not replaced + prior to running the next command. +* Line continuation backslashes are respected on Windows in the PTK shell if + the backspace is is preceded by a space. +* Added ``ponysay`` as a command which will ususally not run in a + threaded mode in the commands cache. +* New ``jsonutils`` module available for serializing special + xonsh objects to JSON. + + +**Changed:** + +* The literal tokens ``and`` and ``or`` must be surrounded by + whitespace to delimit subprocess mode. If they do not have + whitespace on both sides in subproc mode, they are condisered + to be part of a command argument. +* The ``xontrib`` command is now flagged as unthreadable and will be + run on the main Python thread. This allows xontribs to set signal + handlers and other operations that require the main thread. +* nvim (Neovim) has been flagged as unthreadable +* The interactive prompt will now catch ``SystemExit`` and, instead + of exiting the session, will refresh the prompt. This is the same + process as for keyboard interrupts. +* Xonsh no longer launches the wizard for new users. Instead a welcome screen is + shown which say how to launch the wizard. +* Added Windows ``expanduser()``-like function which prevents + the expansion of ``~`` that are not followed by a path + separator. +* Collecting xonsh history files was reported to have random runtime + OSError failures. This exception is now handled, just in case. The + The exception will still be printed in debug mode. +* ``Shell.stype`` has been renamed to ``Shell.shell_type``. +* The configuration wizard now displays the proper control sequence to leave + the wizard at the to start of the wizard itself. Note that this is Ctrl+D for + readline and Ctrl+C for prompt-toolkit. +* Callable alias proxy functions are now more friendly to + ``functools.partial()``. +* ``prompt.vc.get_hg_branch`` now uses ``os.scandir`` to walk up the filetree + looking for a ``.hg`` directory. This results in (generally) faster branch + resolution compared to the subprocess call to ``hg root``. +* Xonsh's script and code caches will are now invalidated whenever the + xonsh version changes for a given Python version. +* Autowrapping of subprocess globs has been improved to cover + more cases that are ambiguous with Python syntax. +* Job control info when foregrounding or backgrounding jobs will now + only be displayed when xonsh is in interactive mode. +* Enabled virtual terminal processing in the prompt-toolkit shell for Windows. + + +**Fixed:** + +* 3rd party pygments styles (like solorized or monokailight) are now + able to be used in xonsh. These styles are dynamically created upon + first use, rather than being lazily loaded by xonsh. +* On Windows, ``os.environ`` is case insensitive. This would potentially + change the case of envrionment variables set into the environment. + Xonsh now uses ``nt.envrion``, the case sensitive counterpart, to avoid + these issues on Windows. +* Fix how ``$PWD`` is managed in order to work with symlinks gracefully +* ``history replay`` no longer barfs on ``style_name`` when setting up the + environment +* ``Shell.shell_type`` is now properly set to the same value as ``$SHELL_TYPE``. +* Fixed ``source-zsh`` to work with zsh v5.2. +* Fixed issue where ``del (x, y)`` would raise a syntax error. +* Certain vim commands issue commands involving subshells, + and this is now supported. +* Null bytes handed to Popen are now automatically escaped prior + to running a subprocess. This preevents Popen from issuing + embedded null byte exceptions. +* Xonsh will no longer crash is the current working directory is + removed out from it. +* Multiline strings can now be written in subprocess mode. +* PTK completions will now correctly deduplicate autosuggest completions + and display completions values based on the cursor position. +* Fixed bug where trailing backspaces on Windows paths could be interpreted + as line continuations characters. Now line continuation characters must be + preceded by a space on Windows. This only applies to xonsh in interactive + mode to ensure scripts are portable. +* Importing ``*.xsh`` files will now respect the encoding listed in + that file and properly fallback to UTF-8. This beahviour follows + the rules described in PEP 263. +* Wizard is now able to properly serialize envrionment paths. + + + + v0.5.6 ==================== diff --git a/news/ao.rst b/news/ao.rst deleted file mode 100644 index 62d19495b..000000000 --- a/news/ao.rst +++ /dev/null @@ -1,16 +0,0 @@ -**Added:** None - -**Changed:** - -* The literal tokens ``and`` and ``or`` must be surrounded by - whitespace to delimit subprocess mode. If they do not have - whitespace on both sides in subproc mode, they are condisered - to be part of a command argument. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/argp.rst b/news/argp.rst deleted file mode 100644 index fe63ccb81..000000000 --- a/news/argp.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** - -* The interactive prompt will now catch ``SystemExit`` and, instead - of exiting the session, will refresh the prompt. This is the same - process as for keyboard interrupts. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/badglob.rst b/news/badglob.rst deleted file mode 100644 index a7e8c5837..000000000 --- a/news/badglob.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** None - -**Changed:** - -* Autowrapping of subprocess globs has been improved to cover - more cases that are ambiguous with Python syntax. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/delcwd.rst b/news/delcwd.rst deleted file mode 100644 index ee4d4f840..000000000 --- a/news/delcwd.rst +++ /dev/null @@ -1,18 +0,0 @@ -**Added:** - -* Xonsh will issue a warning message when the current working - directory has been remove out from under it and not replaced - prior to running the next command. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Xonsh will no longer crash is the current working directory is - removed out from it. - -**Security:** None diff --git a/news/delparen.rst b/news/delparen.rst deleted file mode 100644 index 290974811..000000000 --- a/news/delparen.rst +++ /dev/null @@ -1,13 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Fixed issue where ``del (x, y)`` would raise a syntax error. - -**Security:** None diff --git a/news/extargs.rst b/news/extargs.rst deleted file mode 100644 index d30456842..000000000 --- a/news/extargs.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** - -* Foreign shell aliases now have the ability to take extra arguments, - if needed. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/fast_hg_branch.rst b/news/fast_hg_branch.rst deleted file mode 100644 index c0d322b51..000000000 --- a/news/fast_hg_branch.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** - -* ``prompt.vc.get_hg_branch`` now uses ``os.scandir`` to walk up the filetree - looking for a ``.hg`` directory. This results in (generally) faster branch - resolution compared to the subprocess call to ``hg root``. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/fix_history_replay.rst b/news/fix_history_replay.rst deleted file mode 100644 index 6497676d2..000000000 --- a/news/fix_history_replay.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* ``history replay`` no longer barfs on ``style_name`` when setting up the - environment - -**Security:** None diff --git a/news/fix_pwd.rst b/news/fix_pwd.rst deleted file mode 100644 index 6d9445e01..000000000 --- a/news/fix_pwd.rst +++ /dev/null @@ -1,16 +0,0 @@ -**Added:** - -* Add a ``-P`` flag to the ``cd`` function in order to change directory and - following symlinks. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Fix how ``$PWD`` is managed in order to work with symlinks gracefully - -**Security:** None diff --git a/news/generator_at.rst b/news/generator_at.rst deleted file mode 100644 index c9979634f..000000000 --- a/news/generator_at.rst +++ /dev/null @@ -1,13 +0,0 @@ -**Added:** - -* ``@(...)`` syntax now supports generators and tuples without parentheses. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/ic.rst b/news/ic.rst deleted file mode 100644 index 36ca72af3..000000000 --- a/news/ic.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** None - -**Changed:** - -* Xonsh's script and code caches will are now invalidated whenever the - xonsh version changes for a given Python version. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/impenc.rst b/news/impenc.rst deleted file mode 100644 index 71775657a..000000000 --- a/news/impenc.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Importing ``*.xsh`` files will now respect the encoding listed in - that file and properly fallback to UTF-8. This beahviour follows - the rules described in PEP 263. - -**Security:** None diff --git a/news/ji.rst b/news/ji.rst deleted file mode 100644 index 68f0dade1..000000000 --- a/news/ji.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** None - -**Changed:** - -* Job control info when foregrounding or backgrounding jobs will now - only be displayed when xonsh is in interactive mode. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/jsonutils.rst b/news/jsonutils.rst deleted file mode 100644 index 76c2141a5..000000000 --- a/news/jsonutils.rst +++ /dev/null @@ -1,16 +0,0 @@ -**Added:** - -* New ``jsonutils`` module available for serializing special - xonsh objects to JSON. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Wizard is now able to properly serialize envrionment paths. - -**Security:** None diff --git a/news/no-thread-nvim.rst b/news/no-thread-nvim.rst deleted file mode 100644 index 46d38b964..000000000 --- a/news/no-thread-nvim.rst +++ /dev/null @@ -1,13 +0,0 @@ -**Added:** None - -**Changed:** - -* nvim (Neovim) has been flagged as unthreadable - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/nsredir.rst b/news/nsredir.rst deleted file mode 100644 index 37bf3c1a1..000000000 --- a/news/nsredir.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** - -* Subprocess redirection may now forego the whitespace between the - redirection and a file name. For example, - ``echo hello world >/dev/null``. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/ntenv.rst b/news/ntenv.rst deleted file mode 100644 index e66b0815b..000000000 --- a/news/ntenv.rst +++ /dev/null @@ -1,16 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* On Windows, ``os.environ`` is case insensitive. This would potentially - change the case of envrionment variables set into the environment. - Xonsh now uses ``nt.envrion``, the case sensitive counterpart, to avoid - these issues on Windows. - -**Security:** None diff --git a/news/nullsub.rst b/news/nullsub.rst deleted file mode 100644 index beff65e93..000000000 --- a/news/nullsub.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Null bytes handed to Popen are now automatically escaped prior - to running a subprocess. This preevents Popen from issuing - embedded null byte exceptions. - -**Security:** None diff --git a/news/oserr.rst b/news/oserr.rst deleted file mode 100644 index 13903a127..000000000 --- a/news/oserr.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** - -* Collecting xonsh history files was reported to have random runtime - OSError failures. This exception is now handled, just in case. The - The exception will still be printed in debug mode. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/partial.rst b/news/partial.rst deleted file mode 100644 index 468a5e2f9..000000000 --- a/news/partial.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** None - -**Changed:** - -* Callable alias proxy functions are now more friendly to - ``functools.partial()``. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/ponynosay.rst b/news/ponynosay.rst deleted file mode 100644 index f2263797f..000000000 --- a/news/ponynosay.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** - -* Added ``ponysay`` as a command which will ususally not run in a - threaded mode in the commands cache. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/ptkcomp.rst b/news/ptkcomp.rst deleted file mode 100644 index bbbde3b69..000000000 --- a/news/ptkcomp.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* PTK completions will now correctly deduplicate autosuggest completions - and display completions values based on the cursor position. - -**Security:** None diff --git a/news/ptkvt.rst b/news/ptkvt.rst deleted file mode 100644 index 34d725ddc..000000000 --- a/news/ptkvt.rst +++ /dev/null @@ -1,13 +0,0 @@ -**Added:** None - -**Changed:** - -* Enabled virtual terminal processing in the prompt-toolkit shell for Windows. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/q.rst b/news/q.rst deleted file mode 100644 index ddc77796c..000000000 --- a/news/q.rst +++ /dev/null @@ -1,13 +0,0 @@ -**Added:** None - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Multiline strings can now be written in subprocess mode. - -**Security:** None diff --git a/news/rediral.rst b/news/rediral.rst deleted file mode 100644 index 19052a5c8..000000000 --- a/news/rediral.rst +++ /dev/null @@ -1,14 +0,0 @@ -**Added:** - -* Redirections may now be used in string and list-of-strings - aliases. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/rlwiz.rst b/news/rlwiz.rst deleted file mode 100644 index 7669f27d0..000000000 --- a/news/rlwiz.rst +++ /dev/null @@ -1,18 +0,0 @@ -**Added:** None - -**Changed:** - -* ``Shell.stype`` has been renamed to ``Shell.shell_type``. -* The configuration wizard now displays the proper control sequence to leave - the wizard at the to start of the wizard itself. Note that this is Ctrl+D for - readline and Ctrl+C for prompt-toolkit. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* ``Shell.shell_type`` is now properly set to the same value as ``$SHELL_TYPE``. - -**Security:** None diff --git a/news/subshell.rst b/news/subshell.rst deleted file mode 100644 index e25738984..000000000 --- a/news/subshell.rst +++ /dev/null @@ -1,18 +0,0 @@ -**Added:** - -* Subprocess mode now supports subshells. Place any xonsh - code between two parentheses, e.g. ``(cmd)``, to run - this command in a separate xonsh subprocess. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Certain vim commands issue commands involving subshells, - and this is now supported. - -**Security:** None diff --git a/news/unthreadsig.rst b/news/unthreadsig.rst deleted file mode 100644 index 0082ea5f4..000000000 --- a/news/unthreadsig.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** - -* The ``xontrib`` command is now flagged as unthreadable and will be - run on the main Python thread. This allows xontribs to set signal - handlers and other operations that require the main thread. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/welcome.rst b/news/welcome.rst deleted file mode 100644 index b71de3db0..000000000 --- a/news/welcome.rst +++ /dev/null @@ -1,17 +0,0 @@ -**Added:** - -* ``xonfig tutorial`` command to launch the http://xon.sh/tutorial in the - browser. - -**Changed:** - -* Xonsh no longer launches the wizard for new users. Instead a welcome screen is - shown which say how to launch the wizard. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/win_line_cont.rst b/news/win_line_cont.rst deleted file mode 100644 index 8108c7bb8..000000000 --- a/news/win_line_cont.rst +++ /dev/null @@ -1,19 +0,0 @@ -**Added:** - -* Line continuation backslashes are respected on Windows in the PTK shell if - the backspace is is preceded by a space. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Fixed bug where trailing backspaces on Windows paths could be interpreted - as line continuations characters. Now line continuation characters must be - preceded by a space on Windows. This only applies to xonsh in interactive - mode to ensure scripts are portable. - -**Security:** None diff --git a/news/winuserexp.rst b/news/winuserexp.rst deleted file mode 100644 index 89bb5c323..000000000 --- a/news/winuserexp.rst +++ /dev/null @@ -1,15 +0,0 @@ -**Added:** None - -**Changed:** - -* Added Windows ``expanduser()``-like function which prevents - the expansion of ``~`` that are not followed by a path - separator. - -**Deprecated:** None - -**Removed:** None - -**Fixed:** None - -**Security:** None diff --git a/news/xolor.rst b/news/xolor.rst deleted file mode 100644 index 84fb68c8b..000000000 --- a/news/xolor.rst +++ /dev/null @@ -1,19 +0,0 @@ -**Added:** - -* New ``color_tools`` module provides basic color tools for converting - to and from various formats as well as creating pallettes from color - strings. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* 3rd party pygments styles (like solorized or monokailight) are now - able to be used in xonsh. These styles are dynamically created upon - first use, rather than being lazily loaded by xonsh. - -**Security:** None diff --git a/news/zsh.rst b/news/zsh.rst deleted file mode 100644 index 7ef7cffad..000000000 --- a/news/zsh.rst +++ /dev/null @@ -1,18 +0,0 @@ -**Added:** - -* Sourcing foreign shells now have the ``--show`` option, which - lets you see when script will be run, and the ``--dryrun`` - option which prevents the source from actually taking place. - Xonsh's foriegn shell API also added these keyword arguments. - -**Changed:** None - -**Deprecated:** None - -**Removed:** None - -**Fixed:** - -* Fixed ``source-zsh`` to work with zsh v5.2. - -**Security:** None diff --git a/xonsh/__init__.py b/xonsh/__init__.py index 39af68808..f94421ada 100644 --- a/xonsh/__init__.py +++ b/xonsh/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.5.6' +__version__ = '0.5.7' # amalgamate exclude jupyter_kernel parser_table parser_test_table pyghooks