-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (35 loc) · 846 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
41
42
43
44
45
46
47
48
49
50
.PHONY: init install build publish clean reformat lint test-py27 test-py36 test-py37 test-py38 test
.DEFAULT_GOAL := all
all: install lint build
POETRY_VERSION = 1.0.10
PROJECT = python-webpub-manifest-parser
PACKAGE = webpub_manifest_parser
init:
python -m pip install pip
pip uninstall -y enum34 # This line is required for Python versions greater than 2.7 to work correctly
python -m pip install poetry==${POETRY_VERSION}
poetry config virtualenvs.create false
install:
poetry install -vvv
build:
poetry build
publish:
make prepare
make config
poetry publish --build -r pypi
clean:
rm -rf build dist
reformat:
tox -e isort-reformat,black-reformat
lint:
tox -e isort,black,flake8,pylint
test-py27:
tox -e py27
test-py36:
tox -e py36
test-py37:
tox -e py37
test-py38:
tox -e py38
test:
tox -e py27,py36,py37,py38