forked from unoconv/unoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 973 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
root_dir := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
bin_dir := $(root_dir)/ve/bin
distroinfo_bug := $(shell apt search python3-distro-info 2>/dev/null | grep build)
ifeq ($(distroinfo_bug),)
setuptools_ver =
else
setuptools_ver = "==58.2.0"
endif
all: check coverage
# The fullrelease script is a part of zest.releaser, which is the last
# package installed, so if it exists, the devenv is installed.
devenv: ve/bin/fullrelease
ve/bin/fullrelease:
virtualenv $(root_dir)/ve --python python3 --system-site-packages
$(bin_dir)/pip install -I setuptools$(setuptools_ver) -e .[devenv]
check: devenv
$(bin_dir)/black src/unoserver tests
$(bin_dir)/flake8 src/unoserver tests
$(bin_dir)/pyroma -d .
$(bin_dir)/check-manifest
coverage: devenv
$(bin_dir)/coverage run -m unittest
$(bin_dir)/coverage html
$(bin_dir)/coverage report
test: devenv
$(bin_dir)/pytest
release: devenv
$(bin_dir)/fullrelease
clean:
rm -rf ve build htmlcov