File: Makefile

package info (click to toggle)
python-opuslib 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: python: 1,201; makefile: 47
file content (67 lines) | stat: -rw-r--r-- 1,305 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Makefile for opuslib.
#
# Author:: Никита Кузнецов <self@svartalf.info>
# Copyright:: Copyright (c) 2012, SvartalF
# License:: BSD 3-Clause License
#


.DEFAULT_GOAL := all


all: develop

develop:
	python setup.py develop

install:
	python setup.py install

install_requirements_test:
	pip install -r requirements_test.txt

uninstall:
	pip uninstall -y opuslib

reinstall: uninstall develop

remember_test:
	@echo
	@echo "Hello from the Makefile..."
	@echo "Don't forget to run: 'make install_requirements_test'"
	@echo

clean:
	rm -rf *.egg* build dist *.py[oc] */*.py[co] cover doctest_pypi.cfg \
		nosetests.xml pylint.log *.egg output.xml flake8.log tests.log \
		test-result.xml htmlcov fab.log *.deb .coverage

publish:
	python setup.py sdist
	twine upload dist/*

nosetests: remember_test
	python setup.py nosetests

flake8: pep8

pep8: remember_test
	flake8 --ignore=E402,E731 --max-complexity 12 --exit-zero opuslib/*.py \
	opuslib/api/*.py tests/*.py

pylint: lint

lint: remember_test
	pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
	-r n opuslib/*.py opuslib/api/*.py tests/*.py || exit 0

test: lint pep8 mypy nosetests

mypy:
	mypy --strict .

docker_build:
	docker build .

checkmetadata:
	python setup.py check -s --metadata --restructuredtext