mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Add Makefile
This commit is contained in:
parent
44a24b243c
commit
95a42a6b75
1 changed files with 36 additions and 0 deletions
36
Makefile
Normal file
36
Makefile
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
VENV_NAME := venv
|
||||
PYTHON := $(VENV_NAME)/bin/python
|
||||
|
||||
mkvenv:
|
||||
virtualenv $(VENV_NAME)
|
||||
$(PYTHON) -m pip install -r requirements.txt
|
||||
|
||||
clean:
|
||||
find . -name '*.pyc' -exec rm --force {} +
|
||||
find . -name '*.pyo' -exec rm --force {} +
|
||||
find . -name '*~' -exec rm --force {} +
|
||||
rm --force --recursive build/
|
||||
rm --force --recursive dist/
|
||||
rm --force --recursive *.egg-info
|
||||
|
||||
tag:
|
||||
AIOGRAM_VERSION := $(shell $(PYTHON) -c "import aiogram;print(aiogram.__version__)")
|
||||
@echo "Add tag: '$(AIOGRAM_VERSION)'"
|
||||
git tag v$(AIOGRAM_VERSION)
|
||||
|
||||
build:
|
||||
$(PYTHON) setup.py sdist bdist_wheel
|
||||
|
||||
upload:
|
||||
twine upload dist/*
|
||||
|
||||
release:
|
||||
AIOGRAM_VERSION := $(shell $(PYTHON) -c "import aiogram;print(aiogram.__version__)")
|
||||
make clean
|
||||
make tag
|
||||
make build
|
||||
@echo "Released aiogram $(AIOGRAM_VERSION)"
|
||||
|
||||
full-release:
|
||||
make release
|
||||
make upload
|
||||
Loading…
Add table
Add a link
Reference in a new issue