Skip to content

Commit

Permalink
Extending Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aslucki committed Mar 31, 2019
1 parent 53835c4 commit 61ed2ee
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.PHONY: build, dev, test, clean
.PHONY: build, dev, test, clean, example, send_to_pypi, update_leaderboard
IMAGE_NAME=wildnlp

clean:
rm -rf build
rm -rf dist
rm -rf wild_nlp.egg-info
rm -rf .pytest_cache
rm -rf tests/aspects/__pycache__
rm -rf tests/datests/__pycache__
rm -rf build \
dist \
wild_nlp.egg-info \
.pytest_cache \
tests/aspects/__pycache__ \
tests/datests/__pycache__

build:
docker build -t $(IMAGE_NAME) .
Expand All @@ -19,4 +19,20 @@ dev:
$(IMAGE_NAME)

test:
python3 -m pytest tests/ -s
python3 -m pytest tests/ -s

example:
pip3 install -e .
python3 example/evaluation.py

send_to_pypi:
python3 -m pip install --upgrade setuptools wheel, twine
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

# Works only in the container
update_leaderboard:
(cd /codalab-cli/ && \
venv/bin/python scripts/competitiond.py \
/project/Leaderboard/_cl_config.yaml \
/project/Leaderboard/out.json)

0 comments on commit 61ed2ee

Please sign in to comment.