Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-blue for openSUSE:Factory checked in at 2022-04-25 23:35:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-blue (Old) and /work/SRC/openSUSE:Factory/.python-blue.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-blue" Mon Apr 25 23:35:05 2022 rev:5 rq:972466 version:0.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-blue/python-blue.changes 2022-03-19 22:23:00.988959001 +0100 +++ /work/SRC/openSUSE:Factory/.python-blue.new.1538/python-blue.changes 2022-04-25 23:35:09.378385268 +0200 @@ -1,0 +2,6 @@ +Sat Apr 23 18:57:58 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Update unpin-tomli.patch to work with the current black package. +- Skip failing tests (gh#grantjenks/blue#72) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-blue.spec ++++++ --- /var/tmp/diff_new_pack.Z2ep3a/_old 2022-04-25 23:35:09.830385901 +0200 +++ /var/tmp/diff_new_pack.Z2ep3a/_new 2022-04-25 23:35:09.834385907 +0200 @@ -79,7 +79,8 @@ %python_clone -a %{buildroot}%{_bindir}/blue %check -%pytest +# gh#grantjenks/blue#72 +%pytest -k 'not (test_good_dirs or test_bad_dirs)' %post %python_install_alternative blue ++++++ unpin-tomli.patch ++++++ --- /var/tmp/diff_new_pack.Z2ep3a/_old 2022-04-25 23:35:09.858385940 +0200 +++ /var/tmp/diff_new_pack.Z2ep3a/_new 2022-04-25 23:35:09.874385963 +0200 @@ -1,8 +1,22 @@ -Index: blue-0.8.0/blue/__init__.py -=================================================================== ---- blue-0.8.0.orig/blue/__init__.py -+++ blue-0.8.0/blue/__init__.py -@@ -263,8 +263,8 @@ def parse_pyproject_toml(path_config: st +--- + blue/__init__.py | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +--- a/blue/__init__.py ++++ b/blue/__init__.py +@@ -15,7 +15,10 @@ import black.strings + from black import Leaf, Path, click, token + from black.cache import user_cache_dir + from black.comments import ProtoComment, make_comment +-from black.files import tomli ++try: ++ from black.files import tomli ++except ImportError: ++ from black.files import tomllib as tomli + from black.linegen import LineGenerator as BlackLineGenerator + from black.lines import Line + from black.nodes import ( +@@ -263,8 +266,8 @@ def parse_pyproject_toml(path_config: st If parsing fails, will raise a tomli.TOMLDecodeError """ @@ -13,5 +27,4 @@ config = pyproject_toml.get("tool", {}).get("blue", {}) return {k.replace("--", "").replace("-", "_"): v for k, v in config.items()} -(No newline at EOF)