-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (29 loc) · 932 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
VENV=env
DIST=dist
BUILD=build
BIN=$(VENV)/bin
.PHONY: docs
init:
test `command -v python3` || echo Please install python3
[ -d $(VENV) ] || python3 -m venv $(VENV)
$(BIN)/pip install -r requirements_dev.txt
$(BIN)/pre-commit install
$(BIN)/pip install -e .
lint:
$(BIN)/black carto_auth tests examples setup.py
$(BIN)/flake8 carto_auth tests examples setup.py
test:
$(BIN)/pytest tests --cov=carto_auth --verbose
docs:
$(BIN)/lazydocs carto_auth --validate --output-path="docs" --overview-file="README.md"
cd docs; bash post.sh;
publish-pypi:
rm -rf $(DIST) $(BUILD) *.egg-info
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/twine upload --repository carto-auth $(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