Commit Graph

974 Commits

Author SHA1 Message Date
Guillermo Vaya
f5754b404e Define kwapply as a macro
Define apply if python3
Added apply tests
2013-11-02 18:18:16 +01:00
Nicolas Dandrimont
2ab35332a0 Ship the hy files in hy/contrib 2013-11-01 04:04:12 +01:00
Paul Tagliamonte
b4ff53e5f8 Merge branch 'master' into pr/314 2013-10-24 19:29:13 -04:00
Paul Tagliamonte
2778a8b379 Someone fix this with a real path 2013-10-22 21:08:33 -04:00
Christopher Allan Webber
8348b2b0fd Fix the repo location 2013-10-17 15:35:17 -05:00
Nicolas Dandrimont
06628dbba5 Fully qualify the HyTypeError reference
No need to import it explicitly, the hy module is available everywhere.
2013-10-17 18:53:43 +02:00
J Kenneth King
b56f03ed29 Merge pull request #312 from joehakimrahme/master
Uses square brackets for conds in docs
2013-10-16 10:31:00 -07:00
Joe H. Rahme
3856467bf6 Uses square brackets for conds in docs 2013-10-16 18:31:18 +02:00
Paul Tagliamonte
312d4816ce nom'ing @olasd's redirect 2013-10-10 17:44:06 -04:00
Paul Tagliamonte
187268c960 Merge branch 'master' into pr/300 2013-10-10 17:42:51 -04:00
Paul Tagliamonte
8377097a36 Merge branch 'master' into pr/298 2013-10-10 17:30:03 -04:00
Paul Tagliamonte
e053157ff1 Merge branch 'master' into pr/294 2013-10-10 17:25:13 -04:00
Paul Tagliamonte
656d646198 change virtualenv name to be `hy' 2013-10-10 17:17:43 -04:00
Paul Tagliamonte
a70bcc1f2f Merge branch 'master' into pr/306 2013-10-10 17:17:20 -04:00
Sean B. Palmer
6364296a7b Documented punycode conversion more thoroughly using a compound case 2013-10-10 15:59:19 +01:00
Berker Peksag
221a9b4918 Mention virtualenvwrapper in the hacking guide. 2013-10-09 12:36:35 +03:00
Paul Tagliamonte
e5f91c48e9 Merge pull request #304 from berkerpeksag/patch-1
Update hacking guide.
2013-10-07 20:04:05 -07:00
Berker Peksag
0248e42633 Update hacking guide. 2013-10-08 06:00:25 +03:00
Berker Peksag
a038d3c592 Remove the redundant pass statement. 2013-09-30 12:55:05 +03:00
Nicolas Dandrimont
a90c866327 Rewrite language.hy not to require hy.core.macros
As was intended when the bootstrap and core macros were separated.
2013-09-29 18:13:28 +02:00
Nicolas Dandrimont
875d5f2ff5 Rewrite the bootstrap macros in hy
This gets rid of the dichotomy between bootstrap.py and macros.hy,
by making both files hy modules.

I added some error checking to make the macros more resilient. The
biggest (user-visible) change is the change in cond, which now only
accepts lists as arguments. Tests updated accordingly.

Closes: #176 (whoops, no more bootstrap)
2013-09-29 18:13:28 +02:00
Nicolas Dandrimont
d5bf328aa7 Cleanup the hy.macros module
Add comments to the functions, reorder, make the file clearer
2013-09-29 18:13:28 +02:00
Nicolas Dandrimont
9ea153fd7e Add @berkerpeksag to AUTHORS 2013-09-29 15:10:33 +02:00
Nicolas Dandrimont
295e1240ad PY3 should really check for Python >= 3 2013-09-29 14:53:44 +02:00
Berker Peksag
f21ddeeded Add hy._compat module.
There was a couple of duplicate imports and type checkings in the
codebase. So I added a new module to unify all Python 2 and 3
compatibility codes.

Also, this is a somewhat common pattern in Python. See Jinja2 for
example:

https://github.com/mitsuhiko/jinja2/blob/master/jinja2/_compat.py
2013-09-29 12:10:08 +03:00
Tuukka Turto
203dc4e6b2 Merge pullrequest #296 2013-09-29 08:49:52 +03:00
Jack
e4e07e32b0 Update README.md
Current url errors: "Choose a redirect for quickstart.html on hy.readthedocs.org"
2013-09-27 20:42:51 -04:00
khinsen
99a5064318 Merge pull request #297 from olasd/print-function
Always import __future__.print_statement in hy code
2013-09-27 00:04:37 -07:00
Guillermo Vaya
ff7c71b9c9 comply with hy's tao rules for getattr 2013-09-23 23:34:45 +02:00
Guillermo Vaya
3f1243f88c changed to use short version of macros 2013-09-23 23:34:45 +02:00
Guillermo Vaya
d495473c54 Translation of meth from Python to Hy 2013-09-23 23:34:45 +02:00
Nicolas Dandrimont
f6aa7e953d Always import __future__.print_statement in hy code
This allows us to drop the print special-casing in the
compiler, and makes behavior consistent in Python2/3.
2013-09-22 15:31:15 +02:00
Nicolas Dandrimont
6a7d97c286 Add test for unquote-splice behavior 2013-09-22 15:12:59 +02:00
Nicolas Dandrimont
48dd968461 Coerce the contents of unquote-splice'd things to a list
This fixes the conversion issue in the following macro:

(defmacro doodle [&rest body]
  `(do ~@body))
2013-09-22 15:08:43 +02:00
Nicolas Dandrimont
7a403a2660 Merge branch 'patch-1' of https://github.com/berkerpeksag/hy into berkerpeksag-patch-1 2013-09-22 12:27:22 +02:00
Berker Peksag
522553ffec Various setup.py enhancements.
- PEP8 fixes
- Use setuptools.find_packages()
- Update PyPI classifiers
- Update website URL
- Install the argparse module in Python 2.6 and before
- Delete the duplicate rply in install_requires. With the PyPI
  version, tests are failed.
2013-09-20 09:08:29 +03:00
Bob Tolbert
7e8a7edbdc finally fixed access to hy.core.macros here. have to explicitly require them 2013-09-14 12:17:06 -06:00
Bob Tolbert
d9dee8ec67 One more commit to change the test for Python 2/3 to a macro
Note that this can't use the macro in hy.core.macros so there
is a local copy in language.hy
2013-09-03 18:41:11 -06:00
Bob Tolbert
9d2ad4b4ff slightly cleaner version of drop-while, could use yield-from when ready 2013-09-03 13:52:00 -06:00
Bob Tolbert
399ea1889a Second (smaller) set of native core functions
This rounds out the first pass at a set of core functions, adding
some that were not in the first PR.

From here I'm working on a contrib.seq and contrib.io module to
hold less obvious but maybe interesting native functions that can
move to core if desired.

This should also close out issure #150 asking for some core
functions like these.
2013-09-03 13:52:00 -06:00
Paul Tagliamonte
b2c51d0130 Merge branch 'master' into pr/287 2013-09-02 22:55:31 -04:00
kaizoku
b892ec4e66 Add zero? predicate to check if an object is zero 2013-09-02 02:28:21 -07:00
Konrad Hinsen
b11f2fcf49 Macro if-python2 for compile-time choice between Python 2 and Python 3 code branches 2013-09-02 09:58:35 +02:00
Paul Tagliamonte
e693a0267a Merge branch 'master' into pr/280 2013-09-01 18:56:17 -04:00
Nicolas Dandrimont
22204a326d Merge pull request #282 from tuturto/doc
fix def / setv example
2013-08-26 04:25:05 -07:00
Tuukka Turto
e845287941 fix def / setv example 2013-08-25 21:29:24 +03:00
Bob Tolbert
0e10f7b283 Removed duplicate flake8 since it has moved into requirements.txt 2013-08-24 11:24:25 -06:00
Bob Tolbert
fdb2385223 Add flake8 to Travis-CI to prevent these from coming back
Added new travis make target to skip flake8 on pypy but run it on all others
2013-08-24 11:14:29 -06:00
Bob Tolbert
e33c27d447 Fixing blank line Flake8 failures 2013-08-24 08:33:13 -06:00
Bob Tolbert
b5b2ec4896 Merge pull request #266 from paultag/paultag/feature/yield-from
Paultag/feature/yield from
2013-08-24 07:15:42 -07:00