aiogram/Makefile

50 lines
910 B
Makefile
Raw Normal View History

2017-10-22 18:36:13 +03:00
VENV_NAME := venv
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
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/
2017-12-01 02:28:25 +02:00
rm --force --recursive .tox/
2017-10-22 18:36:13 +03:00
rm --force --recursive *.egg-info
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
2017-12-01 02:28:25 +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:
cloc aiogram/ tests/ setup.py
2017-12-01 02:28:25 +02:00
docs: docs/source/*
cd docs && $(MAKE) html