forked from apertium/apertium-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 loc) · 1.08 KB
/
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
SHELL := /bin/bash
TRAVIS_PYTHON_VERSION ?= $(shell python3 --version | cut -d ' ' -f 2)
PREFIX ?= /usr/local
all:
./any-module/updateBootstraper.py
./bilingual-module/updateBootstraper.py
./hfst-language-module/updateBootstraper.py
./lttoolbox-language-module/updateBootstraper.py
apertium_init.py: apertium-init.py
cp $< $@
dist: all apertium_init.py
python3 setup.py sdist
release: all apertium_init.py
python3 setup.py sdist bdist_wheel
twine upload --sign dist/*
test-release: all apertium_init.py
python3 setup.py sdist bdist_wheel
twine upload --sign --repository-url https://test.pypi.org/legacy/ dist/*
test:
flake8 *.py **/*.py
mypy --strict apertium-init.py
coverage run -m unittest --verbose --buffer
coverage report --show-missing --fail-under 70
if [[ "$(TRAVIS_PYTHON_VERSION)" != '3.4'* && $(TRAVIS_PYTHON_VERSION) != '3.5'* ]]; then \
git diff --exit-code apertium-init.py; \
fi
install:
@install -d $(DESTDIR)$(PREFIX)/bin
install -m755 apertium-init.py $(DESTDIR)$(PREFIX)/bin/apertium-init
clean:
rm -rf dist/ build/ *.egg-info/ .mypy_cache/ apertium_init.py