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

Building stdeb on bookworm is failing [1] on a missing long_description: File "/usr/lib/python3/dist-packages/stdeb/util.py", line 934, in __init__ for line in long_description.split('\n'): AttributeError: 'NoneType' object has no attribute 'split' [1]: https://app.circleci.com/pipelines/github/freedomofpress/dangerzone/484/workflows/38c579d5-b335-49ab-b56d-9539d93ef16e/jobs/2110
55 lines
1.6 KiB
Python
55 lines
1.6 KiB
Python
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
|
|
import setuptools
|
|
|
|
with open("share/version.txt") as f:
|
|
version = f.read().strip()
|
|
|
|
|
|
def file_list(path):
|
|
files = []
|
|
for filename in os.listdir(path):
|
|
if os.path.isfile(os.path.join(path, filename)):
|
|
files.append(os.path.join(path, filename))
|
|
return files
|
|
|
|
|
|
setuptools.setup(
|
|
name="dangerzone",
|
|
version=version,
|
|
author="Micah Lee",
|
|
author_email="micah.lee@theintercept.com",
|
|
license="MIT",
|
|
description="Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs",
|
|
long_description="""\
|
|
Dangerzone is an open source desktop application that takes potentially \
|
|
dangerous PDFs, office documents, or images and converts them to safe PDFs. \
|
|
It uses container technology to convert the documents within a secure sandbox.\
|
|
""",
|
|
url="https://github.com/firstlookmedia/dangerzone",
|
|
packages=["dangerzone", "dangerzone.gui"],
|
|
data_files=[
|
|
(
|
|
"share/applications",
|
|
["install/linux/media.firstlook.dangerzone.desktop"],
|
|
),
|
|
(
|
|
"share/icons/hicolor/64x64/apps",
|
|
["install/linux/media.firstlook.dangerzone.png"],
|
|
),
|
|
("share/dangerzone", file_list("share")),
|
|
],
|
|
classifiers=[
|
|
"Programming Language :: Python",
|
|
"Intended Audience :: End Users/Desktop",
|
|
"Operating System :: OS Independent",
|
|
],
|
|
entry_points={
|
|
"console_scripts": [
|
|
"dangerzone = dangerzone:main",
|
|
"dangerzone-cli = dangerzone:main",
|
|
]
|
|
},
|
|
)
|