diff --git a/python-black.changes b/python-black.changes index 1a06071..d2a5833 100644 --- a/python-black.changes +++ b/python-black.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 27 19:27:43 UTC 2018 - mimi.vx@gmail.com + +- disable testsuite for py older than 3.7 + ------------------------------------------------------------------- Mon Aug 27 09:08:50 UTC 2018 - tchvatal@suse.com diff --git a/python-black.spec b/python-black.spec index befe155..04460e1 100644 --- a/python-black.spec +++ b/python-black.spec @@ -28,7 +28,6 @@ URL: https://github.com/ambv/black Source: https://files.pythonhosted.org/packages/source/b/black/black-%{version}.tar.gz BuildRequires: %{python_module appdirs} BuildRequires: %{python_module attrs >= 17.4.0} -BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module click >= 6.5} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toml >= 0.9.4} @@ -57,6 +56,7 @@ possible. %prep %setup -q -n black-%{version} +rm -rf %{pypi_name}.egg-info %build %python_build @@ -65,11 +65,14 @@ possible. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{python_version_nodots} >= 37 %check %python_exec setup.py test +%endif %files %{python_files} %doc README.md +%python3_only %{_bindir}/black %license LICENSE %{python_sitelib}/*