mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Merge branch 'master' into hsah
This commit is contained in:
commit
0590a6d011
8 changed files with 76 additions and 3 deletions
2
.github/issue_template.md
vendored
2
.github/issue_template.md
vendored
|
@ -1,6 +1,6 @@
|
||||||
<!--- Provide a general summary of the issue in the Title above -->
|
<!--- Provide a general summary of the issue in the Title above -->
|
||||||
<!--- If you have a question along the lines of "How do I do this Bash command in xonsh"
|
<!--- If you have a question along the lines of "How do I do this Bash command in xonsh"
|
||||||
please first look over the Bash to Xonsh translation guide: http://xon.sh/bash_to_xsh.html
|
please first look over the Bash to Xonsh translation guide: https://xon.sh/bash_to_xsh.html
|
||||||
If you don't find an answer there, please do open an issue! -->
|
If you don't find an answer there, please do open an issue! -->
|
||||||
|
|
||||||
## xonfig
|
## xonfig
|
||||||
|
|
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
|
@ -1,6 +1,6 @@
|
||||||
<!--- Thanks for opening a PR on xonsh! Please include a news entry with your PR
|
<!--- Thanks for opening a PR on xonsh! Please include a news entry with your PR
|
||||||
to help keep our changelog up to date! There are instructions available here:
|
to help keep our changelog up to date! There are instructions available here:
|
||||||
http://xon.sh/devguide.html#changelog -->
|
https://xon.sh/devguide.html#changelog -->
|
||||||
|
|
||||||
<!--- If there is specific issue / feature request that this PR is addressing,
|
<!--- If there is specific issue / feature request that this PR is addressing,
|
||||||
please link to the corresponding issue by using the `#issuenumber` syntax.
|
please link to the corresponding issue by using the `#issuenumber` syntax.
|
||||||
|
|
|
@ -21,6 +21,13 @@ jobs:
|
||||||
|
|
||||||
# Conda Environment
|
# Conda Environment
|
||||||
# Create and activate a Conda environment.
|
# Create and activate a Conda environment.
|
||||||
|
- task: CondaEnvironment@1
|
||||||
|
inputs:
|
||||||
|
packageSpecs: 'python=$(python.version) conda=4.5.11 pygments prompt_toolkit ply pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov'
|
||||||
|
installOptions: '-c conda-forge/label/cf201901'
|
||||||
|
updateConda: false
|
||||||
|
condition: eq(variables['python.version'], '3.5')
|
||||||
|
displayName: 'Conda Environment (conda-forge/label/cf201901)'
|
||||||
- task: CondaEnvironment@1
|
- task: CondaEnvironment@1
|
||||||
inputs:
|
inputs:
|
||||||
packageSpecs: 'python=$(python.version) pygments prompt_toolkit ply pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov'
|
packageSpecs: 'python=$(python.version) pygments prompt_toolkit ply pytest pytest-timeout numpy psutil matplotlib flake8 coverage pyflakes pytest-cov pytest-flake8 codecov'
|
||||||
|
@ -33,6 +40,7 @@ jobs:
|
||||||
installOptions: '-c conda-forge'
|
installOptions: '-c conda-forge'
|
||||||
updateConda: false
|
updateConda: false
|
||||||
condition: ne(variables['python.version'], '3.5')
|
condition: ne(variables['python.version'], '3.5')
|
||||||
|
displayName: 'Conda Environment (conda-forge)'
|
||||||
- script: |
|
- script: |
|
||||||
pip install .
|
pip install .
|
||||||
xonsh run-tests.xsh --timeout=10 --junitxml=junit/test-results.xml
|
xonsh run-tests.xsh --timeout=10 --junitxml=junit/test-results.xml
|
||||||
|
|
|
@ -4,6 +4,9 @@ As you have probably figured out by now, xonsh is not ``sh``-lang compliant.
|
||||||
If your muscles have memorized all of the Bash prestidigitations, this page
|
If your muscles have memorized all of the Bash prestidigitations, this page
|
||||||
will help you put a finger on how to do the equivalent task in xonsh.
|
will help you put a finger on how to do the equivalent task in xonsh.
|
||||||
|
|
||||||
|
For shell scripts, the recommended file extension is ``xsh``, and shebang
|
||||||
|
line is ``#!/usr/bin/env xonsh``.
|
||||||
|
|
||||||
.. list-table::
|
.. list-table::
|
||||||
:widths: 30 30 40
|
:widths: 30 30 40
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
23
news/broke-sym.rst
Normal file
23
news/broke-sym.rst
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
**Added:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Changed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Deprecated:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Removed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Fixed:**
|
||||||
|
|
||||||
|
* Made ``$PATH`` searching more robust to broken symlinks on Windows.
|
||||||
|
|
||||||
|
**Security:**
|
||||||
|
|
||||||
|
* <news item>
|
23
news/xontrib-direnv.rst
Normal file
23
news/xontrib-direnv.rst
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
**Added:**
|
||||||
|
|
||||||
|
* A xontrib which adds support for `direnv <https://direnv.net/>`_
|
||||||
|
|
||||||
|
**Changed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Deprecated:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Removed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Fixed:**
|
||||||
|
|
||||||
|
* <news item>
|
||||||
|
|
||||||
|
**Security:**
|
||||||
|
|
||||||
|
* <news item>
|
|
@ -790,7 +790,11 @@ def _executables_in_windows(path):
|
||||||
yield fname
|
yield fname
|
||||||
else:
|
else:
|
||||||
for x in scandir(path):
|
for x in scandir(path):
|
||||||
if x.is_file():
|
try:
|
||||||
|
is_file = x.is_file()
|
||||||
|
except OSError:
|
||||||
|
continue
|
||||||
|
if is_file:
|
||||||
fname = x.name
|
fname = x.name
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -52,6 +52,11 @@
|
||||||
"tools avoid the need for a full subprocess call. Additionally, these ",
|
"tools avoid the need for a full subprocess call. Additionally, these ",
|
||||||
"tools are cross-platform."]
|
"tools are cross-platform."]
|
||||||
},
|
},
|
||||||
|
{"name": "direnv",
|
||||||
|
"package": "xonsh-direnv",
|
||||||
|
"url": "https://github.com/74th/xonsh-direnv",
|
||||||
|
"description": ["Supports direnv."]
|
||||||
|
},
|
||||||
{"name": "distributed",
|
{"name": "distributed",
|
||||||
"package": "xonsh",
|
"package": "xonsh",
|
||||||
"url": "http://xon.sh",
|
"url": "http://xon.sh",
|
||||||
|
@ -205,6 +210,13 @@
|
||||||
"pip": "xpip install xonsh-apt-tabcomplete"
|
"pip": "xpip install xonsh-apt-tabcomplete"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"xonsh-direnv": {
|
||||||
|
"license": "MIT",
|
||||||
|
"url": "https://github.com/74th/xonsh-direnv",
|
||||||
|
"install": {
|
||||||
|
"pip": "xpip install xonsh-direnv"
|
||||||
|
}
|
||||||
|
},
|
||||||
"xonsh-docker-tabcomplete": {
|
"xonsh-docker-tabcomplete": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"url": "https://github.com/xsteadfastx/xonsh-docker-tabcomplete",
|
"url": "https://github.com/xsteadfastx/xonsh-docker-tabcomplete",
|
||||||
|
|
Loading…
Add table
Reference in a new issue