-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1.12 KB
/
Makefile
File metadata and controls
43 lines (32 loc) · 1.12 KB
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
# -------------------------------------------------------------
# Resolve hash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: BSD-2-Clause
# -------------------------------------------------------------
RMDIR=rm -rf
PYTHON=python
DISCOVER_TESTS=$(PYTHON) -m unittest discover
REFORMAT=black
# -------------------------------------------------------------
# Main targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
all:
package: dist
clean: clean-package
test:
${DISCOVER_TESTS} tests/
# -------------------------------------------------------------
# Development helpers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
reformat:
find bin -type f | xargs ${REFORMAT}
find src -type f -name '*.py' | xargs ${REFORMAT}
find tests -type f -name '*.py' | xargs ${REFORMAT}
# -------------------------------------------------------------
# Packaging targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dist:
${PYTHON} -m build
clean-package:
${RMDIR} dist src/resolve_hash.egg-info