Files
pyquarantine-milter/setup.py
2021-09-30 18:53:24 +02:00

54 lines
1.8 KiB
Python

from setuptools import setup
def read_file(fname):
with open(fname, 'r') as f:
return f.read()
setup(name = "pyquarantine",
author = "Thomas Oettli",
author_email = "spacefreak@noop.ch",
description = "A pymilter based sendmail/postfix pre-queue filter.",
license = "GPL 3",
keywords = "header quarantine milter",
url = "https://github.com/spacefreak86/pyquarantine",
packages = ["pyquarantine"],
long_description = read_file("README.md"),
long_description_content_type = "text/markdown",
classifiers = [
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Communications :: Email :: Filters"
],
include_package_data = True,
entry_points = {
"console_scripts": [
"pyquarantine-milter=pyquarantine.run:main",
"pyquarantine=pyquarantine.run:main",
]
},
data_files = [
(
"/etc/pyquarantine",
[
"pyquarantine/misc/pyquarantine.conf.example"
]
), (
"/etc/pyquarantine/templates",
[
"pyquarantine/misc/templates/disclaimer_html.template",
"pyquarantine/misc/templates/disclaimer_text.template",
"pyquarantine/misc/templates/notification.template",
"pyquarantine/misc/templates/removed.png"
]
)
],
install_requires = ["pymilter", "jsonschema", "netaddr", "beautifulsoup4[lxml]", "peewee"],
python_requires = ">=3.8"
)