File support-new-poetry.patch of Package python-srcinfo
Index: srcinfo-0.1.2/pyproject.toml
===================================================================
--- srcinfo-0.1.2.orig/pyproject.toml
+++ srcinfo-0.1.2/pyproject.toml
@@ -1,8 +1,8 @@
-[tool.poetry]
+[project]
name = "srcinfo"
version = "0.1.2"
description = "A small library to parse .SRCINFO files"
-authors = ["Johannes Löthberg <johannes@kyriasis.com>"]
+authors = [{ name = "Johannes Löthberg", email = "johannes@kyriasis.com" }]
license = "ISC"
readme = "README.rst"
@@ -14,8 +14,8 @@ classifiers = [
"License :: OSI Approved :: ISC License (ISCL)",
]
-[tool.poetry.scripts]
-parse_srcinfo = { callable = "srcinfo.main:main" }
+[project.scripts]
+parse_srcinfo = "srcinfo.main:main"
[tool.poetry.dependencies]
python = "^3.7"