-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (15 loc) · 655 Bytes
/
makefile
File metadata and controls
22 lines (15 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clean: clean-pyc
test: run-tests
clean-pyc:
find . -type f -name '*.pyc' -exec rm -f {} +
find . -type f -name '*.pyo' -exec rm -f {} +
find . -type f -name '*.~' -exec rm -f {} +
find . -type d -name '__pycache__' -exec rm -rf {} +
run-tests:
python -m unittest discover pigar/tests/ -t . -v
generate-requirements:
pigar gen --exclude-glob '**/tests/data/*' --exclude-glob '**/_vendor/*' --with-referenced-comments -f ./requirements/py$(shell python -c "import sys; v=sys.version_info; print(f'{v.major}.{v.minor}')").txt pigar
vendor:
pushd pigar/_vendor && vendoring sync . -v && popd
sqlite3-vacuum:
sqlite3 pigar/.db.sqlite3 'VACUUM;'