This repository was archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (40 loc) · 1.21 KB
/
Makefile
File metadata and controls
47 lines (40 loc) · 1.21 KB
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
.DEFAULT_GOAL = help
.PHONY: help prep build upload clean-windows clean-linux
help:
@echo --HELP--
@echo make help - display this message
@echo make prep - install poetry and run "poetry install"
@echo make test - run "poetry run pytest"
@echo make build - run "poetry build"
@echo make upload - run "poetry publish"
@echo make clean-windows - clean project of unwanted files and dirs on windows
@echo make clean-linux - clean project of unwanted files and dirs on linux
prep:
@echo --PREP--
pip install poetry
poetry install
test:
@echo --TEST--
poetry run pytest
build:
@echo --BUILD--
poetry build
upload:
@echo --UPLOAD--
poetry publish
clean-windows:
@echo --CLEAN-WINDOWS--
if exist build rmdir /S /Q build
if exist dist rmdir /S /Q dist
if exist simplematrixbotlib.egg-info rmdir /S /Q simplematrixbotlib.egg-info
if exist simplematrixbotlib\__pycache__ rmdir /S /Q simplematrixbotlib\__pycache__
if exist "doc/_build" rmdir /S /Q "doc/_build"
if exist tests\__pycache__ rmdir /S /Q tests\__pycache__
clean-linux:
@echo --CLEAN-LINUX--
rm -r -f build
rm -r -f dist
rm -r -f simplematrixbotlib.egg-info
rm -r -f simplematrixbotlib/__pycache__
rm -r -f doc/_build
rm -r -f tests/__pycache__