Hello community,

here is the log from the commit of package python-black for openSUSE:Factory 
checked in at 2019-11-11 21:35:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-black (Old)
 and      /work/SRC/openSUSE:Factory/.python-black.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-black"

Mon Nov 11 21:35:24 2019 rev:5 rq:747363 version:19.10b0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-black/python-black.changes        
2019-06-14 20:24:28.722799368 +0200
+++ /work/SRC/openSUSE:Factory/.python-black.new.2990/python-black.changes      
2019-11-11 21:35:25.584484023 +0100
@@ -1,0 +2,8 @@
+Mon Nov 11 14:14:38 UTC 2019 - Ondřej Súkup <[email protected]>
+
+- update to 19.10b0
+- add fix-tests.patch to avoid problem during test collection
+- dont distribute 'blackd' as missing deps
+ * no obvious changelog
+
+-------------------------------------------------------------------

Old:
----
  black-19.3b0.tar.gz

New:
----
  black-19.10b0.tar.gz
  fix-tests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-black.spec ++++++
--- /var/tmp/diff_new_pack.o4lMr6/_old  2019-11-11 21:35:26.328484761 +0100
+++ /var/tmp/diff_new_pack.o4lMr6/_new  2019-11-11 21:35:26.336484768 +0100
@@ -19,28 +19,42 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-black
-Version:        19.3b0
+Version:        19.10b0
 Release:        0
 Summary:        A code formatter written in, and written for Python
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/ambv/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 blackf
+#BuildRequires:  %{python_module aiohttp-cors}
 BuildRequires:  %{python_module appdirs}
 BuildRequires:  %{python_module attrs >= 18.1.0}
 BuildRequires:  %{python_module base >= 3.6}
 BuildRequires:  %{python_module click >= 6.5}
+BuildRequires:  %{python_module mypy_extensions}
+BuildRequires:  %{python_module pathspec}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module regex}
+BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module toml >= 0.9.4}
+BuildRequires:  %{python_module typed-ast}
+BuildRequires:  %{python_module typing_extensions}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-aiohttp >= 3.3.2
+# TODO: needed for blackd
+#Requires:       python-aiohttp-cors
 Requires:       python-appdirs
 Requires:       python-attrs >= 18.1.0
 Requires:       python-click >= 6.5
+Requires:       python-mypy_extensions
+Requires:       python-regex
 Requires:       python-toml >= 0.9.4
+Requires:       python-typed-ast
+Requires:       python-typing_extensions
 BuildArch:      noarch
 %python_subpackages
 
@@ -57,6 +71,7 @@
 
 %prep
 %setup -q -n black-%{version}
+%patch0 -p1
 rm -rf %{pypi_name}.egg-info
 
 %build
@@ -65,6 +80,8 @@
 %install
 %python_install
 %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
@@ -73,7 +90,7 @@
 %files %{python_files}
 %doc README.md
 %python3_only %{_bindir}/black
-%python3_only %{_bindir}/blackd
+#%%python3_only %%{_bindir}/blackd
 %license LICENSE
 %{python_sitelib}/*
 

++++++ black-19.3b0.tar.gz -> black-19.10b0.tar.gz ++++++
++++ 99880 lines of diff (skipped)

++++++ fix-tests.patch ++++++
Index: black-19.10b0/tests/test_black.py
===================================================================
--- black-19.10b0.orig/tests/test_black.py
+++ black-19.10b0/tests/test_black.py
@@ -20,10 +20,11 @@ from click.testing import CliRunner
 import black
 from black import Feature, TargetVersion
 
+from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop
+from aiohttp import web
+
 try:
     import blackd
-    from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop
-    from aiohttp import web
 except ImportError:
     has_blackd_deps = False
 else:

Reply via email to