-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (37 loc) · 880 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
44
45
46
47
48
49
50
VENV_NAME := .venv
PYTHON := $(VENV_NAME)/bin/python
VERSION := $(shell $(PYTHON) -c "import fastapi_authkit;print(fastapi_authkit.__version__)")
RM := rm -rf
mkvenv:
virtualenv $(VENV_NAME)
$(PYTHON) -m pip install -r requirements.txt
clean:
find . -name '*.pyc' -exec $(RM) {} +
find . -name '*.pyo' -exec $(RM) {} +
find . -name '*~' -exec $(RM) {} +
find . -name '__pycache__' -exec $(RM) {} +
$(RM) build/ dist/ docs/build/ .tox/ .cache/ .pytest_cache/ *.egg-info
tag:
@echo "Add tag: '$(VERSION)'"
git tag v$(VERSION)
build:
$(PYTHON) setup.py sdist bdist_wheel
upload:
twine upload dist/*
release:
make clean
make test
make build
make tag
@echo "Released $(VERSION)"
full-release:
make release
make upload
install:
$(PYTHON) setup.py install
install-dev:
$(PYTHON) setup.py develop
test:
tox
summary:
cloc pytitle/ tests/ docs/ setup.py