-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
43 lines (35 loc) · 1.17 KB
/
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
DEFAULT_GOAL: help
SHELL := /bin/bash
.PHONY: lint
lint:
@ruff check .
@ruff format --check .
.PHONY: fix
fix:
@ruff check . --fix
@ruff format .
.PHONY: install-deps
install-deps: ## Install initial wheel building dependencies
./scripts/install-deps
.PHONY: requirements
requirements: ## Creates requirements files for the Python projects
./scripts/update-requirements
.PHONY: build-wheels
build-wheels: ## Builds the wheels and adds them to the wheels subdirectory
./scripts/verify-sha256sum-signature securedrop-$$(basename ${PKG_DIR})
./scripts/build-sync-wheels
./scripts/sync-sha256sums securedrop-$$(basename ${PKG_DIR})
@echo Done!
.PHONY: test
test: ## Run simple test suite (skips reproducibility checks)
pytest -v tests/test_update_requirements.py tests/test_utils.py
.PHONY: reprotest
reprotest: ## Runs only reproducibility tests for .whl files
pytest -vvs tests/test_reproducible_wheels.py
.PHONY: help
help: ## Prints this message and exits
@printf "Makefile for building SecureDrop Workstation wheels\n"
@printf "Subcommands:\n\n"
@perl -F':.*##\s+' -lanE '$$F[1] and say "\033[36m$$F[0]\033[0m : $$F[1]"' $(MAKEFILE_LIST) \
| sort \
| column -s ':' -t