Skip to content

Commit

Permalink
Add python
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhish committed Dec 7, 2020
1 parent dc3864f commit 137df03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# - [ ] Append language specific executable command to `todo.sh`
#

TARGETS = cpp javascript ruby java
TARGETS = cpp javascript ruby java python


all: clean $(TARGETS)
Expand Down Expand Up @@ -48,6 +48,16 @@ ruby: _build
rm -rf _build/ruby
echo "Created ruby package: fellowship-ruby.zip"

python: _build
cp -rf python _build
cp -arf shared/. _build/python
# Append python command to `todo.sh`
# The $@ will pass through CLI args to the node executable
echo \\npython3 todo.py \"$$\@\" >> _build/python/todo.sh
cd _build && zip -r --quiet fellowship-python.zip python -x "node_modules" -x "package-lock.json"
rm -rf _build/python
echo "Created python package: fellowship-python.zip"

java: _build
cp -rf java _build
cp -arf shared/. _build/java
Expand Down
Empty file added python/todo.py
Empty file.

0 comments on commit 137df03

Please sign in to comment.