Apply workaround for old poetry with sed

[skip changelog]

Signed-off-by: Nils Philippsen <nils@redhat.com>
epel9
Nils Philippsen 7 months ago
parent 945ef757cb
commit 9cf1aaf7b0

@ -1,12 +0,0 @@
diff -up rpmautospec-0.6.0/pyproject.toml.old-poetry rpmautospec-0.6.0/pyproject.toml
--- rpmautospec-0.6.0/pyproject.toml.old-poetry 2024-01-27 10:16:00.742831700 +0100
+++ rpmautospec-0.6.0/pyproject.toml 2024-01-27 11:11:14.965480544 +0100
@@ -47,7 +47,7 @@ babel = "^2.9"
pygit2 = "^1.4.0"
rpm = "*"
-[tool.poetry.group.dev.dependencies]
+[tool.poetry.dev-dependencies]
pyyaml = "^5.3.1 || ^6"
pytest = "^6.2.2 || ^7"
pytest-cov = "^4.0.0"

@ -25,7 +25,6 @@ Summary: Package and CLI tool to generate release fields and changelogs
License: MIT License: MIT
URL: https://github.com/fedora-infra/%{canonicalname} URL: https://github.com/fedora-infra/%{canonicalname}
Source0: https://github.com/fedora-infra/%{canonicalname}/releases/download/%{version}/%{canonicalname}-%{version}.tar.gz Source0: https://github.com/fedora-infra/%{canonicalname}/releases/download/%{version}/%{canonicalname}-%{version}.tar.gz
Patch100: python-rpmautospec-0.6.0-old-poetry.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: git BuildRequires: git
@ -73,10 +72,11 @@ enabled packages locally.
%pyproject_buildrequires %pyproject_buildrequires
%prep %prep
%autosetup -n %{srcname}-%{version} -N %autosetup -n %{srcname}-%{version}
%autopatch -M 99
%if %{with oldpoetry} %if %{with oldpoetry}
%autopatch 100 sed -i \
-e 's/\[tool\.poetry\.group\.dev\.dependencies\]/[tool.poetry.dev-dependencies]/g' \
pyproject.toml
%endif %endif
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters

Loading…
Cancel
Save