From aa60c128df13c73911c9d4f29dd4dd1862a7e06f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Jun 09 2018 09:45:36 +0000 Subject: Add missing dependencies and missing test file --- diff --git a/python-black.spec b/python-black.spec index da007b5..10e97e7 100644 --- a/python-black.spec +++ b/python-black.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 18.6b2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The uncompromising code formatter License: MIT @@ -14,9 +14,11 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-click -BuildRequires: python3-attrs >= 17.4.0 BuildRequires: python3-appdirs +BuildRequires: python3-attrs >= 17.4.0 +BuildRequires: python3-click >= 6.5 +BuildRequires: python3-toml >= 0.9.4 + %description Black is the uncompromising Python code formatter. By using it, you agree to @@ -28,10 +30,11 @@ You will save time and mental energy for more important matters. Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} -Requires: python3-click -Requires: python3-attrs >= 17.4.0 Requires: python3-appdirs +Requires: python3-attrs >= 17.4.0 +Requires: python3-click >= 6.5 Requires: python3-setuptools +Requires: python3-toml >= 0.9.4 %description -n python3-%{pypi_name} Black is the uncompromising Python code formatter. By using it, you agree to cease control over minutiae of hand-formatting. In return, Black gives you @@ -55,6 +58,10 @@ cp %{buildroot}/%{_bindir}/black %{buildroot}/%{_bindir}/black-%{python3_version install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/black.1 %check +export PIP_INDEX_URL=http://host.invalid./ +export PIP_NO_DEPS=yes +# Create file, fix for upstream https://github.com/ambv/black/pull/325 +touch tests/data/empty_pyproject.toml %{__python3} setup.py test %files -n python3-%{pypi_name} @@ -71,6 +78,11 @@ install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/black.1 %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Sat Jun 09 2018 Christian Heimes - 18.6b2-2 +- Add new build and runtime dependency python3-toml +- Don't download external packages in tests +- Create missing empty_pyproject.toml for tests + * Sat Jun 09 2018 Christian Heimes - 18.6b2-1 - New upstream release 18.6b2, rhbz#1589399