-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile
42 lines (33 loc) · 921 Bytes
/
Makefile
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
VERSION = 1.3.0
.PHONY: help clean clean-pyc clean-build list test test-all coverage docs release sdist upload
help:
@echo "clean - remove all build/python artifacts"
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
sdist:
python setup.py sdist
sign:
gpg --no-version --detach-sign --armor --local-user 0x702287F4 dist/pypcap-${VERSION}.tar.gz
upload:
twine upload -r pypi dist/pypcap-${VERSION}.tar.gz dist/pypcap-${VERSION}.tar.gz.asc
cython:
cython pcap.pyx
clean: clean-build clean-pyc
clean-build:
rm -fr htmlcov/
rm -fr build/
rm -fr dist/
rm -fr deb_dist/
rm -fr *.egg-info
rm -f *.tar.gz
rm -f *.xml
rm -f *.log
rm -fr .tox
rm -fr .cache
rm -fr .coverage
find . -name '__pycache__' -exec rm -fr {} +
rm -f pcap.so
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +