From 40bff2ac00df0b8fa29bfc797feff79c9e72567d Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Mon, 26 Aug 2024 23:49:00 -0700 Subject: [PATCH] PEP621ify things --- pyproject.toml | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- setup.cfg | 39 --------------------------------------- 2 files changed, 46 insertions(+), 42 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 94eacd0..0a2e8c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,52 @@ [build-system] requires = [ - "setuptools >= 35.0.2", - "setuptools_scm[toml] >= 3.4", + "setuptools>=64", + "setuptools_scm>=8", "wheel" ] build-backend = "setuptools.build_meta" -[tool.setuptools_scm] \ No newline at end of file +[project] +name = "yaclog-ksp" +description = "Kerbal Space Program changelog file generator" +readme = "README.md" +authors = [{ name = "Andrew Cassidy", email = "drewcassidy@me.com" }] +keywords = ["changelog", "commandline", "markdown", "KSP"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU Affero General Public License v3", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Text Processing :: Markup :: Markdown", + "Topic :: Software Development :: Version Control :: Git", + "Topic :: Utilities", + "Topic :: Games/Entertainment :: Simulation" +] + +requires-python = ">= 3.8" +dependencies = [ + "Click >= 8.0", + "yaclog >= 1.0" +] +dynamic = ["version"] + + +[project.scripts] +yaclog-ksp = "yaclog_ksp.__main__:main" + +[project.urls] +Source = "https://github.com/drewcassidy/yaclog-ksp" +Changelog = "https://github.com/drewcassidy/yaclog-ksp/blob/main/CHANGELOG.md" +"Forum Post" = "https://forum.kerbalspaceprogram.com/index.php?/topic/201784-*" + +[tool.setuptools_scm] + +[tool.setuptools.packages.find] +include = ["yaclog_ksp"] \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 12e79e0..0000000 --- a/setup.cfg +++ /dev/null @@ -1,39 +0,0 @@ -[metadata] -# until setuptools supports PEP621, this will have to do -name = yaclog-ksp -description = Kerbal Space Program changelog file generator -author = Andrew Cassidy -license = AGPLv3 -license_file = LICENSE.md -long_description = file: README.md -long_description_content_type = text/markdown - -keywords = changelog, commandline, markdown, KSP -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - License :: OSI Approved :: GNU Affero General Public License v3 - Operating System :: OS Independent - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Topic :: Games/Entertainment :: Simulation - Topic :: Text Processing :: Markup :: Markdown - Topic :: Utilities - -project_urls = - Changelog = https://github.com/drewcassidy/yaclog-ksp/blob/main/CHANGELOG.md - Source = https://github.com/drewcassidy/yaclog-ksp - Forum Post = https://forum.kerbalspaceprogram.com/index.php?/topic/201784-* - -[options] -install_requires = - Click >= 7.0, < 9.0 - yaclog ~= 1.0 -python_requires = >= 3.8 -packages = find: - -[options.entry_points] -console_scripts = - yaclog-ksp = yaclog_ksp.__main__:main \ No newline at end of file