|
1 | | -PYTHON = python |
2 | 1 |
|
3 | 2 | test: install |
4 | | - $(PYTHON) -m unittest |
| 3 | + pipenv run python -m unittest |
5 | 4 |
|
6 | 5 | install: build |
7 | | - $(PYTHON) setup.py develop |
| 6 | + pipenv run python setup.py develop |
8 | 7 |
|
9 | 8 | build: Makefile module.c third-party/quickjs.c third-party/quickjs.h |
10 | | - $(PYTHON) setup.py build |
| 9 | + pipenv run python setup.py build |
11 | 10 |
|
12 | 11 | format: |
13 | | - $(PYTHON) -m yapf -i -r --style .style.yapf *.py |
| 12 | + pipenv run python -m yapf -i -r --style .style.yapf *.py |
14 | 13 | clang-format-7 -i module.c |
15 | 14 |
|
16 | 15 | distribute: test |
17 | 16 | rm -rf dist/ |
18 | | - $(PYTHON) setup.py sdist |
| 17 | + pipenv run python setup.py sdist |
19 | 18 |
|
20 | 19 | upload-test: distribute |
21 | | - $(PYTHON) -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
| 20 | + pipenv run python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
22 | 21 |
|
23 | 22 | upload: distribute |
24 | | - $(PYTHON) -m twine upload dist/* |
| 23 | + pipenv run python -m twine upload dist/* |
25 | 24 |
|
26 | 25 | clean: |
27 | 26 | rm -rf build/ dist/ |
0 commit comments