Discussion:
[Eric] ANN: eric 18.05 released
Detlev Offenbach
2018-05-01 11:25:25 UTC
Permalink
Hi,

I just uploaded eric 18.05. It fixes some bugs and adds these new features.
* General
* added the '--disable-plugin=' option to disable plug-ins via the command line
* Code Style Checker
* added support for '# noqa' and '# NOQA' comments to suppress warnings
* extended the dialog to be able to define the number of blank lines before class
and function/method definitions
* Project
* added support for 'make' to the Project menu and run it automatically
before the main script is started (configuration option)
* Syntax Checker
* added support for '# noqa' and '# NOQA' comments to suppress
warnings
* Translator
* updated the translator URL for DeepL
* Web Browser (NG)
* improvement of the download manager
* added support for the Google Safe Browsing Lookup API (v4)
* Third Party packages
* updated coverage.py to 4.5.1
* updated pycodestyle to 2.4.0
* updated send2trash to version 1.5.0

It is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
--
*Detlev Offenbach*
***@die-offenbachs.de[1]

--------
[1] mailto:***@die-offenbachs.de
Hans-Peter Jansen
2018-05-01 19:42:38 UTC
Permalink
Hi Detlev,
Post by Detlev Offenbach
I just uploaded eric 18.05. It fixes some bugs and adds these new
features.
One buglet, wrt to packaging, I use
install.py \
-i %{buildroot}/ \
-b %{_bindir}
when building an eric rpm in fedora, but the installed
/usr/share/applications/eric6.desktop
Exec=/builddir/build/BUILDROOT/eric-18.05-1.fc29.noarch/usr/bin/eric6
Because I really want executables defined with a path in the desktop files,
here's my suggested fix:

Index: b/install.py
===================================================================
--- a/install.py
+++ b/install.py
@@ -302,7 +302,7 @@ def copyDesktopFile(src, dst, marker):
@param dst destination file name (string)
@param marker marker to be used (string)
"""
- global cfg
+ global cfg, distDir

if sys.version_info[0] == 2:
f = codecs.open(src, "r", "utf-8")
@@ -310,8 +310,12 @@ def copyDesktopFile(src, dst, marker):
f = open(src, "r", encoding="utf-8")
text = f.read()
f.close()
-
- text = text.replace("@BINDIR@", cfg['bindir'])
+
+ bindir = cfg['bindir']
+ if distDir:
+ bindir = bindir.replace(distDir + os.sep, '')
+
+ text = text.replace("@BINDIR@", bindir)
text = text.replace("@MARKER@", marker)
if marker:
t_marker = " ({0})".format(PythonTextMarkers[marker])
Index: b/eric/eric6_browser.desktop
===================================================================
--- a/eric/eric6_browser.desktop
+++ b/eric/eric6_browser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
-Exec=***@MARKER@
+Exec=@BINDIR@/***@MARKER@
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-mimearchive;
Icon=***@MARKER@
Terminal=false
Index: b/eric/eric6_webbrowser.desktop
===================================================================
--- a/eric/eric6_webbrowser.desktop
+++ b/eric/eric6_webbrowser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
-Exec=***@MARKER@
+Exec=@BINDIR@/***@MARKER@
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
Icon=***@MARKER@
Terminal=false


Cheers,
Pete
Hans-Peter Jansen
2018-05-01 20:33:29 UTC
Permalink
Post by Hans-Peter Jansen
Hi Detlev,
Post by Detlev Offenbach
I just uploaded eric 18.05. It fixes some bugs and adds these new
features.
One buglet, wrt to packaging, I use
install.py \
-i %{buildroot}/ \
-b %{_bindir}
when building an eric rpm in fedora, but the installed
/usr/share/applications/eric6.desktop
Exec=/builddir/build/BUILDROOT/eric-18.05-1.fc29.noarch/usr/bin/eric6
Because I really want executables defined with a path in the desktop files,
That way, you really get, what you asked for, and not some stray installation
from the home dir, for example...
and here's a fixed and _tested_ version (hrmpf):

Index: b/install.py
===================================================================
--- a/install.py
+++ b/install.py
@@ -302,7 +302,7 @@ def copyDesktopFile(src, dst, marker):
@param dst destination file name (string)
@param marker marker to be used (string)
"""
- global cfg
+ global cfg, distDir

if sys.version_info[0] == 2:
f = codecs.open(src, "r", "utf-8")
@@ -310,8 +310,12 @@ def copyDesktopFile(src, dst, marker):
f = open(src, "r", encoding="utf-8")
text = f.read()
f.close()
-
- text = text.replace("@BINDIR@", cfg['bindir'])
+
+ bindir = cfg['bindir']
+ if distDir:
+ bindir = bindir.replace(distDir, '')
+
+ text = text.replace("@BINDIR@", bindir)
text = text.replace("@MARKER@", marker)
if marker:
t_marker = " ({0})".format(PythonTextMarkers[marker])
Index: b/eric/eric6_browser.desktop
===================================================================
--- a/eric/eric6_browser.desktop
+++ b/eric/eric6_browser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
-Exec=***@MARKER@
+Exec=@BINDIR@/***@MARKER@
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-mimearchive;
Icon=***@MARKER@
Terminal=false
Index: b/eric/eric6_webbrowser.desktop
===================================================================
--- a/eric/eric6_webbrowser.desktop
+++ b/eric/eric6_webbrowser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
-Exec=***@MARKER@
+Exec=@BINDIR@/***@MARKER@
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
Icon=***@MARKER@
Terminal=false


You can find my openSUSE builds here, as usual:
https://build.opensuse.org/project/monitor/home:frispete:PyQt5


Cheers,
Pete
Detlev Offenbach
2018-05-02 16:40:42 UTC
Permalink
Hi,

I just committed a shorter fix for the issue. Please give it a try.

Detlev
Post by Hans-Peter Jansen
Post by Hans-Peter Jansen
Hi Detlev,
Post by Detlev Offenbach
I just uploaded eric 18.05. It fixes some bugs and adds these new
features.
One buglet, wrt to packaging, I use
install.py \
-i %{buildroot}/ \
-b %{_bindir}
when building an eric rpm in fedora, but the installed
/usr/share/applications/eric6.desktop
Exec=/builddir/build/BUILDROOT/eric-18.05-1.fc29.noarch/usr/bin/eric6
Because I really want executables defined with a path in the desktop files,
That way, you really get, what you asked for, and not some stray
installation from the home dir, for example...
Index: b/install.py
===================================================================
--- a/install.py
+++ b/install.py
@param dst destination file name (string)
@param marker marker to be used (string)
"""
- global cfg
+ global cfg, distDir
f = codecs.open(src, "r", "utf-8")
f = open(src, "r", encoding="utf-8")
text = f.read()
f.close()
-
+
+ bindir = cfg['bindir']
+ bindir = bindir.replace(distDir, '')
+
t_marker = " ({0})".format(PythonTextMarkers[marker])
Index: b/eric/eric6_browser.desktop
===================================================================
--- a/eric/eric6_browser.desktop
+++ b/eric/eric6_browser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-s
Terminal=false
Index: b/eric/eric6_webbrowser.desktop
===================================================================
--- a/eric/eric6_webbrowser.desktop
+++ b/eric/eric6_webbrowser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-s
Terminal=false
https://build.opensuse.org/project/monitor/home:frispete:PyQt5
Cheers,
Pete
--
Detlev Offenbach
***@die-offenbachs.de
Hans-Peter Jansen
2018-05-07 12:13:08 UTC
Permalink
Post by Detlev Offenbach
Hi,
I just committed a shorter fix for the issue. Please give it a try.
which works like a charm, thanks Detlev.

Cheers,
Pete
Post by Detlev Offenbach
Detlev
Post by Hans-Peter Jansen
Post by Hans-Peter Jansen
Hi Detlev,
Post by Detlev Offenbach
I just uploaded eric 18.05. It fixes some bugs and adds these new
features.
One buglet, wrt to packaging, I use
install.py \
-i %{buildroot}/ \
-b %{_bindir}
when building an eric rpm in fedora, but the installed
/usr/share/applications/eric6.desktop
Exec=/builddir/build/BUILDROOT/eric-18.05-1.fc29.noarch/usr/bin/eric6
Because I really want executables defined with a path in the desktop files,
That way, you really get, what you asked for, and not some stray
installation from the home dir, for example...
Index: b/install.py
===================================================================
--- a/install.py
+++ b/install.py
@param dst destination file name (string)
@param marker marker to be used (string)
"""
- global cfg
+ global cfg, distDir
f = codecs.open(src, "r", "utf-8")
f = open(src, "r", encoding="utf-8")
text = f.read()
f.close()
-
+
+ bindir = cfg['bindir']
+ bindir = bindir.replace(distDir, '')
+
t_marker = " ({0})".format(PythonTextMarkers[marker])
Index: b/eric/eric6_browser.desktop
===================================================================
--- a/eric/eric6_browser.desktop
+++ b/eric/eric6_browser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x
-s
Terminal=false
Index: b/eric/eric6_webbrowser.desktop
===================================================================
--- a/eric/eric6_webbrowser.desktop
+++ b/eric/eric6_webbrowser.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x
-s
Terminal=false
https://build.opensuse.org/project/monitor/home:frispete:PyQt5
Cheers,
Pete
Continue reading on narkive:
Loading...