Adjusted code for eric7 24.10 and newer. eric7 release-10.4.1

Thu, 24 Oct 2024 15:04:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 24 Oct 2024 15:04:19 +0200
branch
eric7
changeset 214
24bfb512ce15
parent 213
7a02f51cafd5
child 215
dbbb041d5114

Adjusted code for eric7 24.10 and newer.

AssistantEric/APIsManager.py file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PluginAssistantEric.py file | annotate | diff | comparison | revisions
PluginAssistantEric.zip file | annotate | diff | comparison | revisions
PluginEricAssistant.epj file | annotate | diff | comparison | revisions
--- a/AssistantEric/APIsManager.py	Wed Jan 03 16:49:57 2024 +0100
+++ b/AssistantEric/APIsManager.py	Thu Oct 24 15:04:19 2024 +0200
@@ -15,13 +15,19 @@
 with contextlib.suppress(ImportError):
     from PyQt6.QtSql import QSqlDatabase, QSqlQuery
 
-from eric7 import Globals, Preferences, Utilities
+from eric7 import Preferences, Utilities
 from eric7.DocumentationTools.APIGenerator import APIGenerator
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.QScintilla import Lexers
 from eric7.Utilities import ModuleParser
 
 try:
+    from eric7.EricUtilities import getConfigDir
+except ImportError:
+    # backward compatibility for eric < 24.10
+    from Globals import getConfigDir
+
+try:
     from eric7.QScintilla.Editor import EditorIconId
 
     AttributeID = EditorIconId.Attribute
@@ -750,7 +756,7 @@
                 self.__project.getProjectManagementDir(), "project-apis.db"
             )
         else:
-            apisDir = os.path.join(Globals.getConfigDir(), "APIs")
+            apisDir = os.path.join(getConfigDir(), "APIs")
             if not os.path.exists(apisDir):
                 os.makedirs(apisDir)
             if self.__projectType:
--- a/ChangeLog	Wed Jan 03 16:49:57 2024 +0100
+++ b/ChangeLog	Thu Oct 24 15:04:19 2024 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 10.4.1:
+- adjusted code for eric7 24.10 and newer
+
 Version 10.4.0:
 - bug fixes
 - adjusted some code for eric7 24.2 and newer
--- a/PluginAssistantEric.py	Wed Jan 03 16:49:57 2024 +0100
+++ b/PluginAssistantEric.py	Thu Oct 24 15:04:19 2024 +0200
@@ -20,7 +20,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "10.4.0"
+version = "10.4.1"
 className = "AssistantEricPlugin"
 packageName = "AssistantEric"
 shortDescription = "Alternative autocompletion and calltips provider."
Binary file PluginAssistantEric.zip has changed
--- a/PluginEricAssistant.epj	Wed Jan 03 16:49:57 2024 +0100
+++ b/PluginEricAssistant.epj	Thu Oct 24 15:04:19 2024 +0200
@@ -1,7 +1,7 @@
 {
   "header": {
     "comment": "eric project file for project PluginEricAssistant",
-    "copyright": "Copyright (C) 2023 Detlev Offenbach, detlev@die-offenbachs.de"
+    "copyright": "Copyright (C) 2024 Detlev Offenbach, detlev@die-offenbachs.de"
   },
   "project": {
     "AUTHOR": "Detlev Offenbach",
@@ -27,6 +27,7 @@
           "OverloadDecorators": [
             "overload"
           ],
+          "RespectTypeIgnore": false,
           "SuppressDummyArgs": false,
           "SuppressNoneReturning": false
         },
@@ -68,7 +69,7 @@
         "DocstringType": "eric_black",
         "EnabledCheckerCategories": "C, D, E, I, L, M, NO, N, Y, U, W",
         "ExcludeFiles": "*/Ui_*.py, */*_rc.py",
-        "ExcludeMessages": "C101,E203,E265,E266,E305,E402,M201,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,U200,W293,W503,Y401,Y402",
+        "ExcludeMessages": "M201,C101,E203,E265,E266,E305,E402,M251,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,U200,W293,W503,Y401,Y402",
         "FixCodes": "",
         "FixIssues": false,
         "FutureChecker": "",
@@ -240,6 +241,7 @@
         "skip-string-normalization": false,
         "source": "project",
         "target-version": [
+          "py313",
           "py312",
           "py311",
           "py310",
@@ -359,4 +361,4 @@
     "VCSOTHERDATA": {},
     "VERSION": ""
   }
-}
\ No newline at end of file
+}

eric ide

mercurial