Commit graph

9963 commits

Author SHA1 Message Date
Tejasvi S Tomar
769e4f368f
Fix URL for xontrib-autojump (#4089)
* Fix URL for xontrib-autojump

The original url is broken. This one seems to be the one actively maintained.

* Update XonshData.elm
2021-02-08 10:50:51 -05:00
Gil Forsyth
ff8b470d02 Updated CHANGELOG for 0.9.26 2021-02-04 12:36:41 -05:00
Gil Forsyth
cb21b17ec0 bumped version to 0.9.26 2021-02-04 12:36:40 -05:00
Gil Forsyth
ab6639d5e8 Updated authorship for 0.9.26 2021-02-04 12:36:40 -05:00
Gil Forsyth
1cd2522e00
Restore test command in rever.xsh 2021-02-04 12:35:30 -05:00
Gil Forsyth
432272b582
Don't use --pre, it breaks rever 2021-02-04 12:29:59 -05:00
Gil Forsyth
d3eda8e90b
Fix readme and rever test call for release (#4075)
The rever command hasn't been tested with the new parameters to
`run-tests.xsh` (spoiler alert, it breaks).

Also converted the `raw` block to regular RST since PyPI doesn't allow
`raw` directives in the `long_description` on upload to PyPI
2021-02-04 11:45:37 -05:00
Noorhteen Raja NJ
1622697194
feat: some python libraries depend on isatty to check for terminal capabilities (#4013)
related to #4008

style: linter rst fix

refactor: update isatty of proxy functions
2021-02-04 11:44:01 -05:00
Gao, Xiang
4779930806
Add tcg to xontrib (#4076)
* Add tcg to xontrib

* Create tcg.rst
2021-01-31 17:22:41 -05:00
anki-code
926aa3f7ac
Update pre-requirements.txt (#4073) 2021-01-30 15:13:33 -05:00
Noorhteen Raja NJ
d50cf32f84
Feat abbrevs callback (#4031)
* feat: support callbacks in abbrevs dict

facilitate solving problems like #3642

fixes #3642

* test: add tests for abbrevs and news item

* fix: mypy error

* refactor: update imports for xontrib_meta module
2021-01-29 12:18:22 -05:00
Gil Forsyth
71fe9014d2 Updated CHANGELOG for 0.9.25 2021-01-29 08:58:58 -05:00
Gil Forsyth
85bfec4b17 bumped version to 0.9.25 2021-01-29 08:58:52 -05:00
Gil Forsyth
c81a780427 Updated authorship for 0.9.25 2021-01-29 08:57:33 -05:00
Aneesh Durg
1f7f33c93f
Add $HISTCONTROL=ignorespace support (#4062)
* Add $HISTCONTROL=ignorespace support

* Add news and fix formatting

* Move ignore space to happend in append and fix test bugs

* invert conditional

* remove leftover debug info
2021-01-25 16:37:29 -05:00
Noorhteen Raja NJ
0dafe12daf
refactor: make codecov checks informational (#4057)
instead of making PRs fail
2021-01-13 09:13:41 -05:00
Noorhteen Raja NJ
80aca856e4
refactor: convert prompt_ret_code to be a py file (#4032)
to take advantage of flake/coverage
2021-01-12 13:35:38 -05:00
Faris A Chugthai
b163e6f7cd
Update tutorial_ptk.rst (#4052)
Using `_` to indicate italics only works in Markdown. Use `*` to modify text in restructuredText
2021-01-11 11:44:50 -05:00
yggdr
432df061c6
Fix libc detection and uptime functionality on FreeBSD (#4049)
* Fix libc detection on FreeBSD

On FreeBSD /usr/lib/libc.so is an LDScript text file, ctypes.CDLL can't handle
those. So we hardcode the current version number, lest we'd need to use the less
efficient ctypes.util.find_library function. This should be alright, since the
last increase in libc version number on FreeBSD was over 10 years ago.

* sysctlbyname needs bytes, not unicode strs

* Add news item for FreeBSD libc fix
2021-01-06 10:34:22 -05:00
Noorhteen Raja NJ
6c90f7b315
Update codecov.yml (#4051) 2021-01-06 10:33:02 -05:00
Faris A Chugthai
b4aa80f097
Add brackets to ambiguous data type (#3981)
Without the brackets python defaults to assuming that the iterable is a tuple. In the reference guide `__all__` is explicitly stated to be of type `list`.

Functionally I'll admit this doesn't change anything but to observe the correct usage pattern of `__all__`, simply add the brackets.
2021-01-05 11:26:09 -05:00
Noorhteen Raja NJ
d44a352e0b
fix: update setup.py table generation function (#4044)
* fix: update setup.py table generation function

so that will work with relative paths
- update extras-requirement full
- remove invalid link

fixes #4039

* Update setup.py
2021-01-05 09:58:02 -05:00
Danny Sepler
97cb072f9f
Add a better test suite for "vc.py", and fix "include_untracked" logic (#4041)
* move test_prompt to test_base

* move test_prompt to test_vc

* revamp test_vc file

* Add VC_GIT_INCLUDE_UNTRACKED variable, move test_prompt.py to test_base.py

* reduce test_base
2021-01-05 09:26:19 -05:00
anki-code
d0b22652b4
Welcome message cosmetic changes (#4036)
* welcome

* welcome

* Update xonsh/xonfig.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

Co-authored-by: a <a>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-01-05 09:21:10 -05:00
Asaf Fisher
f3240c9c6d
Add Open in google cloudshell in the readme. (#4040)
* README: Add `open in google cloud shell` button in the readme 🤩

* news: Add google cloud button news
2021-01-04 12:46:56 -05:00
Asaf Fisher
da415caf06
Add 'dict' merging operation for the aliases class (#4037)
* aliases: Add merging operation to the aliases dict

* tests: Add tests to the aliases merging operation

* news: Add summary about the Alias merging functionality
2021-01-04 12:44:21 -05:00
anki-code
92dd822502
Using ujson (if installed) in LazyJSON to loading json history 15% faster (#4025)
* faster json history

* news

* mypy

Co-authored-by: a <a>
2021-01-04 12:32:14 -05:00
Leandro Emmanuel Reina Kiperman
e7e6fd90a7
Edit sys.path while loading RC files (squashed) (#3950) 2021-01-04 12:31:05 -05:00
Noorhteen Raja NJ
17961e3c24
feat: add xontrib-powerline3 (#4009) 2021-01-04 12:22:29 -05:00
Noorhteen Raja NJ
bceaafae4d
Add groups to env vars (#4026)
* feat: add grouped-settings for env variables

fixes #4014

style: fix mypy errors

chore: update testing requirements versions

fix: update xonsh.tools import error

* chore: add news item

* fix: update Var.with_default handling env defaults

* fix: set env var.doc_default=DefaultNotGiven

there is a custom handler for it

* chore: update travis

speedup docs generation

* chore: add command to serve docs during development

* docs: add jinja2 helpers/renderers extension for sphinx

* docs: update envvars document

* docs: fix docs failing

* Update xonsh/environ.py

commit suggestion

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update xonsh/environ.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update xonsh/environ.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update xonsh/environ.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update xonsh/environ.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update xonsh/environ.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* refactor: update rst-extension

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-01-04 12:21:44 -05:00
Anthony Scopatz
17f86d359e
callable default skips validation (#3668)
* callable default skips validation

* default value

* black

* today func

* store called defaults
2020-12-18 14:42:18 -05:00
anki-code
eac1e29397
SQLite history backend now has the same logic of storing stdout to the memory like json history backend (#4006)
* fix logic

* bump tests

Co-authored-by: a <a>
2020-12-18 14:13:12 -05:00
Noorhteen Raja NJ
f4a7f1f22f
chore: bring back codcoverage report (#3998)
* chore: bring back codcoverage report

* chore: the run-tests.xsh script can't print to stdout

* test: combine coverage on multiple runs

* test: sort coverage report by coverage percent

* chore (ci): split test step

* docs: add news item for code-coverage

* chore: try coverage parallel

but this will not work with --append mode.
2020-12-18 09:04:42 -05:00
Noorhteen Raja NJ
2d308ea9b7
feat: add xontrib-avox-poetry (#4023) 2020-12-17 14:27:58 -05:00
Jamie Bliss
4e1ce0b58a
Update avox description (#4022)
Fixes #4019
2020-12-17 14:27:17 -05:00
Noorhteen Raja NJ
77a71b7e8d
fix: make sure that tokens are strings before showing in prompt (#4010) 2020-12-17 14:26:25 -05:00
anki-code
b5f84cfb3e
The change that allows Nuitka build the xonsh binary (#4012)
* nuitka fix

* bump tests

* fix flake

Co-authored-by: a <a>
2020-12-17 14:22:30 -05:00
Noorhteen Raja NJ
a083d28461
Completer py api (#4018)
* feat: add index to sqlite-history table

* feat: support style argument to RichCompletion object

this will enable setting style for ptk completers

* feat: add xonsh cli/argparser utils

* feat: add python api for adding/removing completers

fixes #3972

* fix: mypy error

* docs: add api doc

* fix: circular imports

* docs:

* fix: testing get-doc cross-platform

* Update xonsh/completers/_aliases.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update xonsh/completers/_aliases.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* style: convert % to f-strings

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-12-16 14:26:22 -05:00
Noorhteen Raja NJ
9fe6ef48cf
feat: add xontrib-commands (#4002) 2020-12-03 09:48:14 -05:00
Anthony Scopatz
f2ab998f33
Proc dep warnings (#3908)
* dep warnings

* black

* proc set
2020-12-03 09:47:02 -05:00
Anthony Scopatz
c73a15afe7
Merge pull request #3996 from jnoortheen/feat-enable-ptk-clipboard
feat: use PyperClipboard if available for ptk
2020-11-26 11:46:25 -06:00
Anthony Scopatz
6957d9fa7c
Merge pull request #3997 from henrebotha/patch-1
Fix typo
2020-11-26 09:06:15 -06:00
Henré Botha
e14a17b208
Fix typo 2020-11-26 14:27:33 +01:00
Noortheen Raja
e49715ac7d fix: rst syntax error 2020-11-26 09:30:35 +05:30
Noortheen Raja
6c22578d87 docs: correct news item 2020-11-26 09:28:06 +05:30
Noortheen Raja
5b6ea6c993 feat: use PyperClipboard if available for ptk
closes #3989
2020-11-26 09:28:06 +05:30
Anthony Scopatz
24862e03c9
Merge pull request #3983 from jnoortheen/upgrade-black-20.8b1
Upgrade black 20.8b1
2020-11-25 13:43:55 -06:00
Anthony Scopatz
d8115ec1e9
Merge pull request #3986 from daniel-shimon/colorize-and-or
pygments: Colorize 'and'/'or' keywords like '&&'/'||'
2020-11-25 12:57:10 -06:00
Anthony Scopatz
a1b95730c0
Merge pull request #3992 from colons/vc_branch-in-docs
Fix the import in the branch colour override example.
2020-11-25 12:47:42 -06:00
Anthony Scopatz
3b4522b134
Merge pull request #3994 from anki-code/fix_docs_exec
fix aliases.rst
2020-11-25 12:46:36 -06:00