From 94984cecd846ec08f94f53eb1fecf8856776efbd Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Mon, 13 Oct 2025 18:07:46 +0200 Subject: [PATCH] conv to pyproject toml --- pyproject.toml | 33 +++++++++++++++++++++++++++++++++ setup.py | 29 ----------------------------- 2 files changed, 33 insertions(+), 29 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d3cb064 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,33 @@ +[project] +name = "patchodon" +description="Send and receive git patchsets via Mastodon" +authors = [ + {name = "Mirek Kratochvil", email = "exa.exa@gmail.com"}, +] + +readme = "README.md" +license = "GPL-3.0-or-later" +license-files = ["LICENSE"] +keywords = ["git", "mastodon", "patch"] +classifiers = [ + "Development Status :: 4 - BetaIntended Audience :: Science/Research", + "Operating System :: POSIX", + "Operating System :: Unix", + "Programming Language :: Python :: 3", + "Topic :: Communications", + "Topic :: Software Development :: Version Control :: Git", + "Topic :: Utilities", +] +dynamic = ["version"] + +dependencies=[ + "requests>=2.25", + "html2text>=2025", +] +requires-python = ">= 3" + +[project.urls] +Homepage = "https://gitlab.com/exaexa/patchodon" + +[project.scripts] +patchodon = "patchodon:main" diff --git a/setup.py b/setup.py deleted file mode 100644 index 5da755b..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -from setuptools import setup - -setup( - name="patchodon", - version="0.1.0", - description="Send and receive git patchsets via Mastodon", - url="https://gitlab.com/exaexa/patchodon", - author="Mirek Kratochvil", - author_email="exa.exa@gmail.com", - license="GPLv3+", - packages=["patchodon"], - install_requires=[ - "requests>=2.25", - "html2text>=2025", - ], - classifiers=[ - "Development Status :: 4 - BetaIntended Audience :: Science/Research", - ( - "License :: OSI Approved :: GNU General Public License v3 or later" - " (GPLv3+)" - ), - "Operating System :: POSIX", - "Operating System :: Unix", - "Programming Language :: Python :: 3", - "Topic :: Communications", - "Topic :: Software Development :: Version Control :: Git", - "Topic :: Utilities", - ], -)