dangerzone/setup.py
Alex Pyrgiotis a33dcfbb51
Replace First Look Media references
Update several references to First Look Media in the code, to better
reflect the current status, where Freedom of the Press Foundation has
taken over the stewardship of the project.

Fixes #343
2023-03-08 18:40:55 +02:00

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="Freedom of the Press Foundation",
author_email="info@freedom.press",
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/freedomofpress/dangerzone",
packages=["dangerzone", "dangerzone.gui", "dangerzone.isolation_provider"],
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")),
],
classifiers=[
"Programming Language :: Python",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
"dangerzone = dangerzone:main",
"dangerzone-cli = dangerzone:main",
]
},
)