hy/tests
Bob Tolbert df7bb1d29a Provide bin scripts for both Windows and *nix
Summary: This update does away with the scripts in bin and changes
setup.py to use entry_points in cmdline.py for the scripts 'hy' and
'hyc'.

This fixes installing and running on Windows.

The tests are updated to run the 'hy' script produced by setup.py
and not from bin/hy. This is more correct and makes the tox tests
run on both Window and *nix.

For running hy or nosetests directly in the source tree, you do have
to run 'python setup.py develop' first. But since tox runs and builds
dists, all tox tests pass on all platforms.

Also, since there is no built-in readline on Windows, the setup.py
only on Windows requires 'pyreadline' as a replacement.

Switched from optparse to argparse in cmdline.py

Instead of trying to manually separate args meant for
hy from args meant for a hy script, this switches from
optparse to argparse for the CLI.

argparse automatically peels out args meant for hy and leaves
the rest, including the user hy script in options.args.

This fixes the issue @paultag found running "hy foo" where
foo is not a real file. Also added a test that makes sure
trying to run a non-existent script exits instead of dropping
the user into the REPL.

Added argparse as setup.py resource (and removed from tox.ini) as well as removed uses of deprecated setf
2013-07-14 09:06:42 -06:00
..
compilers Jank @olasd's hack, clean up core. 2013-07-06 14:00:11 -04:00
importer Fix flake error 2013-07-06 20:39:02 +02:00
lex Add tests for expr-in-dict 2013-05-14 12:01:23 +02:00
macros Jank @olasd's hack, clean up core. 2013-07-06 14:00:11 -04:00
models Make HyList add returns HyList 2013-04-28 17:04:33 +02:00
native_tests Removes setf in favor of setv 2013-07-10 02:16:49 +02:00
resources Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
__init__.py style fixes 2013-05-11 13:59:19 -04:00
test_bin.py Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00