forked from linode/linode_api4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (40 loc) · 917 Bytes
/
Copy pathMakefile
File metadata and controls
62 lines (40 loc) · 917 Bytes
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
PYTHON ?= python3
INTEGRATION_TEST_PATH :=
TEST_CASE_COMMAND :=
MODEL_COMMAND :=
ifdef TEST_CASE
TEST_CASE_COMMAND = -k $(TEST_CASE)
endif
ifdef TEST_MODEL
MODEL_COMMAND = models/$(TEST_MODEL)
endif
@PHONEY: clean
clean:
mkdir -p dist
rm -r dist
rm -f baked_version
@PHONEY: build
build: clean
$(PYTHON) -m build --wheel --sdist
@PHONEY: release
release: build
twine upload dist/*
install: clean
python3 -m pip install .
requirements:
pip install -r requirements.txt -r requirements-dev.txt
black:
black linode_api4 test
isort:
isort linode_api4 test
autoflake:
autoflake linode_api4 test
format: black isort autoflake
lint:
isort --check-only linode_api4 test
autoflake --check linode_api4 test
black --check --verbose linode_api4 test
pylint linode_api4
@PHONEY: testint
testint:
python3 -m pytest test/integration/${INTEGRATION_TEST_PATH}${MODEL_COMMAND} ${TEST_CASE_COMMAND}