Skip to content

Commit 61ed2ee

Browse files
committed
Extending Makefile
1 parent 53835c4 commit 61ed2ee

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

Makefile

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
.PHONY: build, dev, test, clean
1+
.PHONY: build, dev, test, clean, example, send_to_pypi, update_leaderboard
22
IMAGE_NAME=wildnlp
33

44
clean:
5-
rm -rf build
6-
rm -rf dist
7-
rm -rf wild_nlp.egg-info
8-
rm -rf .pytest_cache
9-
rm -rf tests/aspects/__pycache__
10-
rm -rf tests/datests/__pycache__
5+
rm -rf build \
6+
dist \
7+
wild_nlp.egg-info \
8+
.pytest_cache \
9+
tests/aspects/__pycache__ \
10+
tests/datests/__pycache__
1111

1212
build:
1313
docker build -t $(IMAGE_NAME) .
@@ -19,4 +19,20 @@ dev:
1919
$(IMAGE_NAME)
2020

2121
test:
22-
python3 -m pytest tests/ -s
22+
python3 -m pytest tests/ -s
23+
24+
example:
25+
pip3 install -e .
26+
python3 example/evaluation.py
27+
28+
send_to_pypi:
29+
python3 -m pip install --upgrade setuptools wheel, twine
30+
python3 setup.py sdist bdist_wheel
31+
python3 -m twine upload dist/*
32+
33+
# Works only in the container
34+
update_leaderboard:
35+
(cd /codalab-cli/ && \
36+
venv/bin/python scripts/competitiond.py \
37+
/project/Leaderboard/_cl_config.yaml \
38+
/project/Leaderboard/out.json)

0 commit comments

Comments
 (0)