forked from freedomofpress/dangerzone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (45 loc) · 1.37 KB
/
setup.py
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
#!/usr/bin/env python3
import setuptools
import os
import sys
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="[email protected]",
license="MIT",
description="Take potentially dangerous PDFs, office documents, or images and convert them to a safe PDF",
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-container = dangerzone:main",
"dangerzone-cli = dangerzone:main",
]
},
)