43 строки
958 B
Makefile
43 строки
958 B
Makefile
# 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
|
|
|