-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 796 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 796 Bytes
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
.PHONY: install
install: venv
. .venv/bin/activate; python3 -m pip install --upgrade pip
. .venv/bin/activate; python3 -m pip install -e .
.PHONY: demo
demo: install
. .venv/bin/activate; sed -n '/^```python/,/^```/ p' < README.md | sed '/^```/d' | python
.PHONY: test
test: install
. .venv/bin/activate; sed -n '/^```python/,/^```/ p' < README.md | sed '/^```/d' | python & sleep 3 ; kill $$!
.PHONY: build
build: test
. .venv/bin/activate; python3 -m pip install --upgrade build
. .venv/bin/activate; python3 -m build
.PHONY: publish
publish: build
. .venv/bin/activate; python3 -m pip install --upgrade twine
. .venv/bin/activate; python3 -m twine upload dist/*
.PHONY: clean
clean:
rm -rf aioserver/__pycache__ aioserver.egg-info dist
.PHONY: venv
venv:
python3 -m venv .venv