Commit graph

1556 commits

Author SHA1 Message Date
Matthias Bussonnier
0431e6948a news item 2020-08-08 22:20:51 -07:00
Anthony Scopatz
8f131a089c
Merge pull request #3656 from daniel-shimon/print-mocks-correctly
Call repr() when pretty() fails in _pprint_displayhook
2020-08-05 12:54:07 -05:00
Anthony Scopatz
c40c9de9ad
Merge pull request #3627 from laloch/argv0
Set argv[0] of a subprocess to the command as inserted by the user
2020-08-05 10:41:48 -05:00
Anthony Scopatz
9ca0906793
Merge pull request #3563 from xonsh/fix-json-history
Fix json history
2020-08-05 10:39:30 -05:00
Daniel Shimon
d41e6ddf72 Call repr() when pretty() fails in _pprint_displayhook 2020-08-05 17:50:53 +03:00
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
Matthias Bussonnier
784c5286ef
Remove most of Python 3.5 compatibility code. (#3654)
There  now should not be any remaining  3,5 conditinal code.
We now directly use inspect's getouterframes, so remove it from
inspector

The 3.5 parser get merged into 3.6 and a number of global vaiable
referring to 3.5/3.6 are now gone.

The only remaining mention is appveyor test, which are anyway failing
but not being seen as so by GitHub, so I'll leave them alone.
2020-08-05 10:29:31 -04:00
David Strobach
6e9d1063b5 News entry 2020-08-05 11:51:44 +02:00
Anthony Scopatz
40352638bf
Merge pull request #3623 from laloch/fix-help-def
Fix help operator not displaying definitions
2020-08-04 21:12:24 -05:00
Anthony Scopatz
a816084d44
Merge pull request #3650 from daniel-shimon/improve-completers
Add tests and fix bugs for RichCompletion and Jedi xontrib
2020-08-04 21:11:47 -05:00
Daniel Shimon
5f50b620b7 xontrib: jedi: Add jedi completer tests 2020-08-05 00:15:17 +03:00
David Strobach
3e027ae61a changelog entry 2020-08-04 16:31:10 +02:00
David Strobach
861bf40615 changelog entry 2020-08-04 16:30:04 +02:00
David Strobach
a7480f3f41 Changelog entry 2020-08-04 16:19:41 +02:00
Anthony Scopatz
60d403c132
Merge pull request #3652 from xonsh/vox-rm
vox rm
2020-08-01 17:13:55 -05:00
Anthony Scopatz
1cb37cab2f
Merge pull request #3593 from xxh/bash_to_xonsh
bash to xsh improvements
2020-08-01 16:25:37 -05:00
Anthony Scopatz
4d97004777 added news 2020-08-01 14:38:37 -05:00
Anthony Scopatz
8d676bd061
Merge pull request #3606 from laloch/xontrib-pdb
Add pdb xontrib
2020-08-01 13:34:20 -05:00
Anthony Scopatz
8b933da995
Merge pull request #3632 from dyuri/issue_3402
#3402 set the exit code for single commands
2020-08-01 12:34:40 -05:00
Anthony Scopatz
a65b940992
Merge pull request #3630 from laloch/fix-linecont
Fix ctx-free parser stripping the trailing newline
2020-08-01 12:34:06 -05:00
Gyuri Horak
549dee1f77
Merge branch 'master' into issue_3402 2020-08-01 18:28:46 +02:00
Anthony Scopatz
dbd9279a0c
Merge pull request #3634 from laloch/fix-alias-return
Fix TypeError triggered by unexpected return from callable alias
2020-08-01 11:12:37 -05:00
Jason R. Coombs
c63e1665a7 Add changelog entry 2020-07-29 15:57:14 -04:00
Gyuri Horak
cf9bc3c82e
News entry rst fix (#3402) 2020-07-29 08:26:51 +02:00
Gyuri Horak
9c0ac6e406
News entry for single command exit code fix (#3402) 2020-07-28 22:08:15 +02:00
David Strobach
5ff57aee7f changelog entry 2020-07-28 20:04:17 +02:00
David Strobach
7bec47bd19 changelog entry 2020-07-28 20:00:07 +02:00
Anthony Scopatz
b413d5ea70
Merge pull request #3643 from daniel-shimon/improve-completers
Improve completers and Jedi xontrib
2020-07-28 11:11:50 -05:00
Anthony Scopatz
6d0e6ee1ae
Merge pull request #3524 from bobhy/failback_shell_env
Failback shell env
2020-07-27 21:21:32 -05:00
Daniel Shimon
34cb6e18c2 Add PR news for improve-completers 2020-07-28 02:58:33 +03:00
Anthony Scopatz
674c41782c
Merge pull request #3636 from Achimh3011/pkg_resources_missing_methods
Provide the XonshImportEventLoader with all the functions that pkg_re…
2020-07-27 12:35:43 -05:00
Achim Herwig
3f9f08ceca Use frozenset and provide NEWS entry as suggested by scopatz. 2020-07-27 16:54:16 +02:00
Anthony Scopatz
f4b317f867
Merge pull request #3575 from paugier/hg-get-branch-topic
get_hg_branch aware of topics
2020-07-27 09:41:53 -05:00
Bob Hyman
de07c3ed37 Don't run test_integrations.py with XONSH_DEBUG=1 2020-06-28 14:21:53 -04:00
Bob Hyman
022972ee92 Wordsmith news to trigger another CI pass. 2020-06-26 20:47:54 -04:00
Bob Hyman
15f3d8852b fix history gc for JSON backend; deal with large accumulations while this was broken 2020-06-26 20:47:54 -04:00
Bob Hyman
dde73ba72c Xonsh failback to /usr/bin/bash in preference to /etc/shells 2020-06-25 19:49:04 -04:00
Bob Hyman
129ce9e44a LS_COLORS add mh, change rs to fi; support ln=target 2020-06-20 17:46:37 -04:00
David Strobach
c0089a4cef
Merge pull request #3561 from bobhy/flake8_in_CI
Run (pure) flake8 in CI; deprecate config for pytest-flake8
2020-06-20 21:00:39 +02:00
Bob Hyman
8e4d2bfb0e changes per review 2020-06-19 17:31:37 -04:00
David Strobach
19c9379df7 changelog entry 2020-06-18 15:41:16 +02:00
David Strobach
fe007d9202
Update fix-cwd.rst 2020-06-12 16:24:57 +02:00
Marduk Bolaños
cb338783fd Update news/fix-cwd.rst
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-06-07 17:00:48 +02:00
Marduk Bolaños
5654b86ead Create fix-cwd.rst 2020-06-07 17:00:48 +02:00
David Strobach
e5692e9b68 Changelog entry 2020-06-05 13:35:58 +02:00
Burak Yigit Kaya
1650f35b59
add missing news item 2020-06-01 16:25:46 +03:00
Jamie Bliss
cb977b58b1
Merge pull request #3571 from laloch/ulimit
Add ulimit command to xoreutils
2020-05-29 14:44:57 -04:00
Feng Tian
178d42b34b adding xontrib-xpg 2020-05-28 17:01:29 -07:00
David Strobach
e2848a4f8d News entry 2020-05-28 03:23:08 +02:00
anki-code
8a2ff1f1aa news 2020-05-27 09:37:17 +03:00