forked from IBM/ibm-watson-embed-model-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 795 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
test: ## run pytest in parallel with coverage reporting. Fail under 100% code coverage
pytest -W error \
--cov-report term \
--cov-report html:htmlcov \
--cov=watson_embed_model_packager \
--cov-fail-under=100.0 \
--html="reports/report.html" \
--self-contained-html \
-n 4 \
tests
install: ## install dev dependencies
pip3 install -r requirements.txt
install-test: ## install test dependencies
pip3 install -r requirements_test.txt
build: ## Build the wheel
python3 setup.py bdist_wheel
clean: ## clean up build artifacts and test reports
rm -fr build dist htmlcov reports *.egg-info .coverage
fmt:
black . && isort .
fmt-check:
black --check . && isort --check .
release:
pip3 install twine
twine upload --username "__token__" --password "${PYPI_TOKEN}" dist/*