File: makefile

package info (click to toggle)
pocsuite3 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: python: 16,816; asm: 911; java: 66; makefile: 30
file content (40 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (3)
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
SRC_DIR = pocsuite3
MAKE = make


.PHONY: prebuildclean install build pypimeta pypi buildupload test flake8 clean


prebuildclean:
	@+python -c "import shutil; shutil.rmtree('build', True)"
	@+python -c "import shutil; shutil.rmtree('dist', True)"
	@+python -c "import shutil; shutil.rmtree('pocsuite3.egg-info', True)"

install:
	python3 setup.py install

build:
	@make prebuildclean
	python3 setup.py sdist --formats=zip bdist_wheel
	#python3 setup.py bdist_wininst

pypimeta:
	twine register

pypi:
	twine upload dist/*

buildupload:
	@make build
	#@make pypimeta
	@make pypi

test:
	tox --skip-missing-interpreters

flake8:
	@+flake8 --max-line-length=120 --exclude .asv,.tox,pocsuite3/thirdparty -j 8 --count --statistics --exit-zero pocsuite3 --ignore E501,F401,F403,W503,W605

clean:
	rm -rf *.egg-info dist build .tox
	find $(SRC_DIR) tests -type f -name '*.pyc' -delete