File tree Expand file tree Collapse file tree 5 files changed +45
-7
lines changed
Expand file tree Collapse file tree 5 files changed +45
-7
lines changed Original file line number Diff line number Diff line change 55develop-py:
66 uv pip install -e .[develop]
77
8- develop-js:
9- cd js; pnpm install && npx playwright install
8+ develop-js: requirements-js
109
1110develop: develop-js develop-py ## setup project for development
1211
12+ .PHONY: requirements-py requirements-js requirements
13+ requirements-py: ## install prerequisite python build requirements
14+ python -m pip install --upgrade pip toml
15+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'`
16+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'`
17+
18+ requirements-js: ## install prerequisite javascript build requirements
19+ cd js; pnpm install && npx playwright install
20+
21+ requirements: requirements-js requirements-py ## setup project for development
22+
1323.PHONY: build-py build-js build
1424build-py:
1525 python -m build -w -n
Original file line number Diff line number Diff line change 55develop-py:
66 uv pip install -e .[develop]
77
8- develop-js:
9- cd js; pnpm install
8+ develop-js: requirements-js
109
1110develop: develop-js develop-py ## setup project for development
1211
12+ .PHONY: requirements-py requirements-js requirements
13+ requirements-py: ## install prerequisite python build requirements
14+ python -m pip install --upgrade pip toml
15+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'`
16+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'`
17+
18+ requirements-js: ## install prerequisite javascript build requirements
19+ cd js; pnpm install && npx playwright install
20+
21+ requirements: requirements-js requirements-py ## setup project for development
22+
1323.PHONY: build-py build-js build
1424build-py:
1525 python -m build -w -n
Original file line number Diff line number Diff line change 66develop: ## install dependencies and build library
77 uv pip install -e .[develop]
88
9+ requirements: ## install prerequisite python build requirements
10+ python -m pip install --upgrade pip toml
11+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'`
12+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'`
13+
914build: ## build the python library
1015 python -m build -n
1116
Original file line number Diff line number Diff line change @@ -10,6 +10,17 @@ develop-rs:
1010
1111develop: develop-rs develop-py ## setup project for development
1212
13+ .PHONY: requirements-py requirements-rs requirements
14+ requirements-py: ## install prerequisite python build requirements
15+ python -m pip install --upgrade pip toml
16+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'`
17+ python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'`
18+
19+ requirements-rs: ## install prerequisite rust build requirements
20+ make -C rust requirements
21+
22+ requirements: requirements-rs requirements-py ## setup project for development
23+
1324.PHONY: build-py build-rs build dev
1425build-py:
1526 maturin build
Original file line number Diff line number Diff line change 11
2- .PHONY: develop build
3- develop : ## install required dev dependencies
2+ .PHONY: requirements develop build
3+ requirements : ## install required dev dependencies
44 rustup component add rustfmt
55 rustup component add clippy
6- cargo install cargo-nextest
6+ cargo install cargo-nextest
77 cargo install cargo-llvm-cov
88
9+ develop: requirements ## install required dev dependencies
10+
911build: ## build release
1012 cargo build --release --all-features
1113
You can’t perform that action at this time.
0 commit comments