Skip to content

Commit 0a5a5cc

Browse files
added hy 1.0a4
1 parent c355abc commit 0a5a5cc

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

Diff for: packages/hy/1.0a4/build.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
PREFIX=$(realpath $(dirname $0))
4+
5+
mkdir -p build
6+
7+
cd build
8+
9+
curl "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz" -o python.tar.gz
10+
tar xzf python.tar.gz --strip-components=1
11+
rm python.tar.gz
12+
13+
./configure --prefix "$PREFIX" --with-ensurepip=install
14+
make -j$(nproc)
15+
make install -j$(nproc)
16+
17+
cd ..
18+
19+
rm -rf build
20+
21+
bin/pip3 install numpy scipy pandas pycrypto whoosh bcrypt passlib sympy
22+
bin/pip3 install --pre hy==1.0a4 hyrule==0.1 toolz multipledispatch funcy funcy_chain pyrsistent

Diff for: packages/hy/1.0a4/environment

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export PATH=$PWD/bin:$PATH

Diff for: packages/hy/1.0a4/metadata.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"language": "hy",
3+
"version": "1.0a4",
4+
"aliases": ["hy", "hy1.0", "hy1.0a4"]
5+
}

Diff for: packages/hy/1.0a4/run

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
hy "$@"

Diff for: packages/hy/1.0a4/test.hy

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(print (cut "abcdef" 1 4))
2+
3+
(defn test [a b [c None] [d "x"] #* e]
4+
[a b c d e])
5+
(print (test 1 2)) ; => [1, 2, None, 'x', ()]
6+
(print (test 1 2 3 4 5 6 7)) ; => [1, 2, 3, 4, (5, 6, 7)]
7+
8+
(import math)
9+
(print (math.sqrt 2))
10+
11+
(import hyrule [inc])
12+
(require hyrule [assoc])
13+
(print (list (map inc [1 2 3])))
14+
(setv d {})
15+
(assoc d "a" 1 "b" 2)
16+
(print d)

Diff for: readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ Content-Type: application/json
342342
`groovy`,
343343
`haskell`,
344344
`husk`,
345+
`hy`,
345346
`iverilog`,
346347
`japt`,
347348
`java`,

0 commit comments

Comments
 (0)