xonsh/news
David Dotson a8d4a57f01
Environment variable registration, deregistration (addresses #3227) (#3377)
* First attempt at register/deregister machinery for envvars

* Added detailed docstring, simplified ensurers

Also added some type checking that became clear from docstring writing.

* Changes in response to @scopatz review

Simplified kwarg names.

* defaultval -> default

* Created new Var namedtuple, as well as DEFAULT_VARS

We should now delete DEFAULT_ENSURERS, DEFAULT_VALUES, DEFAULT_DOCS, and
refactor Env to use the new single namedtuple and the DEFAULT_VARS dict

* Removed DEFAULT_ENSURERS, DEFAULT_VALUES, DEFAULT_DOCS

Now need to edit Env to use new DEFAULT_VARS, Var namedtuple

* Finished updating Env object to use new combined Var

Also made corresponding changes elsewhere ensurer was used

* Working on test failures

* More fixes in light of test failures

* Set default values for Var in register.

There's a bit of duplication here, but makes for a cleaner function.

* Black reformatting on environ.py

* Removed history replay

* Added register tests

* Added addtional deregistration test

* Removed all replay references, in docs too

* Added news item for env-reg-dereg

* trigger rebuild

* doc fix

* more doc fixes

* again

* attr names

* reorder imports

* fix flake error

Co-authored-by: Anthony Scopatz <scopatz@gmail.com>
2020-08-05 10:39:11 -04:00
..
add-history-flush.rst News entry 2020-05-08 23:58:27 +02:00
bash-to-xsh-improvements.rst news 2020-05-27 09:37:17 +03:00
env-reg-dereg.rst Environment variable registration, deregistration (addresses #3227) (#3377) 2020-08-05 10:39:11 -04:00
exit.rst exit 2020-05-12 19:10:13 +03:00
failback_shell_env.rst Xonsh failback to /usr/bin/bash in preference to /etc/shells 2020-06-25 19:49:04 -04:00
fix-alias-return.rst changelog entry 2020-07-28 20:04:17 +02:00
fix-completion-out-of-bounds.rst add missing news item 2020-06-01 16:25:46 +03:00
fix-cwd.rst Update fix-cwd.rst 2020-06-12 16:24:57 +02:00
fix-help-def.rst changelog entry 2020-08-04 16:31:10 +02:00
fix-history-gc.rst Don't run test_integrations.py with XONSH_DEBUG=1 2020-06-28 14:21:53 -04:00
fix-linecont.rst changelog entry 2020-07-28 20:00:07 +02:00
fix-ls-color-codes.rst LS_COLORS add mh, change rs to fi; support ln=target 2020-06-20 17:46:37 -04:00
fix-single-command-exit-code.rst News entry rst fix (#3402) 2020-07-29 08:26:51 +02:00
fix-unary-position.rst Fix column offset of unary operator AST node (#3565) 2020-05-10 10:17:55 -04:00
fix_pip_completer.rst Fix pip completer misfires for pipx 2020-04-20 11:26:49 -04:00
flake8_in_CI.rst changes per review 2020-06-19 17:31:37 -04:00
goodbye-distutils.rst Add changelog entry 2020-07-29 15:57:14 -04:00
goodbye-python-3.5.rst Remove most of Python 3.5 compatibility code. (#3654) 2020-08-05 10:29:31 -04:00
hg-get-branch-topic.rst get_hg_branch aware of topics 2020-05-13 10:07:31 +02:00
imphooks.rst Use frozenset and provide NEWS entry as suggested by scopatz. 2020-07-27 16:54:16 +02:00
improve-completers.rst Add PR news for improve-completers 2020-07-28 02:58:33 +03:00
improve-completers2.rst xontrib: jedi: Add jedi completer tests 2020-08-05 00:15:17 +03:00
revert-abbrev.rst Changelog entry 2020-08-04 16:19:41 +02:00
TEMPLATE.rst single instance of string.Formatter 2018-10-20 12:22:59 -06:00
ulimit.rst News entry 2020-05-28 03:23:08 +02:00
vox-rm.rst added news 2020-08-01 14:38:37 -05:00
xontrib-failok.rst changelog entry 2020-06-18 15:41:16 +02:00
xontrib-pdb.rst Changelog entry 2020-06-05 13:35:58 +02:00
xontrib-xpg.rst adding xontrib-xpg 2020-05-28 17:01:29 -07:00