From 6b40ab3235365315aa25e78930276a3ea1696813 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Fri, 5 Jul 2024 21:54:56 +0200 Subject: [PATCH] move to pyproject.toml Signed-off-by: Florian Brandes --- pyproject.toml | 25 +++++++++++++++++++++++++ requirements-dev.txt | 3 --- setup.py | 23 +++-------------------- 3 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements-dev.txt diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d0e1a42 --- /dev/null +++ b/pyproject.toml @@ -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" diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 4d0059f..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,3 +0,0 @@ -mypy -flake8 -bandit diff --git a/setup.py b/setup.py index b267a96..3e66189 100644 --- a/setup.py +++ b/setup.py @@ -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()