-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
42 lines (30 loc) · 770 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
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
VER=$(shell grep __version__ negar/constants.py|cut -d= -f2|tr -d '\" '|head -1)
.ONESHELL:
ver:
@echo python-negar ver. "$(VER)"
.PHONY: uninstall
uninstall:
@echo "Uninstalling python-negar ..."
pip uninstall python-negar
setup: ver
python setup.py sdist
python setup.py bdist_wheel
lins: ver setup
pip install "dist/python_negar-$(VER)-py3-none-any.whl"
pins: ver
pip install python-negar=="$(VER)"
upypi: setup
twine upload "dist/python_negar-$(VER).tar.gz"
utest: setup
twine upload -r testpypi "dist/python_negar-$(VER).tar.gz"
upload: setup upypi utest
test:
python -m unittest discover tests
clean:
@rm python_negar.egg-info/ -rfv
@rm build/ -rfv
@rm dist/ -rfv
@rm gui.build/ -rfv
@rm gui.dist/ -rfv
@rm negar*.spec -rfv