-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (65 loc) · 2.15 KB
/
setup.py
File metadata and controls
73 lines (65 loc) · 2.15 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python3
import os
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
def data_files_list():
data_files = [
(
"share/applications",
["install/linux/press.freedom.dangerzone.desktop"],
),
(
"share/icons/hicolor/64x64/apps",
["install/linux/press.freedom.dangerzone.png"],
),
("share/dangerzone", file_list("share")),
("share/dangerzone/vendor", file_list("share/vendor")),
]
return data_files
setuptools.setup(
name="dangerzone",
version=version,
author="Freedom of the Press Foundation",
author_email="info@freedom.press",
license="AGPL-3.0",
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 disposable VMs on Qubes OS, or container technology in other OSes, to \
convert the documents within a secure sandbox.
""",
url="https://github.com/freedomofpress/dangerzone",
packages=[
"dangerzone",
"dangerzone.conversion",
"dangerzone.gui",
"dangerzone.isolation_provider",
"dangerzone.podman",
"dangerzone.podman.command",
"dangerzone.podman.errors",
"dangerzone.updater",
"dangerzone.windows",
],
data_files=data_files_list(),
classifiers=[
"Programming Language :: Python",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
"dangerzone-cli = dangerzone.cli:run",
"dangerzone-image = dangerzone.updater.cli:run",
"dangerzone-machine = dangerzone.podman.cli:main",
"dangerzone = dangerzone.gui.run:run",
]
},
)