Debian Codegraph @

Makefile

raw
1 PACKAGE := ldapdb
2 TESTS_DIR := examples
3
4 # Error on all warnings, except in python's site.py module and distutils' imp.py module.
5 PYWARNINGS = -Wdefault -Werror \
6 -Wignore::DeprecationWarning:site:165 \
7 -Wignore::PendingDeprecationWarning:imp \
8 -Wignore::DeprecationWarning:imp \
9 -Wignore::PendingDeprecationWarning:distutils \
10 -Wignore::DeprecationWarning:distutils \
11 -Wignore::ImportWarning:
12
13 default:
14
15 install:
16 python setup.py install
17
18 clean:
19 find . -type f -name '*.pyc' -delete
20 find . -type f -path '*/__pycache__/*' -delete
21 find . -type d -empty -delete
22
23 upgrade:
24 pip install --upgrade pip setuptools
25 pip install --upgrade -e .[dev]
26 pip freeze
27
28 release:
29 fullrelease
30
31
32 .PHONY: default install clean upgrade release
33
34 testall:
35 tox
36
37 test:
38 python $(PYWARNINGS) manage_dev.py test
39
40 .PHONY: test testall
41
42 lint: flake8 isort check-manifest
43
44 flake8:
45 flake8 $(PACKAGE) $(TESTS_DIR)
46
47 isort:
48 isort $(PACKAGE) $(TESTS_DIR) --check-only --diff --project $(PACKAGE) --project $(TESTS_DIR)
49
50 check-manifest:
51 check-manifest
52
53 .PHONY: isort lint flake8 check-manifest