Commit graph

10308 commits

Author SHA1 Message Date
Andy Kipp
309188e9fc
Create ujson.rst 2022-08-03 19:29:28 +06:00
Andy Kipp
c14455c828
Added "ujson" to xonsh[full] 2022-08-03 19:24:19 +06:00
Peter Ye
86e4f004e3
Fix job control for callable aliases (#4901)
* Make job control task queue thread-local

This allows callable aliases to maintain a separate task queue from the
main thread.

* Make job control dictionary thread-local

Use XSH.all_jobs for the main thread and a separate dictionary for other
threads. This allows callable aliases to keep track of their jobs
separate from the main thread.

* Implement use_main_jobs() context manager

This allows threaded commands like jobs, disown, and bg to handle the
main thread's job control

* Run commands in the same process group if in a thread

* Fix tests that use jobs and tasks

* Add tests for subprocess call inside alias

* Add news

* Remove type declarations for _jobs_thread_local

Fixes the mypy error: "Type cannot be declared in assignment to non-self attribute"

Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-08-03 11:37:26 +05:30
Gil Forsyth
2d75729962
fix(styles): fall back to default style if style not found (#4906)
The fallback is already the default behavior if the user has `pygments`
installed, but if they don't we were awkwardly bailing out here and
preventing startup.
2022-08-03 11:35:28 +05:30
pre-commit-ci[bot]
5f5dab88c8
[pre-commit.ci] pre-commit autoupdate (#4904)
updates:
- [github.com/pycqa/flake8: 4.0.1 → 5.0.2](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2)
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-02 08:32:12 +05:30
Peter Ye
4333f362a1
Fix virtualenv Path import and bump version (#4903)
virtualenv.util.path.Path got removed when virtualenv 20.16.0 dropped
support for running on Python 2.7

pathlib.Path should be used instead. For example, see
a45c7d6e50/src/virtualenv/activation/python/__init__.py
2022-07-31 10:32:01 +05:30
Andy Kipp
1e20ee04c8
Merge pull request #4894 from xonsh/anki-code-patch-1
Create FUNDING.yml
2022-07-29 23:04:05 +06:00
Andy Kipp
3bbd09b565
Update README.rst: install from pip (#4898)
Update README.rst

Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-07-29 13:10:26 +05:30
Andy Kipp
4c6ad2cb03
Update README.rst: add link to xontrib-template (#4897)
Update README.rst
2022-07-29 13:08:43 +05:30
Andy Kipp
b5a282b294
Update README.rst (#4895)
* Update README.rst

* Update README.rst

* Update README.rst
2022-07-28 22:52:45 +05:30
Andy Kipp
14e6dff64d
Create FUNDING.yml 2022-07-26 13:48:15 +06:00
pre-commit-ci[bot]
36fb35d309
[pre-commit.ci] pre-commit autoupdate (#4893)
updates:
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971)
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-26 00:27:15 +05:30
jgart
8ac9f22d56
docs: Add GNU Guix information (#4891) 2022-07-25 15:35:00 +05:30
Noorhteen Raja NJ
8a5b50e084
Update test_pip_completer.py (#4890)
* Update test_pip_completer.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-25 15:05:00 +05:30
Tim Gates
37f6adb159
docs: Fix a few typos (#4889)
There are small typos in:
- docs/python_virtual_environments.rst
- setup.py
- xonsh/procs/specs.py
- xontrib/abbrevs.py

Fixes:
- Should read `interpreter` rather than `intrepreter`.
- Should read `dictionary` rather than `disctionary`.
- Should read `descriptors` rather than `descriptiors`.
- Should read `because` rather than `becuase`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-23 04:42:46 +05:30
Andy Kipp
0214b878de
Update README.rst (#4877)
* Update README.rst

* Update README.rst
2022-07-15 02:21:40 +05:30
Gil Forsyth
649fad8a7c
fix(xpip): never add sudo, append --user instead (#4879) 2022-07-14 23:35:40 +05:30
pre-commit-ci[bot]
c8c1fd1071
[pre-commit.ci] pre-commit autoupdate (#4874)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-11 23:56:34 +05:30
Andy Kipp
2042d78d0d
Removed GTM (#4870)
Update index.html
2022-07-09 15:40:48 +05:30
Gil Forsyth
386f9542ff Updated CHANGELOG for 0.13.0 2022-07-08 09:38:09 -04:00
Gil Forsyth
ef699390fb bumped version to 0.13.0 2022-07-08 09:37:54 -04:00
Gil Forsyth
7087e84245 Updated authorship for 0.13.0 2022-07-08 09:37:54 -04:00
Gil Forsyth
402e0e051d
chore(release): update authors list 2022-07-08 08:41:32 -04:00
Andy Kipp
ff7b2741ff
Added Google Tag Manager 2022-07-07 01:41:22 +04:00
Andy Kipp
1fe85ea5b7
Rewrite xontribs section 2022-07-06 00:58:44 +04:00
cmidkiff87
ce0b8e04c6
Fix free_cwd xontrib loading (#4865)
issue #4864
see also: ecc1ab1020
2022-07-05 22:13:30 +05:30
Gil Forsyth
013fa760a0
refactor(amalgamate): remove amalgamation (#4858)
Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-07-04 10:40:16 +05:30
Noorhteen Raja NJ
cbf23e60fb
Pre commit ci (#4863) 2022-07-01 11:47:01 -04:00
Eddie Peters
8b9a7e2782
fix(pyghooks): Fix some errors caused by an unset Xonsh session env when using XonshLexer as a Pygments plugin. (#4860) 2022-06-30 10:40:58 -04:00
Noorhteen Raja NJ
52a12aaf85
chore: update project license info (#4857) 2022-06-29 09:13:43 -04:00
Gil Forsyth
b7541180c2
docs(devguide): update how to build the docs (#4854)
Also stripped out reference to an imaginary release process and cleaned
up some style issues in the RST
2022-06-28 07:59:06 +05:30
Hannes Römer
349dee75a3
#4845: conditional import of ptk_win32 → windows only (#4853)
* #4845: conditional import of ptk_win32 -> windows only

* #4845: added news entry

* #4845: moved news entry to separate file
2022-06-28 07:51:34 +05:30
Gil Forsyth
5401a246c6 Updated CHANGELOG for 0.12.6 2022-06-21 10:44:07 -04:00
Gil Forsyth
976f38bdf8 bumped version to 0.12.6 2022-06-21 10:44:06 -04:00
Gil Forsyth
bd664802b9 Updated authorship for 0.12.6 2022-06-21 10:44:06 -04:00
Noorhteen Raja NJ
5b98d9d735
fix-pypi-gha (#4843) 2022-06-21 10:42:47 -04:00
Peter Ye
ed213f852b
fix: string literal concatenation (#4838)
* fix: string literal concatenation

Fix string literal concatenation involving f-strings and path literals.
Raise SyntaxError when string literal concatenation is attempted between
different literal types (e.g. str and bytes).

* Add tests

Make nodes_equal() check whether the values of Constant nodes are equal.

* add news

* update nodes_equal() error msg
2022-06-18 08:34:34 +05:30
Gil Forsyth
e3a7e8718c
hotfix gha publish to pypi 2022-06-17 12:49:58 -04:00
Gil Forsyth
db5141006e Updated CHANGELOG for 0.12.5 2022-06-17 12:46:08 -04:00
Gil Forsyth
98f3b6b9e5 bumped version to 0.12.5 2022-06-17 12:46:07 -04:00
Gil Forsyth
e684663618 Updated authorship for 0.12.5 2022-06-17 12:46:07 -04:00
Gil Forsyth
34cbe6665b
Update authors and remove ghpages from rever release 2022-06-17 12:45:13 -04:00
Noorhteen Raja NJ
3716f3da86
Pr5 xontrib entrypoints (#4827) 2022-06-17 12:39:12 -04:00
dependabot[bot]
538c26f0e3
chore(deps): bump actions/setup-python from 3 to 4 (#4837)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 10:13:26 +05:30
Peter Ye
b2c42ed2f3
feat: f-glob strings (#4835)
* feat: add support for f-glob strings

Move xonsh_pathsearch() into the BaseParser class because it needs to use self._set_error()

Parametrize 6 backtick tests in test_parser.py into test_backtick() (and add cases for f-glob strings)

* add news

* docs: update tutorial

* fix news file
2022-06-12 13:45:16 +05:30
dependabot[bot]
0ddc05e82e
chore(deps): bump actions/setup-python from 2 to 3 (#4834)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:22:20 +05:30
dependabot[bot]
daa5d5300b
chore(deps): bump actions/checkout from 2 to 3 (#4833)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:14:34 +05:30
dependabot[bot]
0c9c593d1b
chore(deps): bump codecov/codecov-action from 2 to 3 (#4832)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:13:32 +05:30
Naveen
40383d1f09
chore: Included githubactions in the dependabot config (#4831)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-08 10:50:42 +05:30
Peter Ye
0202affb1a
Fix ExecAlias return value (#4829) 2022-06-06 10:43:22 +05:30