forked from milvus-io/pymilvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 890 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 890 Bytes
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
unittest:
PYTHONPATH=`pwd` python3 -m pytest tests --ignore=tests/benchmark --cov=pymilvus -v
lint:
PYTHONPATH=`pwd` python3 -m black pymilvus tests --check --diff
PYTHONPATH=`pwd` python3 -m ruff check pymilvus tests
format:
pip install -e ".[dev]"
PYTHONPATH=`pwd` python3 -m black pymilvus tests
PYTHONPATH=`pwd` python3 -m ruff check pymilvus tests --fix
coverage:
PYTHONPATH=`pwd` pytest --cov=pymilvus --ignore=tests/benchmark tests --cov-report=xml
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 .