2022-04-16 18:09:58 +03:00
|
|
|
VENV_NAME := .venv
|
2017-10-22 18:36:13 +03:00
|
|
|
PYTHON := $(VENV_NAME)/bin/python
|
2017-11-19 02:03:09 +02:00
|
|
|
AIOGRAM_VERSION := $(shell $(PYTHON) -c "import aiogram;print(aiogram.__version__)")
|
2017-10-22 18:36:13 +03:00
|
|
|
|
2017-12-01 02:54:21 +02:00
|
|
|
RM := rm -rf
|
|
|
|
|
|
2017-10-22 18:36:13 +03:00
|
|
|
mkvenv:
|
|
|
|
|
virtualenv $(VENV_NAME)
|
|
|
|
|
$(PYTHON) -m pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
clean:
|
2017-12-01 02:54:21 +02:00
|
|
|
find . -name '*.pyc' -exec $(RM) {} +
|
|
|
|
|
find . -name '*.pyo' -exec $(RM) {} +
|
|
|
|
|
find . -name '*~' -exec $(RM) {} +
|
|
|
|
|
find . -name '__pycache__' -exec $(RM) {} +
|
2018-04-05 23:28:18 +03:00
|
|
|
$(RM) build/ dist/ docs/build/ .tox/ .cache/ .pytest_cache/ *.egg-info
|
2017-10-22 18:36:13 +03:00
|
|
|
|
|
|
|
|
tag:
|
|
|
|
|
@echo "Add tag: '$(AIOGRAM_VERSION)'"
|
|
|
|
|
git tag v$(AIOGRAM_VERSION)
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
$(PYTHON) setup.py sdist bdist_wheel
|
|
|
|
|
|
|
|
|
|
upload:
|
|
|
|
|
twine upload dist/*
|
|
|
|
|
|
|
|
|
|
release:
|
|
|
|
|
make clean
|
2021-12-09 02:06:23 +02:00
|
|
|
#make test
|
2017-10-22 18:36:13 +03:00
|
|
|
make build
|
2017-12-01 02:28:25 +02:00
|
|
|
make tag
|
2017-10-22 18:36:13 +03:00
|
|
|
@echo "Released aiogram $(AIOGRAM_VERSION)"
|
|
|
|
|
|
|
|
|
|
full-release:
|
|
|
|
|
make release
|
|
|
|
|
make upload
|
2017-11-15 18:51:29 +02:00
|
|
|
|
2017-12-01 01:59:15 +02:00
|
|
|
install:
|
2017-11-15 18:51:29 +02:00
|
|
|
$(PYTHON) setup.py install
|
2017-12-01 01:59:15 +02:00
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
tox
|
2017-12-01 02:14:49 +02:00
|
|
|
|
|
|
|
|
summary:
|
2020-09-13 22:56:32 +03:00
|
|
|
cloc aiogram/ tests/ examples/ docs/ setup.py
|
2017-12-01 02:28:25 +02:00
|
|
|
|
|
|
|
|
docs: docs/source/*
|
|
|
|
|
cd docs && $(MAKE) html
|