forked from nextcloud/news-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (34 loc) · 958 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
# This file is licensed under the General Public License version 3 or
# later. See the LICENSE.txt file.
# @author Bernhard Posselt <[email protected]>
# @copyright Bernhard Posselt 2016
# This makefile is only intended for development
.PHONY: install
install:
sudo python3 setup.py install --install-scripts=/usr/bin
.PHONY: clean
clean:
rm -rf dist
rm -rf MANIFEST
rm -rf build
rm -rf nextcloud_news_updater.egg-info
.PHONY: update
update: clean
sudo pip3 uninstall nextcloud_news_updater
sudo python3 setup.py install
.PHONY: uninstall
uninstall: clean
sudo pip3 uninstall nextcloud_news_updater
.PHONY: clean
pypi: clean
python3 setup.py sdist upload
.PHONY: test
test:
pycodestyle nextcloud_news_updater
python3 -m nextcloud_news_updater --version
python3 -m unittest
#uncomment once mypy works properly
# make typecheck
.PHONY: typecheck
typecheck:
python3 -m mypy $(CURDIR)/nextcloud_news_updater --disallow-untyped-defs