Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile - github.com/nextcloud/news-updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a89abacf6b89cb9f2dd5399e4c632773a265bba (plain)
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
# This file is licensed under the General Public License version 3 or
# later. See the LICENSE.txt file.
# @author Bernhard Posselt <dev@bernhard-posselt.com>
# @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