File: Makefile

package info (click to toggle)
python-pampy 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: python: 838; makefile: 46
file content (59 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (2)
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
51
52
53
54
55
56
57
58
59
VIRTUALENV = $(shell which virtualenv)
PYTHONEXEC = python

VERSION = `grep VERSION src/pam/version.py | cut -d \' -f2`

build: pydeps
	python -m build

clean:
	rm -rf *.egg-info/
	rm -rf .cache/
	rm -rf .tox/
	rm -rf .coverage
	rm -rf build
	rm -rf dist
	rm -rf htmlcov
	rm -rf venv
	find . -type d -name '__pycache__' | xargs rm -rf
	find . -name "*.pyc" -type f -print0 | xargs -0 /bin/rm -rf

compile:
	. venv/bin/activate; python setup.py build install

console:
	. venv/bin/activate; python

coverage:
	. venv/bin/activate; coverage html

current:
	@echo $(VERSION)

deps:
	. venv/bin/activate; python -m pip install --upgrade -qr requirements.txt

install: clean venv deps
	. venv/bin/activate; pip install --use-pep517 --progress-bar emoji

inspectortiger: pydeps
	. venv/bin/activate; inspectortiger src/pam/

lint: pydeps
	. venv/bin/activate; python -m flake8 src/pam/ --max-line-length=120

preflight: bandit test

pydeps:
	. venv/bin/activate; \
	  pip install --upgrade -q pip && \
	  pip install --upgrade -q pip build

test: tox

tox:
	rm -fr .tox
	. venv/bin/activate; tox

venv:
	$(VIRTUALENV) -p $(PYTHONEXEC) venv