minor updates

This commit is contained in:
Anthony Scopatz 2016-05-08 20:17:48 -04:00
parent 8f886ca11a
commit b74d06431d
3 changed files with 13 additions and 9 deletions

View file

@ -135,7 +135,7 @@ def main():
url='https://github.com/scopatz/xonsh', url='https://github.com/scopatz/xonsh',
platforms='Cross Platform', platforms='Cross Platform',
classifiers=['Programming Language :: Python :: 3'], classifiers=['Programming Language :: Python :: 3'],
packages=['xonsh', 'xonsh.ptk', 'xonsh.parsers'], packages=['xonsh', 'xonsh.ptk', 'xonsh.parsers', 'xontrib'],
cmdclass={'install': xinstall, 'sdist': xsdist}, cmdclass={'install': xinstall, 'sdist': xsdist},
) )
if HAVE_SETUPTOOLS: if HAVE_SETUPTOOLS:

View file

@ -382,13 +382,6 @@ def vox(args, stdin=None):
return vox(args, stdin=stdin) return vox(args, stdin=stdin)
@foreground
def mpl(args, stdin=None):
"""Hooks to matplotlib"""
from xonsh.mplhooks import show
show()
def make_default_aliases(): def make_default_aliases():
"""Creates a new default aliases dictionary.""" """Creates a new default aliases dictionary."""
default_aliases = { default_aliases = {
@ -412,7 +405,6 @@ def make_default_aliases():
'replay': replay_main, 'replay': replay_main,
'!!': bang_bang, '!!': bang_bang,
'!n': bang_n, '!n': bang_n,
'mpl': mpl,
'trace': trace, 'trace': trace,
'timeit': timeit_alias, 'timeit': timeit_alias,
'xonfig': xonfig, 'xonfig': xonfig,

12
xontrib/mpl.py Normal file
View file

@ -0,0 +1,12 @@
"""Matplotlib xontribution."""
from xonsh.proc import foreground
@foreground
def _mpl(args, stdin=None):
"""Hooks to matplotlib"""
from xonsh.mplhooks import show
show()
aliases['mpl'] = _mpl