forked from milvus-io/pymilvus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 795 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
unittest:
PYTHONPATH=`pwd` python3 -m pytest tests --cov=pymilvus -v
lint:
PYTHONPATH=`pwd` python3 -m black pymilvus --check
PYTHONPATH=`pwd` python3 -m ruff check pymilvus
format:
PYTHONPATH=`pwd` python3 -m black pymilvus
PYTHONPATH=`pwd` python3 -m ruff check pymilvus --fix
codecov:
PYTHONPATH=`pwd` pytest --cov=pymilvus --cov-report=xml tests -x -v -rxXs
example:
PYTHONPATH=`pwd` python examples/example.py
example_index:
PYTHONPATH=`pwd` python examples/example_index.py
package:
python3 -m build --sdist --wheel --outdir dist/ .
get_proto:
git submodule update --init
gen_proto:
pip install -e ".[dev]"
cd pymilvus/grpc_gen && ./python_gen.sh
check_proto_product: gen_proto
./check_proto_product.sh
version:
python -m setuptools_scm
install:
pip install -e .