-
Notifications
You must be signed in to change notification settings - Fork 238
/
Makefile
37 lines (29 loc) · 1.04 KB
/
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
PYTHON = python3
PIP = pip3
.PHONY: help lint test package clean install
help: # The following lines will print the available commands when entering just 'make'
ifeq ($(UNAME), Linux)
@grep -P '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
else
@awk -F ':.*###' '$$0 ~ FS {printf "%15s%s\n", $$1 ":", $$2}' \
$(MAKEFILE_LIST) | grep -v '@awk' | sort
endif
lint: ### Validates project with linting rules
$(PIP) install pylint
$(PYTHON) -m pylint src/
test: ### Runs all the project tests
"Run tests"
$(PIP) install pytest
$(PYTHON) -m pytest tests/
package: clean ### Runs the project setup
echo "$(version)" > VERSION
$(PYTHON) setup.py sdist bdist_wheel
clean: ### Removes build binaries
rm -rf build dist
install: ### Installs required dependencies
$(PIP) install dist/ydata-synthetic-$(version).tar.gz
publish-docs: ### Publishes the documentation
echo "$(version)" > VERSION
$(PIP) install .
mike deploy --push --update-aliases $(version) latest