Skip to content

Commit e2edd71

Browse files
Consistent Python binary in makefile (#338)
1 parent 448aa4c commit e2edd71

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,47 @@ build: clean
2525

2626
@PHONEY: release
2727
release: build
28-
twine upload dist/*
28+
$(PYTHON) -m twine upload dist/*
2929

3030
@PHONEY: install
3131
install: clean requirements
32-
python3 -m pip install .
32+
$(PYTHON) -m pip install .
3333

3434
@PHONEY: requirements
3535
requirements:
36-
pip install -r requirements.txt -r requirements-dev.txt
36+
$(PYTHON) -m pip install -r requirements.txt -r requirements-dev.txt
3737

3838
@PHONEY: black
3939
black:
40-
black linode_api4 test
40+
$(PYTHON) -m black linode_api4 test
4141

4242
@PHONEY: isort
4343
isort:
44-
isort linode_api4 test
44+
$(PYTHON) -m isort linode_api4 test
4545

4646
@PHONEY: autoflake
4747
autoflake:
48-
autoflake linode_api4 test
48+
$(PYTHON) -m autoflake linode_api4 test
4949

5050
@PHONEY: format
5151
format: black isort autoflake
5252

5353
@PHONEY: lint
5454
lint: build
55-
isort --check-only linode_api4 test
56-
autoflake --check linode_api4 test
57-
black --check --verbose linode_api4 test
58-
pylint linode_api4
59-
twine check dist/*
55+
$(PYTHON) -m isort --check-only linode_api4 test
56+
$(PYTHON) -m autoflake --check linode_api4 test
57+
$(PYTHON) -m black --check --verbose linode_api4 test
58+
$(PYTHON) -m pylint linode_api4
59+
$(PYTHON) -m twine check dist/*
6060

6161
@PHONEY: testint
6262
testint:
63-
python3 -m pytest test/integration/${INTEGRATION_TEST_PATH}${MODEL_COMMAND} ${TEST_CASE_COMMAND}
63+
$(PYTHON) -m pytest test/integration/${INTEGRATION_TEST_PATH}${MODEL_COMMAND} ${TEST_CASE_COMMAND}
6464

6565
@PHONEY: testunit
6666
testunit:
67-
python3 -m python test/unit
67+
$(PYTHON) -m pytest test/unit
6868

6969
@PHONEY: smoketest
7070
smoketest:
71-
pytest -m smoke test/integration --disable-warnings
71+
$(PYTHON) -m pytest -m smoke test/integration --disable-warnings

0 commit comments

Comments
 (0)