Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Michał Zając 2015-06-11 14:13:57 +02:00
commit ec703afacc
8 changed files with 33 additions and 6 deletions

9
.appveyor.yml Normal file
View file

@ -0,0 +1,9 @@
version: 0.1.6.{build}
os: Windows Server 2012 R2
install:
- C:\Python34\Scripts\pip install ply pyreadline nose prompt_toolkit
build_script:
- C:\Python34\python setup.py install
test_script:
- C:\Python34\Scripts\nosetests

7
.gitignore vendored
View file

@ -16,6 +16,13 @@ dist/
xonsh.egg-info/
docs/_build/
# temporary files from vim and emacs
*~
*#
.#*
*.swp
*.swo
# Virtualenv
pip-selfcheck.json
bin/

View file

@ -4,6 +4,9 @@ xonsh
.. image:: https://travis-ci.org/scopatz/xonsh.svg?branch=master
:target: https://travis-ci.org/scopatz/xonsh
.. image:: https://ci.appveyor.com/api/projects/status/ufqtigii8ma3rctt/branch/master?svg=true
:target: https://ci.appveyor.com/project/rbrewer123/xonsh-unq93
.. image:: https://landscape.io/github/scopatz/xonsh/master/landscape.svg?style=flat
:target: https://landscape.io/github/scopatz/xonsh/master
:alt: Code Health

View file

@ -1,8 +1,8 @@
.. _xonsh_proc:
******************************************************
**********************************************************
Python Procedures as Subprocess Commands (``xonsh.proc``)
******************************************************
**********************************************************
.. automodule:: xonsh.proc
:members:

View file

@ -1,6 +1,6 @@
package:
name: xonsh
version: "0.1.5"
version: "0.1.6"
source:
fn: xonsh.tar.gz

View file

@ -1 +1 @@
__version__ = '0.1.5'
__version__ = '0.1.6'

View file

@ -47,6 +47,12 @@ def source_bash(args, stdin=None):
return
def source_alias(args, stdin=None):
"""Executes the contents of the provided files in the current context."""
for fname in args:
execx(open(fname).read(), 'exec', builtins.__xonsh_ctx__)
def xexec(args, stdin=None):
"""
Replaces current process with command specified and passes in the
@ -99,6 +105,7 @@ DEFAULT_ALIASES = {
'exit': exit,
'quit': exit,
'xexec': xexec,
'source': source_alias,
'timeit': timeit_alias,
'source-bash': source_bash,
'scp-resume': ['rsync', '--partial', '-h', '--progress', '--rsh=ssh'],

View file

@ -2260,6 +2260,7 @@ class Parser(object):
col=self.col)
p0._cliarg_action = 'extend'
else:
p0.s = os.path.expanduser(p0.s)
p0._cliarg_action = 'append'
elif isinstance(p1, ast.AST):
p0 = p1
@ -2305,7 +2306,7 @@ class Parser(object):
if len(p) == 2:
p0 = p1
else:
p0 = os.path.expanduser(p1 + p[2])
p0 = p1 + p[2]
p[0] = p0
def p_subproc_arg_part(self, p):