forked from aristanetworks/cloudvision-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 813 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
# Copyright (c) 2020 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the COPYING file.
PCOMP = python -m grpc_tools.protoc # ensure we're using python's version and not some sys
PB_DIR = cloudvision/Connector/protobuf
GEN_DIR = cloudvision/Connector/gen
PCOMP_FLAGS = -I=$(PB_DIR) --python_out=$(GEN_DIR) --mypy_out=$(GEN_DIR) --grpc_python_out=$(GEN_DIR)
.PHONY: clean lint dist dev-setup
# re-generate python protobuf files
proto:
$(PCOMP) $(PCOMP_FLAGS) $(PB_DIR)/*.proto
# clean all stuff related to dist-ing these packages
clean:
rm -r cloudvision.egg-info build dist
dist:
python3 setup.py sdist
python3 setup.py bdist_wheel
dev-setup:
pip3 install -r requirements-dev.txt
lint:
flake8 .
mypy --exclude build .
./check_copyright.sh