move to pyproject.toml

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
2024-07-05 21:54:56 +02:00
parent 9bb944a87c
commit 6b40ab3235
3 changed files with 28 additions and 23 deletions

View File

@@ -1,21 +1,4 @@
try:
from distutils.core import setup
except ImportError:
from setuptools import setup
# pylint: disable=missing-docstring
from setuptools import setup
name = "smtprd"
url = "https://www.hackitu.de/smtprd/"
requirements = open("requirements.txt", "r").read().splitlines(keepends=False)
setup(
name=name,
version="0.1",
description="SMTP forwarding relay daemon",
classifiers=["License :: OSI Approved :: GNU Affero General Public License v3"],
author=url,
author_email="@",
url=url,
scripts=[name + ".py"],
entry_points={"console_scripts": ["{}={}:main".format(name, name)]},
install_requires=requirements,
)
setup()