mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00

PyMuPDF 1.23.9 swapped the new fitz implementation (fitz_new) with the fitz module. In the new module there are prints in the code that interfere with our stdout for sending JSON from the container. Pinning the version seems to have no adverse consequences [1], since fitz_old hasn't had significant changes and it gives breathing room for the print-related issue to be tackled in PR [2]. Fixes temporarily #700 [1]: https://github.com/freedomofpress/dangerzone/issues/700#issuecomment-1938357651 [2]: https://github.com/pymupdf/PyMuPDF/pull/3137
68 lines
1.8 KiB
TOML
68 lines
1.8 KiB
TOML
[tool.poetry]
|
|
name = "dangerzone"
|
|
version = "0.5.1"
|
|
description = "Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs"
|
|
authors = ["Freedom of the Press Foundation <info@freedom.press>", "Micah Lee <micah.lee@theintercept.com>"]
|
|
license = "AGPL-3.0"
|
|
# NOTE: See also https://github.com/freedomofpress/dangerzone/issues/677
|
|
include = [
|
|
{ path = "share/*", format = "sdist" },
|
|
{ path = "qubes/*", format = "sdist" },
|
|
{ path = "install/linux/press.freedom.dangerzone.*", format = "sdist" },
|
|
{ path = "README.md", format = "sdist" },
|
|
]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = ">=3.8,<3.13"
|
|
click = "*"
|
|
appdirs = "*"
|
|
PySide6 = "^6.4.1"
|
|
colorama = "*"
|
|
pyxdg = {version = "*", platform = "linux"}
|
|
requests = "*"
|
|
markdown = "*"
|
|
packaging = "*"
|
|
|
|
[tool.poetry.scripts]
|
|
dangerzone = 'dangerzone:main'
|
|
dangerzone-cli = 'dangerzone:main'
|
|
|
|
# Dependencies required for packaging the code on various platforms.
|
|
[tool.poetry.group.package.dependencies]
|
|
setuptools = "*"
|
|
cx_freeze = {version = "^6.13.1", platform = "win32"}
|
|
pywin32 = {version = "*", platform = "win32"}
|
|
pyinstaller = {version = "*", platform = "darwin"}
|
|
|
|
# Dependencies required for linting the code.
|
|
[tool.poetry.group.lint.dependencies]
|
|
black = "*"
|
|
isort = "*"
|
|
mypy = "*"
|
|
types-PySide2 = "*"
|
|
types-Markdown = "*"
|
|
types-requests = "*"
|
|
|
|
# Dependencies required for testing the code.
|
|
[tool.poetry.group.test.dependencies]
|
|
pytest = "^7.1.2"
|
|
pytest-mock = "^3.10.0"
|
|
pytest-qt = "^4.2.0"
|
|
pytest-cov = "^3.0.0"
|
|
strip-ansi = "*"
|
|
|
|
[tool.poetry.group.qubes.dependencies]
|
|
pymupdf = "^1.23.6"
|
|
|
|
[tool.poetry.group.container.dependencies]
|
|
pymupdf = "1.23.8"
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
skip_gitignore = true
|
|
# This is necessary due to https://github.com/PyCQA/isort/issues/1835
|
|
follow_links = false
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.2.0"]
|
|
build-backend = "poetry.core.masonry.api"
|