File: Makefile

package info (click to toggle)
pyro4 4.75-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,380 kB
  • sloc: python: 17,714; makefile: 171; sh: 113
file content (49 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download
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
.PHONY: all sdist wheel docs install upload clean test lint
PYTHON=python3

all:
	@echo "targets include sdist, wheel, docs, upload, install, clean, lint"

lint:
	pycodestyle

sdist:
	$(PYTHON) setup.py sdist
	@echo "Look in the dist/ directory"

wheel:
	$(PYTHON) setup.py bdist_wheel
	@echo "Look in the dist/ directory"

docs:
	$(PYTHON) setup.py build_sphinx

upload:
	$(PYTHON) setup.py sdist bdist_wheel upload
	@echo "Don't forget to check the doc builds on RTD!"

install:
	$(PYTHON) setup.py install

test:
	PYTHONPATH=./src $(PYTHON) tests/run_testsuite.py

clean:
	@echo "Removing tox dirs, logfiles, Pyro URI dumps, .pyo/.pyc files..."
	rm -rf .tox
	find . -name __pycache__ -print0 | xargs -0 rm -rf
	find . -name \*_log -print0 | xargs -0  rm -f
	find . -name \*.log -print0 | xargs -0  rm -f
	find . -name \*_URI -print0 | xargs -0  rm -f
	find . -name \*.pyo -print0 | xargs -0  rm -f
	find . -name \*.pyc -print0 | xargs -0  rm -f
	find . -name \*.class -print0 | xargs -0  rm -f
	find . -name \*.DS_Store -print0 | xargs -0  rm -f
	find . -name \.coverage -print0 | xargs -0  rm -f
	find . -name \coverage.xml -print0 | xargs -0  rm -f
	rm -f MANIFEST
	rm -rf build
	rm -rf tests/test-reports
	find . -name  '.#*' -print0 | xargs -0  rm -f
	find . -name  '#*#' -print0 | xargs -0  rm -f
	@echo "clean!"