Commit graph

9876 commits

Author SHA1 Message Date
Gil Forsyth
9371330c59 Updated authorship for 0.9.27 2021-03-03 11:29:57 -05:00
anki-code
86c4dec1bb
New awesome landing (v3) (#4122)
* awesome landing

* text

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Talks about xonsh

* Q&A

* xontribs from github

* xontribs from github

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* xontribs from github

Co-authored-by: a <a>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-03-02 08:50:54 -05:00
Gil Forsyth
9bb91a0b4b
Cleanup remaining vended ptk bits (#4130) 2021-03-01 16:55:23 -05:00
Noorhteen Raja NJ
a5522dbb1e
Remove vended ptk (#4107)
* refactor: remove vended_ptk from project

* refactor: handle removal of ptk vendoring

* refactor: update usage of os.scandir

* fix: update incorrect import xonsh.platform.scandir

* test: update os.scandir

* test: update tests that check ptk version matrix

* fix: add missing import ctypes
2021-03-01 11:56:32 -05:00
Adam Schwalm
27ed9be301
Perform path completion filtering based on expanded path (#4115)
* Perform path completion filtering based on expanded path

This fixes issues with the cd and rmdir completers not working
correctly due to os.path.isdir returning false for paths like
'~/example'.

* Avoid running subsequent completers for cd/rmdir

Raise StopIteration in the cd and rmdir completers if nothing is
found. This prevents the later completers like the generic 'path'
completer from running and returning incorrect results.
2021-03-01 11:44:32 -05:00
anki-code
2b80fc3f3d
Small docs fixes (#4124)
* button

* transparent png

* transparent png

* github xontribs

* transparent png

* moving windows note

* removing broken link

* talks added

* talks added

Co-authored-by: a <a>
2021-03-01 10:44:17 -05:00
anki-code
b862e0cec0
Strict permission for history file (json, sqlite) (#4121)
* history file permission

* rst

* rst

* rst

* lint

Co-authored-by: a <a>
2021-03-01 10:20:37 -05:00
anki-code
44b9ee115b
Added xontrib-history-encrypt (#4120)
* xontrib-history-encrypt

* black

Co-authored-by: a <a>
2021-02-26 10:01:41 -05:00
anki-code
aad1da7270
SQLite History Backend: show message instead of exiting when disk is full (#4116)
* SQLite History Backend: show message instead of exiting from xonsh when disk is full.

* a bit cleaning

Co-authored-by: a <a>
2021-02-25 09:33:55 -05:00
anki-code
c3c655dacf
A bit docs around subprocess strings for sh-ers (#4114)
* Update bash_to_xsh.rst

* Update bash_to_xsh.rst
2021-02-22 10:28:36 -05:00
Evgeny
eacb2e5cc0
feat: add xontrib-cd (#4109) 2021-02-22 09:32:34 -05:00
Noorhteen Raja NJ
c2d5e60799
Py39 support (#4101)
* fix: handle ast.Index and ast.ExtSlice change while Parsing

related to #4100, #4099, #4068, #4038, #4028, #4005,

* fix: py39 raises when lineno & col not given

TypeError: required field "col_offset" missing from keyword

* fix: tuple inside scbscriptor support for py39

* chore: enable py39 ci checks

they were silently failing before

* test: a backlog test for attributes inside subscriptors

this would require debugging deep into the ply parser methods.

* docs: add news item

* test: skip test_rc_with_modified_path on windows

* Update tests/test_parser.py

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

* test: mark failing tests for py39 parser

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-02-17 12:31:33 -05:00
Nate Simon
c4e7843598
add disown command (#4090)
* add "disown" internal command
This command will remove jobs from the shell's job table, allowing the command
to continue running after the shell exits. Configuration options are provided
to manage how suspended background jobs are handled after being disowned.

* job-ctrl-disown code style update

* job-ctrl-disown style updates + change arg --cont to --continue

* Trim extra "=" in doc for "disown" cmd

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

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-02-09 10:54:17 -05:00
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