-
Notifications
You must be signed in to change notification settings - Fork 124
/
Makefile
37 lines (30 loc) · 917 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
.PHONY: docker/build
docker/build:
docker build -f Dockerfile . -t akhmetov/python-telegram
.PHONY: docker/send-message
docker/send-message:
docker run -i -t \
-v /tmp/docker-python-telegram/:/tmp/ \
akhmetov/python-telegram \
python3 /app/examples/send_message.py $(API_ID) $(API_HASH) $(PHONE) $(CHAT_ID) $(TEXT)
.PHONY: docker/echo-bot
docker/echo-bot:
docker run -i -t \
-v /tmp/docker-python-telegram/:/tmp/ \
akhmetov/python-telegram \
python3 /app/examples/echo_bot.py $(API_ID) $(API_HASH) $(PHONE)
.PHONY: docker/get-instant-view
docker/get-instant-view:
docker run -i -t \
-v /tmp/docker-python-telegram/:/tmp/ \
akhmetov/python-telegram \
python3 /app/examples/echo_bot.py $(API_ID) $(API_HASH) $(PHONE)
.PHONY: clean
clean:
rm -rf dist
.PHONY: build-pypi
build-pypi: clean
python3 -m build
.PHONY: release-pypi
release-pypi:build-pypi
twine upload dist/*