forked from jnikula/hawkmoth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.local
43 lines (34 loc) · 855 Bytes
/
Makefile.local
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
# -*- makefile -*-
# Copyright (c) 2018, Jani Nikula <[email protected]>
# Licensed under the terms of BSD 2-Clause, see LICENSE for details.
#
# Helpers for packaging and releasing.
#
# FIXME:
#
# * Add helpers for releasing
# - release checks
# - updating the version
# - tagging
# - uploading tagged versions to pypi
#
dir := .
FLAKE8_IGNORE=\
E302,\
E305,\
E731
# Static analysis
check:
flake8 --extend-ignore="$(FLAKE8_IGNORE)" --max-line-length=100 hawkmoth test
# assume virtual environment is used for dist and upload
build-tools:
pip install --upgrade build twine
build:
rm -rf build dist hawkmoth.egg-info
python3 -m build
test-upload:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload:
twine upload dist/*
.PHONY: dist-tools dist test-upload upload
CLEAN := $(CLEAN) build dist hawkmoth.egg-info