-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
22 lines (16 loc) · 669 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (C) 2021-present [email protected]. All rights reserved.
# Distributed under the terms and conditions of the Apache License.
# See accompanying files LICENSE.
all: install upload
# build distribute binary
install:
@pip install -r requirements.txt
@pyinstaller -F --name=tabugen tabugen/cli.py
# upload to pip
upload:
@python setup.py check && python setup.py bdist_wheel --universal && twine upload dist/*
clean:
@python -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
@python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
@rm -rf build dist
.PHONEY: clean run install upload