@@ -5,13 +5,11 @@ VENV_PATH = .venv
55help :
66 @echo " Thanks for your interest in the Sentry Python SDK!"
77 @echo
8- @echo " make lint: Run linters"
9- @echo " make test: Run basic tests (not testing most integrations)"
10- @echo " make test-all: Run ALL tests (slow, closest to CI)"
11- @echo " make format: Run code formatters (destructive)"
8+ @echo " make apidocs: Build the API documentation"
129 @echo " make aws-lambda-layer: Build AWS Lambda layer directory for serverless integration"
1310 @echo
1411 @echo " Also make sure to read ./CONTRIBUTING.md"
12+ @echo
1513 @false
1614
1715.venv :
@@ -24,42 +22,13 @@ dist: .venv
2422 $(VENV_PATH ) /bin/python setup.py sdist bdist_wheel
2523.PHONY : dist
2624
27- format : .venv
28- $(VENV_PATH ) /bin/tox -e linters --notest
29- .tox/linters/bin/black .
30- .PHONY : format
31-
32- test : .venv
33- @$(VENV_PATH ) /bin/tox -e py3.12
34- .PHONY : test
35-
36- test-all : .venv
37- @TOXPATH=$(VENV_PATH ) /bin/tox sh ./scripts/runtox.sh
38- .PHONY : test-all
39-
40- check : lint test
41- .PHONY : check
42-
43- lint : .venv
44- @set -e && $(VENV_PATH ) /bin/tox -e linters || ( \
45- echo " ================================" ; \
46- echo " Bad formatting? Run: make format" ; \
47- echo " ================================" ; \
48- false)
49- .PHONY : lint
50-
5125apidocs : .venv
5226 @$(VENV_PATH ) /bin/pip install --editable .
5327 @$(VENV_PATH ) /bin/pip install -U -r ./requirements-docs.txt
5428 rm -rf docs/_build
5529 @$(VENV_PATH ) /bin/sphinx-build -vv -W -b html docs/ docs/_build
5630.PHONY : apidocs
5731
58- apidocs-hotfix : apidocs
59- @$(VENV_PATH ) /bin/pip install ghp-import
60- @$(VENV_PATH ) /bin/ghp-import -pf docs/_build
61- .PHONY : apidocs-hotfix
62-
6332aws-lambda-layer : dist
6433 $(VENV_PATH ) /bin/pip install -r requirements-aws-lambda-layer.txt
6534 $(VENV_PATH ) /bin/python -m scripts.build_aws_lambda_layer
0 commit comments