-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
62 lines (34 loc) · 914 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
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
62
THRIFT_DIR=./flipper_thrift
THRIFT_PYTHON=${THRIFT_DIR}/python
PKG_VERSION = $(shell python -c "import pkg_resources; print(pkg_resources.require('flipper-client')[0].version)")
install:
python setup.py install
install-dev:
pip install -e .[dev]
pre-commit install
pre-commit install-hooks
virtualenv: virtualenv-install
virtualenv-install:
@pyenv virtualenv -p python3.6 3.6.5 flipper-client
thrift:
thrift -r --gen py -out ${THRIFT_PYTHON} ${THRIFT_DIR}/*.thrift
clean:
@rm -rf build
@rm -rf dist
build: clean
python setup.py sdist bdist_wheel
version:
@echo ${PKG_VERSION}
publish: build
twine upload dist/*
hooks:
pre-commit run --all-files
mypy:
@mypy --follow-imports=silent --ignore-missing-imports flipper
circleci-install:
brew install circleci
circleci setup
validate-circleci:
circleci config validate
exec-circleci: validate-circleci
circleci local execute