forked from lord63/tldr.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 766 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 766 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
PYTHON = python3
.PHONY: reinstall install upload uninstall rebuild build clean test
reinstall:
make uninstall
make rebuild
make install
make clean
install: dist/*.whl
$(PYTHON) -m pip install dist/*.whl
$(PYTHON) -m pip show multi-tldr
upload: dist/*.whl dist/*.tar.gz
$(PYTHON) -m twine check dist/*.whl dist/*.tar.gz
# username is: __token__
$(PYTHON) -m twine upload dist/*.whl dist/*.tar.gz
uninstall:
$(PYTHON) -m pip uninstall -y multi-tldr
rebuild build dist/*.whl dist/*.tar.gz: ./setup.py ./tldr.py
# make sure clean old versions
make clean
make test
$(PYTHON) ./setup.py sdist bdist_wheel
# 'pip install' is buggy when .egg-info exist
rm -rf *.egg-info build
clean:
rm -rf *.egg-info build dist
test:
$(PYTHON) ./test.py -vv