Hello community, here is the log from the commit of package uranium for openSUSE:Factory checked in at 2020-06-07 21:55:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/uranium (Old) and /work/SRC/openSUSE:Factory/.uranium.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "uranium" Sun Jun 7 21:55:55 2020 rev:9 rq:812285 version:4.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/uranium/uranium.changes 2020-02-18 13:29:34.712722718 +0100 +++ /work/SRC/openSUSE:Factory/.uranium.new.3606/uranium.changes 2020-06-07 21:56:00.072805164 +0200 @@ -1,0 +2,13 @@ +Sun Jun 7 15:39:03 UTC 2020 - Stefan BrĂ¼ns <[email protected]> + +- Update to version 4.6.1 + Release notes: + * https://github.com/Ultimaker/Cura/releases/tag/4.6.1 + * https://github.com/Ultimaker/Cura/releases/tag/4.6.0 + * https://github.com/Ultimaker/Cura/releases/tag/4.5.0 +- Rebase fix-cmake-install.patch +- Drop obsolete Check-validity-of-polygon.patch +- Fix AST parsing for Python 3.8, add + 0001-Handle-indexing-on-Python-3.8-AST-string-constants-c.patch + +------------------------------------------------------------------- Old: ---- Check-validity-of-polygon.patch Uranium-4.4.1.obscpio New: ---- 0001-Handle-indexing-on-Python-3.8-AST-string-constants-c.patch Uranium-4.6.1.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ uranium.spec ++++++ --- /var/tmp/diff_new_pack.xH02pq/_old 2020-06-07 21:56:00.844807594 +0200 +++ /var/tmp/diff_new_pack.xH02pq/_new 2020-06-07 21:56:00.848807606 +0200 @@ -17,7 +17,7 @@ Name: uranium -Version: 4.4.1 +Version: 4.6.1 Release: 0 Summary: Python framework for Desktop applications License: LGPL-3.0-only @@ -26,21 +26,24 @@ Source0: Uranium-%{version}.tar.xz # X-OPENSUSE-FIX fix cmake install directory. Patch1: fix-cmake-install.patch -# PATCH-FIX-UPSTREAM -- https://github.com/Ultimaker/Uranium/commit/78fa9ab2dd8ab117.patch -Patch2: Check-validity-of-polygon.patch +# PaTCH-FIX-UPSTREAM - https://github.com/Ultimaker/Uranium/issues/619 +Patch2: 0001-Handle-indexing-on-Python-3.8-AST-string-constants-c.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libArcus-devel BuildRequires: python3-devel >= 3.4.0 # for tests: +BuildRequires: python3-Twisted +BuildRequires: python3-cryptography BuildRequires: python3-numpy BuildRequires: python3-pip BuildRequires: python3-pytest BuildRequires: python3-qt5 BuildRequires: python3-scipy BuildRequires: python3-shapely -BuildArch: noarch +Requires: python3-cryptography Recommends: python3-numpy-stl +BuildArch: noarch # No 32bit support in cura-engine anymore ExcludeArch: %ix86 %arm @@ -75,7 +78,8 @@ %check %{__python3} -m pip freeze -%{__python3} -m pytest -v +# TestHttpRequestManager has threading issues, see https://github.com/Ultimaker/Uranium/issues/594 +%{__python3} -m pytest -v -k 'not TaskManagement/TestHttpRequestManager.py' %files -f %{name}.lang %license LICENSE ++++++ 0001-Handle-indexing-on-Python-3.8-AST-string-constants-c.patch ++++++ >From d403b989621d923287a041dfa19d4a4a1b5fb9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <[email protected]> Date: Sun, 7 Jun 2020 17:36:39 +0200 Subject: [PATCH] Handle indexing on Python 3.8 AST string constants correctly String constants are represented as ast.Constant objects starting with Python 3.8. Fixes #619. --- UM/Settings/SettingFunction.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UM/Settings/SettingFunction.py b/UM/Settings/SettingFunction.py index 37e7ea52..8172ac7c 100644 --- a/UM/Settings/SettingFunction.py +++ b/UM/Settings/SettingFunction.py @@ -245,6 +245,8 @@ class _SettingExpressionVisitor(ast.NodeVisitor): def visit_Subscript(self, node: ast.Index): if type(node.value) == ast.Str: raise IllegalMethodError("Indexing on strings is not allowed") + if type(node.value) == ast.Constant and isinstance(node.value.value, str): + raise IllegalMethodError("Indexing on strings is not allowed") for child_node in ast.iter_child_nodes(node): self.visit(child_node) -- 2.26.2 ++++++ Uranium-4.4.1.obscpio -> Uranium-4.6.1.obscpio ++++++ ++++ 47611 lines of diff (skipped) ++++++ Uranium.obsinfo ++++++ --- /var/tmp/diff_new_pack.xH02pq/_old 2020-06-07 21:56:01.172808626 +0200 +++ /var/tmp/diff_new_pack.xH02pq/_new 2020-06-07 21:56:01.176808638 +0200 @@ -1,5 +1,5 @@ name: Uranium -version: 4.4.1 -mtime: 1574160646 -commit: 85d46bd6d595440a92f0096ead2400147cd221c2 +version: 4.6.1 +mtime: 1587462372 +commit: 657e3df5b038c1e363623b0021278897ae9d61a4 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.xH02pq/_old 2020-06-07 21:56:01.192808689 +0200 +++ /var/tmp/diff_new_pack.xH02pq/_new 2020-06-07 21:56:01.192808689 +0200 @@ -2,8 +2,8 @@ <service name="obs_scm" mode="disabled"> <param name="url">http://github.com/Ultimaker/Uranium.git</param> <param name="scm">git</param> - <param name="revision">v4.4.1</param> - <param name="version">4.4.1</param> + <param name="revision">4.6.1</param> + <param name="version">4.6.1</param> </service> <service mode="disabled" name="set_version" /> ++++++ fix-cmake-install.patch ++++++ --- /var/tmp/diff_new_pack.xH02pq/_old 2020-06-07 21:56:01.200808715 +0200 +++ /var/tmp/diff_new_pack.xH02pq/_new 2020-06-07 21:56:01.200808715 +0200 @@ -9,5 +9,5 @@ - DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ ) + DESTINATION ${CMAKE_MODULES_INSTALL_DIR}/ ) install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium) - install(DIRECTORY plugins DESTINATION lib${LIB_SUFFIX}/uranium) + # Detect plugins to install
