-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (32 loc) · 982 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
first-upload: dist/
python3 -m twine upload dist/*
update-upload: dist/
python3 -m twine upload --skip-existing dist/*
.PHONY: build purge-cache clean cov test mypy pylint flake8 check-manifest vulture vulture-make-whitelist change-version
build:
rm -rf build/ dist/ src/colorviews.egg-info/
python3 setup.py sdist bdist_wheel
purge-cache:
rm -r .coverage .mypy_cache/ .pytest_cache/
clean:
rm -r .coverage .mypy_cache/ .pytest_cache/ .tox/
cov:
coverage run -m pytest tests/ && coverage html
test:
pytest tests/
mypy:
mypy src/
pylint:
pylint src/colorviews/
flake8:
flake8 src/colorviews/ tests/
check-manifest:
check-manifest .
vulture:
vulture src/ whitelist.py
vulture-make-whitelist:
vulture src/ --make-whitelist > whitelist.py
change-version:
# Assumption: Current version = 0.1-alpha1
sed -i 's/version="0.1-alpha0"/version="0.1-alpha1"/' setup.py
sed -i 's/__version__ = "0.1-alpha0"/__version__ = "0.1-alpha1"/' src/colorviews/__init__.py