forked from IBM/unitxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (32 loc) · 919 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: docs format
# Absolute path to this make file
THIS_FILE := $(abspath $(lastword $(MAKEFILE_LIST)))
# Directory of this file
DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
docs:
# generate .rst files for sphinx
cd $(DIR)/docs && sphinx-apidoc -f -o . ../src/unitxt
# create the html documentation
@$(MAKE) -C $(DIR)/docs html
format:
bash $(DIR)/utils/format
# command: make version={new_version} new-version
new-version:
bash $(DIR)/utils/update_version $(version)
docs-server: docs
cd $(DIR)/docs/_build/html && python3 -m http.server 8478
profile:
bash profile/profile.sh
pypi:
. $(DIR)/SECRETS.SH
python setup.py sdist bdist_wheel
twine upload dist/*
dataset:
bash $(DIR)/make/hf/prepare_dataset_imports.sh
python $(DIR)/make/hf/prepare_dataset.py
metric:
bash $(DIR)/make/hf/prepare_metric_imports.sh
python $(DIR)/make/hf/prepare_metric.py
build:
format
pypi