From 069fd78932cc953e60ca466b5b411e9ce6140d66 Mon Sep 17 00:00:00 2001 From: Simon Rose Date: Wed, 1 Nov 2023 15:06:24 +0100 Subject: [PATCH] Convert to pyproject.toml --- server/pyproject.toml | 27 +++++++++++++++++++++++++++ server/setup.py | 16 +--------------- 2 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 server/pyproject.toml diff --git a/server/pyproject.toml b/server/pyproject.toml new file mode 100644 index 0000000..9143b16 --- /dev/null +++ b/server/pyproject.toml @@ -0,0 +1,27 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name="recceiver" +authors = [ + {name = "Michael Davidsaver", email = "mdavidsaver@gmail.com"}, +] +description="resync server" +version="1.5" +readme = "README.rst" +requires-python = ">=3.6" +dependencies = [ +# "requests", + "twisted", +] + +[project.urls] +Repository="https://github.com/mdavidsaver/recsync" + +[tool.setuptools] +packages = ["recceiver", "twisted.plugins"] +include-package-data = true + +[tool.setuptools.package-data] +twisted = ["plugins/recceiver_plugin.py"] diff --git a/server/setup.py b/server/setup.py index 9467b20..beda28e 100644 --- a/server/setup.py +++ b/server/setup.py @@ -2,18 +2,4 @@ from setuptools import setup -setup( - name="recceiver", - version="1.5", - description="resync server", - author="Michael Davidsaver", - author_email="mdavidsaver@gmail.com", - url="https://github.com/mdavidsaver/recsync", - packages=[ - "recceiver", - "twisted.plugins", - ], - package_data={ - "twisted": ["plugins/recceiver_plugin.py"], - }, -) +setup()