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
|