forked from aws/aws-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (35 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
48 lines (35 loc) · 1.13 KB
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
DOCS_PORT ?= 8000
PYTHON_VERSION := 3.12
.PHONY: build-py check-py docs docs-serve docs-clean docs-install docs-lock \
install lint-py test-py venv
install:
uv sync --all-packages --all-extras
@printf "\n\nWorkspace initialized, please run:\n\033[36msource .venv/bin/activate\033[0m"
lint-py:
uv run ruff check packages --fix --config pyproject.toml
uv run ruff format packages --config pyproject.toml
check-py:
uv run ruff check packages --config pyproject.toml
uv run ruff format --check packages --config pyproject.toml
uv run pyright packages
test-py:
uv run pytest packages
build-py:
uv build --all-packages
venv:
uv venv --python $(PYTHON_VERSION)
docs-lock: venv
uv pip compile requirements-docs.in -o requirements-docs.txt
docs-install: venv
uv pip install -r requirements-docs.txt
uv pip install -e clients/*
docs-clean:
rm -rf site docs/clients
docs-generate:
uv run python scripts/docs/generate_all_doc_stubs.py
uv run python scripts/docs/generate_nav.py
docs: docs-generate
uv run zensical build
docs-serve:
@[ -d site ] || $(MAKE) docs
uv run python -m http.server $(DOCS_PORT) --bind 127.0.0.1 --directory site