Apply workaround for old poetry with sed
[skip changelog] Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
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
|
||||
URL: https://github.com/fedora-infra/%{canonicalname}
|
||||
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
|
||||
BuildRequires: git
|
||||
@ -73,10 +72,11 @@ enabled packages locally.
|
||||
%pyproject_buildrequires
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version} -N
|
||||
%autopatch -M 99
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
%if %{with oldpoetry}
|
||||
%autopatch 100
|
||||
sed -i \
|
||||
-e 's/\[tool\.poetry\.group\.dev\.dependencies\]/[tool.poetry.dev-dependencies]/g' \
|
||||
pyproject.toml
|
||||
%endif
|
||||
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
||||
|
Loading…
Reference in New Issue
Block a user