Hello community, here is the log from the commit of package python-black for openSUSE:Factory checked in at 2020-09-04 10:57:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-black (Old) and /work/SRC/openSUSE:Factory/.python-black.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-black" Fri Sep 4 10:57:29 2020 rev:8 rq:829087 version:19.10b0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-black/python-black.changes 2020-06-10 00:42:28.306037963 +0200 +++ /work/SRC/openSUSE:Factory/.python-black.new.3399/python-black.changes 2020-09-04 10:59:17.110628925 +0200 @@ -1,0 +2,8 @@ +Mon Aug 24 21:56:53 UTC 2020 - Benjamin Greiner <[email protected]> + +- update URL +- python-aiohttp_cors is now available --> install blackd +- skip python2 test on big endian platforms gh#psf/black#1109 +- drop fix-tests.patch + +------------------------------------------------------------------- Old: ---- fix-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-black.spec ++++++ --- /var/tmp/diff_new_pack.RnbppB/_old 2020-09-04 10:59:18.570629707 +0200 +++ /var/tmp/diff_new_pack.RnbppB/_new 2020-09-04 10:59:18.574629709 +0200 @@ -23,12 +23,10 @@ Release: 0 Summary: A code formatter written in, and written for Python License: MIT -URL: https://github.com/ambv/black +URL: https://github.com/psf/black Source: https://files.pythonhosted.org/packages/source/b/black/black-%{version}.tar.gz -Patch0: fix-tests.patch BuildRequires: %{python_module aiohttp >= 3.3.2} -# TODO: needed for blackd -#BuildRequires: %{python_module aiohttp-cors} +BuildRequires: %{python_module aiohttp_cors} BuildRequires: %{python_module appdirs} BuildRequires: %{python_module attrs >= 18.1.0} BuildRequires: %{python_module base >= 3.6} @@ -45,8 +43,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-aiohttp >= 3.3.2 -# TODO: needed for blackd -#Requires: python-aiohttp-cors +Requires: python-aiohttp_cors Requires: python-appdirs Requires: python-attrs >= 18.1.0 Requires: python-click >= 6.5 @@ -74,8 +71,6 @@ %prep %setup -q -n black-%{version} -%patch0 -p1 -rm -rf %{pypi_name}.egg-info %build %python_build @@ -83,16 +78,20 @@ %install %python_install %python_clone -a %{buildroot}%{_bindir}/black +%python_clone -a %{buildroot}%{_bindir}/blackd %python_expand %fdupes %{buildroot}%{$python_sitelib} -# TODO: missing aiohttp-cors (not in distribution and tests failing) -rm %{buildroot}/%{_bindir}/blackd %check # test_expression_diff - sometimes fails on async timing in OBS -%pytest -k 'not test_expression_diff' +skiptests="test_expression_diff" +# https://github.com/psf/black/issues/1109 +if [ $(python3 -c 'import sys; print(sys.byteorder)') == 'big' ]; then +skiptests+=" or test_python2" +fi +%pytest -k "not ($skiptests)" %post -%python_install_alternative black +%python_install_alternative black blackd %postun %python_uninstall_alternative black @@ -100,8 +99,13 @@ %files %{python_files} %doc README.md %python_alternative %{_bindir}/black -#%%python_alternative %%{_bindir}/blackd +%python_alternative %{_bindir}/blackd %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/_black_version.py* +%{python_sitelib}/black.py* +%{python_sitelib}/blackd.py* +%{python_sitelib}/blib2to3 +%{python_sitelib}/black-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__/* %changelog
