Hy fork
Go to file
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
bin Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
docs Removes setf in favor of setv 2013-07-10 02:16:49 +02:00
eg Removes setf in favor of setv 2013-07-10 02:16:49 +02:00
hy Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
maintainer-scripts Adding in the mant thinger. 2013-04-15 08:37:25 -04:00
tests Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
.gitignore Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
.travis.yml Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
AUTHORS Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
LICENSE Removing my name from the license. 2013-04-05 20:04:36 -04:00
make.bat Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
Makefile removing site target 2013-04-12 23:46:28 -04:00
NEWS Update NEWS. 2013-07-07 14:03:25 -04:00
README.md forgot this guy 2013-05-18 13:07:11 -04:00
requirements-dev.txt Added astor as dev prereq 2013-06-22 19:17:31 -06:00
requirements.txt Adding back Python 2.6. 2013-03-13 20:02:16 -04:00
setup.cfg Adding in some basic bits in 2013-03-02 20:58:58 -05:00
setup.py Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
tox.ini Add in a new core language file. 2013-06-29 18:51:11 -04:00

Hy

Lisp and Python should love each other. Let's make it happen.

Build Status

Hylarious Hacks

Django + Lisp

Python sh fun

Hy IRC bot

OK, so, why?

Well. Python is awesome. So awesome, that we have so many tools to alter the languge in a core way, but we never use them.

Why?

Well, I wrote Hy to help people realize one thing about Python:

It's really goddamn awesome.

Oh, and lisps are neat.

(fan art from the one and only doctormo)

Project