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

25
pyproject.toml Normal file
View File

@@ -0,0 +1,25 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "smtprd-ng"
version = "0.0.1"
description = "SMTP forwarding relay daemon with signing and encryption"
authors = [{ name = "Florian Brandes", email = "dev@mail.flo-the.dev" }]
classifiers = ["License :: OSI Approved :: GNU Affero General Public License v3" ]
license = { text = "MIT License" }
dependencies = [
"aiosmtpd",
"aiosmtplib",
"M2Crypto",
"cryptography",
]
requires-python = ">=3.10"
keywords = ["smtp", "smime"]
[project.scripts]
smtprd-ng = "smtprd_ng.smtprd:main"
[project.urls]
Repository = "https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gWc1qgaeZaoGwL4WTstLNoqjayM"

View File

@@ -1,3 +0,0 @@
mypy
flake8
bandit

View File

@@ -1,21 +1,4 @@
try:
from distutils.core import setup
except ImportError:
# 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()