Use importlib.metadata from stdlib on Python 3.8
This commit is contained in:
parent
4e85c05c34
commit
80602e339d
2 changed files with 119 additions and 2 deletions
|
|
@ -14,6 +14,11 @@ Summary: Virtualenv-based automation of test activities
|
|||
License: MIT
|
||||
URL: http://tox.testrun.org/
|
||||
Source0: %{pypi_source}
|
||||
|
||||
# Use importlib.metadata from stdlib on Python 3.8
|
||||
# Rebased from https://github.com/tox-dev/tox/pull/1368
|
||||
Patch0: 1368.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
|
|
@ -66,7 +71,6 @@ Obsoletes: python3-detox < 0.19-5
|
|||
BuildRequires: python3-filelock
|
||||
BuildRequires: python3-flaky
|
||||
BuildRequires: python3-freezegun
|
||||
BuildRequires: python3-importlib-metadata
|
||||
BuildRequires: python3-packaging
|
||||
BuildRequires: python3-pathlib2
|
||||
BuildRequires: python3-pip
|
||||
|
|
@ -80,6 +84,7 @@ BuildRequires: python3-pytest-xdist
|
|||
BuildRequires: python3-toml
|
||||
BuildRequires: python3-virtualenv
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: (python3-importlib-metadata if python3 < 3.8)
|
||||
BuildRequires: /usr/bin/git
|
||||
%endif
|
||||
|
||||
|
|
@ -97,7 +102,7 @@ can use for:
|
|||
boilerplate and merging CI and shell-based testing.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||
|
||||
# remove bundled egg-info
|
||||
rm -rf %{pypi_name}.egg-info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue