-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (27 loc) · 917 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
.PHONY: lint
lint:
tox -e lint,mypy
.PHONY: test
test:
tox
.PHONY: py-safety
py-safety:
tox -e safety
# use sed to trim leading whitespace, and `sort -u` to remove duplicates
# intermediate file allows the use of tee, to show output, and saves the frozen
# deps
#
# the funcx git requirements are intentionally excluded from the deptree
# because they look to pip like a conflict once frozen
# they are pulled out of the `requirements.in` data to get a complete
# requirement specification
#
# FIXME:
# the funcx requirement munging should be possible to remove as soon as
# we've removed the dependency on the forwarder and switch to a packaged version
# of the SDK
.PHONY: freezedeps
freezedeps:
echo "# frozen requirements; generate with 'make freezedeps'" > requirements.txt
tox -qq -e freezedeps | tee frozen-requirements-tree.txt
sed 's/ //g' frozen-requirements-tree.txt | sort -u >> requirements.txt