14
0
forked from pool/python-black

Accepting request 631849 from home:mimi_vx:branches:devel:languages:python

- disable testsuite for py older than 3.7

OBS-URL: https://build.opensuse.org/request/show/631849
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-black?expand=0&rev=2
This commit is contained in:
2018-08-27 20:01:43 +00:00
committed by Git OBS Bridge
parent 1fdb637ed1
commit caefd006f8
2 changed files with 9 additions and 1 deletions

View File

@@ -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}/*