-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Makefile
37 lines (29 loc) · 872 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
VENV=env
DIST=dist
BUILD=build
BIN=$(VENV)/bin
init:
test `command -v python3` || echo Please install python3
[ -d $(VENV) ] || python3 -m venv $(VENV)
$(BIN)/pip install -r requirements/requirements-dev.txt
$(BIN)/pip install -e .
lint:
$(BIN)/black pydeck_carto tests examples setup.py
$(BIN)/flake8 pydeck_carto tests examples setup.py
test:
$(BIN)/pytest tests --cov=pydeck_carto
test-scripts:
for file in examples/scripts/*.py; do $(BIN)/python "$$file"; done
publish-pypi:
rm -rf $(DIST) $(BUILD) *.egg-info
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/twine upload $(DIST)/*
publish-test-pypi:
rm -rf $(DIST) $(BUILD) *.egg-info
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/twine upload --repository-url https://test.pypi.org/legacy/ $(DIST)/* --verbose
clean:
rm -rf $(VENV) $(DIST) $(BUILD) *.egg-info
ci:
$(MAKE) lint
$(MAKE) test