aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
Diffstat (limited to 'lux-python')
-rw-r--r--lux-python/commands.md10
-rw-r--r--lux-python/project.lux7
-rw-r--r--lux-python/source/program.lux4
3 files changed, 15 insertions, 6 deletions
diff --git a/lux-python/commands.md b/lux-python/commands.md
index 3340581a2..869413fa7 100644
--- a/lux-python/commands.md
+++ b/lux-python/commands.md
@@ -28,6 +28,14 @@ cd ~/lux/stdlib/ \
```
cd ~/lux/lux-python/ \
-&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-python -Dversion=0.6.3 -Dpackaging=jar
+&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-python -Dversion=0.7.0-SNAPSHOT -Dpackaging=jar
+
+cd ~/lux/lux-python/ && mvn deploy:deploy-file \
+-Durl=https://$NEXUS_USERNAME:$NEXUS_PASSWORD@oss.sonatype.org/content/repositories/snapshots/ \
+-Dfile=target/program.jar \
+-DgroupId=com.github.luxlang \
+-DartifactId=lux-python \
+-Dversion=0.7.0-SNAPSHOT \
+-Dpackaging=jar
```
diff --git a/lux-python/project.lux b/lux-python/project.lux
index 916dbd5a9..f69567703 100644
--- a/lux-python/project.lux
+++ b/lux-python/project.lux
@@ -1,5 +1,5 @@
[""
- ["identity" ["com.github.luxlang" "lux-python" "0.6.5"]
+ ["identity" ["com.github.luxlang" "lux-python" "0.7.0-SNAPSHOT"]
"description" "A Python compiler for Lux."
"info" ["url" "https://github.com/LuxLang/lux"
"scm" "https://github.com/LuxLang/lux.git"
@@ -15,8 +15,9 @@
"repositories" ["https://oss.sonatype.org/content/repositories/snapshots/"
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]
- "compiler" ["com.github.luxlang" "lux-jvm" "0.6.5" "jar"]
+ "lux" ["com.github.luxlang" "lux-jvm" "0.7.0-SNAPSHOT" "jar"]
"dependencies" [... ["com.github.luxlang" "stdlib" "0.6.5" "tar"]
- ["org.python" "jython-standalone" "2.7.2" "jar"]]
+ ["org.python" "jython-standalone" "2.7.2" "jar"]
+ ["com.github.luxlang" "lux-jvm-function" "0.6.5" "jar"]]
"program" "program"]]
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index 25a2131c5..d12ea355c 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -157,7 +157,7 @@
{try.#Success value}
(case (read value)
{try.#Success lux_value}
- (again (++ idx) (array.write! idx lux_value output))
+ (again (++ idx) (array.has! idx lux_value output))
failure
failure)
@@ -314,7 +314,7 @@
org/python/core/PyObject
(case (|> it
(as (Array Any))
- (array.read! (|> index' ffi.int_to_long (as Nat))))
+ (array.item (|> index' ffi.int_to_long (as Nat))))
{.#None}
(::super! [index'])