This repository was archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (49 loc) · 1.44 KB
/
Makefile
File metadata and controls
61 lines (49 loc) · 1.44 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: clean clean-build clean-pyc dist help
.DEFAULT_GOAL := help
help:
@echo "clean - remove all artifacts"
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove python artifacts"
@echo "install - install the package"
@echo "init - initialize the development environment"
@echo "dist - build package"
@echo "release - upload package to PyPi"
@echo "pep8 - check style with pep8"
@echo "black - check style with black"
@echo "lint - check style with pylint"
@echo "mypy - check type hinting with mypy"
clean: clean-build clean-pyc
clean-build:
rm -rf build/
rm -rf dist/
rm -rf .eggs/
find . -name '*.egg-info' -exec rm -rf {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '.DS_Store' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
pep8:
flake8 yandex_cloud_client examples
lint:
pylint --rcfile=setup.cfg yandex_cloud_client examples
mypy:
mypy -p yandex_cloud_client
mypy examples
black:
black .
dist:
python3 setup.py sdist
python3 setup.py bdist_wheel
release: dist
@make dist
python3 -m twine upload --repository pypi dist/*
install: clean
python3 setup.py install
init:
pip3 install -r requirements-dev.txt
pre-commit install --install-hooks -f
@ln -sf ./dev/git-hooks/pre-push ./.git/hooks/pre-push
@ln -sf ./dev/git-hooks/post-merge ./.git/hooks/post-merge