Commit Graph

24 Commits

Author SHA1 Message Date
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
Ralph Moritz
888dc19882 Get Hy working on Windows by making readline use conditional. 2013-07-01 22:41:56 +02:00
Nicolas Dandrimont
b65c2a4596 whitespace fix 2013-06-26 08:50:37 +02:00
Guillermo Vaya
4c7b4f70e3 changed try to testing for an empty list for legibility (as suggested by paultag), also added to authors 2013-06-26 08:50:37 +02:00
Morten Linderud
56bae8cc54 FIxed Authors 2013-06-23 04:18:22 +02:00
Paul Tagliamonte
8935a998ad Add @thomasballinger to AUTHORS 2013-06-08 20:18:34 -04:00
Paul Tagliamonte
4d625fff20 Add @rogererens to authors 2013-05-13 19:59:54 -04:00
Paul Tagliamonte
592129502b Adding @egenhombre to AUTHORS 2013-04-21 10:53:34 -04:00
Paul R. Tagliamonte
3e0ff4a9b2 Adding @vladimir-g to AUTHORS 2013-04-13 10:50:55 -04:00
Paul R. Tagliamonte
e55e63c759 Add @khinsen to AUTHORS 2013-04-09 19:55:19 -04:00
Paul R. Tagliamonte
5ff40c5e30 Forgot to add @algernon to AUTHORS 2013-04-07 18:58:45 -04:00
Nicolas Dandrimont
b098070a7d Add myself to AUTHORS 2013-04-03 21:03:34 +02:00
Paul Tagliamonte
7fed29dad8 Forgot to add @jd to AUTHORS. Thanks! 2013-04-03 09:22:37 -04:00
Paul Tagliamonte
12106d3d37 idle cleanup 2013-04-02 14:50:16 -04:00
Christopher Allan Webber
6deb8e303c Adding Will to the AUTHORS 2013-04-01 11:21:00 -05:00
Christopher Allan Webber
6c8f0da256 Adding a super basic tutorial to the docs. 2013-03-31 16:46:56 -05:00
Paul R. Tagliamonte
7288164309 Adding @rumple to AUTHORS 2013-03-19 03:09:18 -04:00
Thomas Mashek
a832567f26 Adding authors 2013-03-13 08:22:31 -07:00
Paul Tagliamonte
f5836da2a5 Kill everything 2013-02-27 19:00:52 -05:00
Paul Tagliamonte
c9ae4f33d5 Adding @algernon to AUTHORS. 2013-01-11 19:40:35 -05:00
Paul Tagliamonte
c751f4526f author update 2012-12-23 14:11:38 -05:00
Paul Tagliamonte
87b602fc9f m'fn kwargs 2012-12-22 23:07:09 -05:00
Paul Tagliamonte
7f4b4f8bf8 Getting fib working :> 2012-12-18 19:02:50 -05:00
Paul Tagliamonte
79827d7bbe Biding my time before the morning meeting 2012-12-17 09:55:41 -05:00