-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
51 lines (36 loc) · 960 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
.PHONY: install
PYTHON=python3.10
SLOW_TEST_THRESHOLD=1 # seconds
bin/python:
$(PYTHON) -m venv .
bin/pip install --upgrade pip
bin/hatch: dev
bin/twine: dev
dev: bin/python
bin/pip install -r requirements.txt
echo "python-elastic-agent-client" > NOTICE.txt
echo "Copyright 2024 Elasticsearch B.V." >> NOTICE.txt
echo "" >> NOTICE.txt
bin/pip-licenses >> NOTICE.txt
generate: bin/python dev
./scripts/download-proto.sh
./scripts/generate.sh
install: bin/python dev
bin/pip install -e .
build: install bin/hatch bin/twine
bin/hatch build
test-release: build
bin/twine upload -r testpypi dist/*
release: clean build
bin/twine upload dist/*
lint: dev
bin/mypy -p elastic_agent_client
bin/ruff check
bin/ruff format --check
autoformat: dev
bin/ruff check --fix
bin/ruff format
test: dev install
bin/pytest --cov-config=pyproject.toml --cov=. --fail-slow=$(SLOW_TEST_THRESHOLD) -sv tests
clean:
rm -rf bin lib include .proto dist