From 98eaa3b2cd49865bc8302f4e80b4a2ff85a7ce5f Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Mon, 7 Sep 2020 11:41:41 +0200 Subject: [PATCH] Don't use pathlib2 --- python-tox.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-tox.spec b/python-tox.spec index 84762dc..6938c71 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -74,7 +74,6 @@ BuildRequires: python3-filelock BuildRequires: python3-flaky BuildRequires: python3-freezegun BuildRequires: python3-packaging -BuildRequires: python3-pathlib2 BuildRequires: python3-pip BuildRequires: python3-pluggy >= 0.12 BuildRequires: python3-poetry @@ -115,6 +114,10 @@ can use for: %prep %autosetup -p1 -n %{pypi_name}-%{version} +# Pathlib2 was retired in Fedora, instead of unretiring it, +# it's enough to use pathlib instead. +find . -type f -name "*.py" -print0 | xargs -0 sed -i "s/pathlib2/pathlib/g" + # remove bundled egg-info rm -rf %{pypi_name}.egg-info