-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (50 loc) · 2.36 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
help:
@ echo 'Automated development tasks for padsniff. '
@ echo ' '
@ echo 'Usage: '
@ echo ' make build Build source and wheel distributions. '
@ echo ' make build-source Build only a source distribution. '
@ echo ' make build-wheel Build only a wheel distribution. '
@ echo ' make bump-major Increment package major version. '
@ echo ' make bump-minor Increment package minor version. '
@ echo ' make bump-patch Increment package patch version. '
@ echo ' make clean Clean build and cache files. '
@ echo ' make clean-build Clean only build files. '
@ echo ' make clean-cache Clean only cache files. '
@ echo ' make develop Install package in editable mode with dev dependencies. '
@ echo ' make install Install package with runtime dependencies. '
@ echo ' make publish Build source and wheel distributions and upload to pypi.'
@ echo ' make help Show this message. '
@ echo ' '
build: clean-build build-source build-wheel
build-source:
python setup.py sdist
build-wheel:
pip install wheel
python setup.py bdist_wheel
.bump-%:
bumpversion $* setup.py padsniff/__init__.py
bump-major: .bump-major
bump-minor: .bump-minor
bump-patch: .bump-patch
clean: clean-build clean-cache
clean-build:
rm -rf .eggs/ build/ dist/
find . -name '*.egg' -exec rm -rf {} +
find . -name '*.egg-info' -exec rm -rf {} +
clean-cache:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
develop:
pip install -e .
pip install -r dev-requirements.txt
install:
pip install .
publish: build
pip install twine
twine upload --skip-existing dist/*
test:
python setup.py test
.DEFAULT: help
.PHONY: help build build-source build-wheel clean clean-build clean-cache develop install publish test