Hello community, here is the log from the commit of package python-webruntime for openSUSE:Factory checked in at 2020-07-24 10:00:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-webruntime (Old) and /work/SRC/openSUSE:Factory/.python-webruntime.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-webruntime" Fri Jul 24 10:00:03 2020 rev:4 rq:822236 version:0.5.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-webruntime/python-webruntime.changes 2020-05-19 14:46:54.931869231 +0200 +++ /work/SRC/openSUSE:Factory/.python-webruntime.new.3592/python-webruntime.changes 2020-07-24 10:02:24.181779726 +0200 @@ -1,0 +2,7 @@ +Wed Jul 22 10:15:24 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- Update to 0.5.7 + * dont't use extension on non-Windows + * firefox: Fix <browser> setup to specify remoteness. + +------------------------------------------------------------------- Old: ---- webruntime-0.5.6.tar.gz New: ---- webruntime-0.5.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-webruntime.spec ++++++ --- /var/tmp/diff_new_pack.cIp021/_old 2020-07-24 10:02:26.485781871 +0200 +++ /var/tmp/diff_new_pack.cIp021/_new 2020-07-24 10:02:26.489781875 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-webruntime -Version: 0.5.6 +Version: 0.5.7 Release: 0 Summary: A python package to launch HTML5 apps in the browser or a desktop-like runtime License: BSD-2-Clause ++++++ webruntime-0.5.6.tar.gz -> webruntime-0.5.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/webruntime-0.5.6/PKG-INFO new/webruntime-0.5.7/PKG-INFO --- old/webruntime-0.5.6/PKG-INFO 2018-12-03 16:33:43.000000000 +0100 +++ new/webruntime-0.5.7/PKG-INFO 2020-05-11 11:32:41.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: webruntime -Version: 0.5.6 +Version: 0.5.7 Summary: Launch HTML5 apps in the browser or a desktop-like runtime. Home-page: http://webruntime.readthedocs.io Author: Almar Klein and contributors diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/webruntime-0.5.6/webruntime/__init__.py new/webruntime-0.5.7/webruntime/__init__.py --- old/webruntime-0.5.6/webruntime/__init__.py 2018-12-03 16:32:43.000000000 +0100 +++ new/webruntime-0.5.7/webruntime/__init__.py 2020-05-11 11:30:53.000000000 +0200 @@ -24,7 +24,7 @@ """ -__version__ = '0.5.6' +__version__ = '0.5.7' import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/webruntime-0.5.6/webruntime/_common.py new/webruntime-0.5.7/webruntime/_common.py --- old/webruntime-0.5.6/webruntime/_common.py 2018-09-11 14:37:13.000000000 +0200 +++ new/webruntime-0.5.7/webruntime/_common.py 2020-05-11 11:20:55.000000000 +0200 @@ -386,10 +386,12 @@ # Define process name, so that our window is not grouped with # Firefox, NW.js or whatever, and has a more meaningful name in the # task manager. Using sys.executable also works well when frozen. - exe_name, ext = op.splitext(op.basename(sys.executable)) - # todo: What kind of exe name? test with freezing on different OS's - exe_name = exe_name + '-ui' + ext - # exe_name = exe_name + ext + exe_name = op.basename(sys.executable) + if sys.platform.startswith("win"): + exe_name, ext = op.splitext(exe_name) + exe_name = exe_name + '-ui' + ext + else: + exe_name = exe_name + '-ui' assert runtime_exe.startswith(RUNTIME_DIR) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/webruntime-0.5.6/webruntime/_firefox.py new/webruntime-0.5.7/webruntime/_firefox.py --- old/webruntime-0.5.6/webruntime/_firefox.py 2018-09-11 14:37:13.000000000 +0200 +++ new/webruntime-0.5.7/webruntime/_firefox.py 2020-05-11 11:30:09.000000000 +0200 @@ -43,7 +43,7 @@ MaxVersion=200.* """ -MAIN_XUL = """ +MAIN_XHTML = """ <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> @@ -52,8 +52,6 @@ id="{windowid}" title="{title}" windowtype="webruntime:main" - width="640" - height="480" sizemode="{sizemode}" > <script type="application/javascript" @@ -62,6 +60,8 @@ <browser src="{url}" id="content" type="content" + remote="true" + remoteType="web" flex="1" disablehistory="true" /> </window> @@ -75,10 +75,10 @@ PREFS_JS = """ // This tells xulrunner what xul file to use -pref("toolkit.defaultChromeURI", "chrome://{name}/content/main.xul"); +pref("toolkit.defaultChromeURI", "chrome://{name}/content/main.xhtml"); // This line is needed to let window.open work -pref("browser.chromeURL", "chrome://{name}/content/main.xul"); +pref("browser.chromeURL", "chrome://{name}/content/main.xhtml"); // Set features - setting width, height, maximized, etc. here pref("toolkit.defaultChromeFeatures", "{windowfeatures}"); @@ -319,7 +319,7 @@ manifest_link = 'manifest chrome/chrome.manifest' manifest = 'content {name} content/'.format(**D) application_ini = APPLICATION_INI.format(**D) - main_xul = MAIN_XUL.format(**D) + main_xhtml = MAIN_XHTML.format(**D) main_js = MAIN_JS # No format (also problematic due to braces) prefs_js = PREFS_JS.format(**D) @@ -341,7 +341,7 @@ ('application.ini', application_ini), ('defaults/preferences/prefs.js', prefs_js), ('chrome/content/main.js', main_js), - ('chrome/content/main.xul', main_xul), + ('chrome/content/main.xhtml', main_xhtml), ]: with open(op.join(path, fname), 'wb') as f: f.write(text.encode()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/webruntime-0.5.6/webruntime/util/screenshot.py new/webruntime-0.5.7/webruntime/util/screenshot.py --- old/webruntime-0.5.6/webruntime/util/screenshot.py 2018-02-26 22:41:52.000000000 +0100 +++ new/webruntime-0.5.7/webruntime/util/screenshot.py 2020-05-11 11:20:55.000000000 +0200 @@ -21,11 +21,11 @@ ('bottom', ctypes.c_long)] class BITMAPINFOHEADER(ctypes.Structure): - _fields_ = [('biSize', DWORD), ('biWidth', LONG), ('biHeight', LONG), - ('biPlanes', WORD), ('biBitCount', WORD), - ('biCompression', DWORD), ('biSizeImage', DWORD), - ('biXPelsPerMeter', LONG), ('biYPelsPerMeter', LONG), - ('biClrUsed', DWORD), ('biClrImportant', DWORD)] + _fields_ = [('biSize', DWORD), ('biWidth', LONG), ('biHeight', LONG), + ('biPlanes', WORD), ('biBitCount', WORD), + ('biCompression', DWORD), ('biSizeImage', DWORD), + ('biXPelsPerMeter', LONG), ('biYPelsPerMeter', LONG), + ('biClrUsed', DWORD), ('biClrImportant', DWORD)] class BITMAPINFO(ctypes.Structure): _fields_ = [('bmiHeader', BITMAPINFOHEADER), ('bmiColors', DWORD * 3)] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/webruntime-0.5.6/webruntime.egg-info/PKG-INFO new/webruntime-0.5.7/webruntime.egg-info/PKG-INFO --- old/webruntime-0.5.6/webruntime.egg-info/PKG-INFO 2018-12-03 16:33:42.000000000 +0100 +++ new/webruntime-0.5.7/webruntime.egg-info/PKG-INFO 2020-05-11 11:32:40.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: webruntime -Version: 0.5.6 +Version: 0.5.7 Summary: Launch HTML5 apps in the browser or a desktop-like runtime. Home-page: http://webruntime.readthedocs.io Author: Almar Klein and contributors