Don't use pathlib2
This commit is contained in:
parent
3219259dc0
commit
98eaa3b2cd
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue