mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-05 13:11:49 +02:00
Compare commits
11 commits
8df334b471
...
a1955dac07
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a1955dac07 | ||
![]() |
5ff2b08b4a | ||
![]() |
39f96f0c12 | ||
![]() |
7e5d2c936c | ||
![]() |
067c741847 | ||
![]() |
deaeb7c682 | ||
![]() |
b74fbab6db | ||
![]() |
f8f12d37c5 | ||
![]() |
02a1cb6591 | ||
![]() |
63be5463ae | ||
![]() |
d36779aece |
4 changed files with 11 additions and 10 deletions
14
Makefile
14
Makefile
|
@ -22,7 +22,7 @@ fix: ## apply all the suggestions from ruff
|
||||||
ruff format
|
ruff format
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Run the tests
|
test:
|
||||||
# Make each GUI test run as a separate process, to avoid segfaults due to
|
# Make each GUI test run as a separate process, to avoid segfaults due to
|
||||||
# shared state.
|
# shared state.
|
||||||
# See more in https://github.com/freedomofpress/dangerzone/issues/493
|
# See more in https://github.com/freedomofpress/dangerzone/issues/493
|
||||||
|
@ -47,11 +47,11 @@ test-large: test-large-init ## Run large test set
|
||||||
python -m pytest --tb=no tests/test_large_set.py::TestLargeSet -v $(JUNIT_FLAGS) --junitxml=$(TEST_LARGE_RESULTS)
|
python -m pytest --tb=no tests/test_large_set.py::TestLargeSet -v $(JUNIT_FLAGS) --junitxml=$(TEST_LARGE_RESULTS)
|
||||||
python $(TEST_LARGE_RESULTS)/report.py $(TEST_LARGE_RESULTS)
|
python $(TEST_LARGE_RESULTS)/report.py $(TEST_LARGE_RESULTS)
|
||||||
|
|
||||||
Dockerfile: Dockerfile.env Dockerfile.in ## Regenerate the Dockerfile from its template
|
Dockerfile: Dockerfile.env Dockerfile.in
|
||||||
poetry run jinja2 Dockerfile.in Dockerfile.env > Dockerfile
|
poetry run jinja2 Dockerfile.in Dockerfile.env > Dockerfile
|
||||||
|
|
||||||
.PHONY: poetry-install
|
.PHONY: poetry-install
|
||||||
poetry-install: ## Install project dependencies
|
poetry-install:
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
.PHONY: build-clean
|
.PHONY: build-clean
|
||||||
|
@ -59,19 +59,19 @@ build-clean:
|
||||||
poetry run doit clean
|
poetry run doit clean
|
||||||
|
|
||||||
.PHONY: build-macos-intel
|
.PHONY: build-macos-intel
|
||||||
build-macos-intel: build-clean poetry-install ## Build macOS intel package (.dmg)
|
build-macos-intel: build-clean poetry-install
|
||||||
poetry run doit -n 8
|
poetry run doit -n 8
|
||||||
|
|
||||||
.PHONY: build-macos-arm
|
.PHONY: build-macos-arm
|
||||||
build-macos-arm: build-clean poetry-install ## Build macOS Apple Silicon package (.dmg)
|
build-macos-arm: build-clean poetry-install
|
||||||
poetry run doit -n 8 macos_build_dmg
|
poetry run doit -n 8 macos_build_dmg
|
||||||
|
|
||||||
.PHONY: build-linux
|
.PHONY: build-linux
|
||||||
build-linux: build-clean poetry-install ## Build linux packages (.rpm and .deb)
|
build-linux: build-clean poetry-install
|
||||||
poetry run doit -n 8 fedora_rpm debian_deb
|
poetry run doit -n 8 fedora_rpm debian_deb
|
||||||
|
|
||||||
.PHONY: regenerate-reference-pdfs
|
.PHONY: regenerate-reference-pdfs
|
||||||
regenerate-reference-pdfs: ## Regenerate the reference PDFs
|
regenerate-reference-pdfs:
|
||||||
pytest tests/test_cli.py -k regenerate --generate-reference-pdfs
|
pytest tests/test_cli.py -k regenerate --generate-reference-pdfs
|
||||||
# Makefile self-help borrowed from the securedrop-client project
|
# Makefile self-help borrowed from the securedrop-client project
|
||||||
# Explaination of the below shell command should it ever break.
|
# Explaination of the below shell command should it ever break.
|
||||||
|
|
|
@ -56,7 +56,7 @@ def print_header(s: str) -> None:
|
||||||
"The name or full path of the container runtime you want Dangerzone to use."
|
"The name or full path of the container runtime you want Dangerzone to use."
|
||||||
" You can specify the value 'default' if you want to take back your choice, and"
|
" You can specify the value 'default' if you want to take back your choice, and"
|
||||||
" let Dangerzone use the default runtime for this OS"
|
" let Dangerzone use the default runtime for this OS"
|
||||||
),
|
)
|
||||||
)
|
)
|
||||||
@click.version_option(version=get_version(), message="%(version)s")
|
@click.version_option(version=get_version(), message="%(version)s")
|
||||||
@errors.handle_document_errors
|
@errors.handle_document_errors
|
||||||
|
|
|
@ -10,6 +10,7 @@ from typing import List, Optional
|
||||||
import click
|
import click
|
||||||
import colorama
|
import colorama
|
||||||
|
|
||||||
|
|
||||||
# FIXME: See https://github.com/freedomofpress/dangerzone/issues/320 for more details.
|
# FIXME: See https://github.com/freedomofpress/dangerzone/issues/320 for more details.
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from PySide2 import QtCore, QtGui, QtWidgets
|
from PySide2 import QtCore, QtGui, QtWidgets
|
||||||
|
|
|
@ -227,9 +227,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
if not is_version_valid:
|
if not is_version_valid:
|
||||||
self.handle_docker_desktop_version_check(is_version_valid, version)
|
self.handle_docker_desktop_version_check(is_version_valid, version)
|
||||||
except errors.UnsupportedContainerRuntime as e:
|
except errors.UnsupportedContainerRuntime as e:
|
||||||
pass # It's caught later in the flow.
|
pass # It's catched later in the flow.
|
||||||
except errors.NoContainerTechException as e:
|
except errors.NoContainerTechException as e:
|
||||||
pass # It's caught later in the flow.
|
pass # It's catched later in the flow.
|
||||||
|
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue