Addon Manager: Use Vermin to detect min Python

This commit is contained in:
Chris Hennes
2022-09-26 09:10:45 -05:00
parent f4bae7f9d3
commit b253f5acce
3 changed files with 281 additions and 109 deletions

View File

@@ -54,95 +54,6 @@
<string>Metadata</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="12" column="0">
<widget class="QLabel" name="labelIcon">
<property name="text">
<string>Icon</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="labelReadmeURL">
<property name="text">
<string>README URL</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="displayNameLineEdit">
<property name="toolTip">
<string>Displayed in the Addon Manager's list of Addons. Should not include the word &quot;FreeCAD&quot;, and must be a valid directory name on all support operating systems.</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPlainTextEdit" name="descriptionTextEdit">
<property name="toolTip">
<string>Explanation of what this Addon provides. Displayed in the Addon Manager. It is not necessary for this to state that this is a FreeCAD Addon.</string>
</property>
<property name="tabChangesFocus">
<bool>true</bool>
</property>
<property name="placeholderText">
<string>TIP: Since this is displayed within FreeCAD, in the Addon Manager, it is not necessary to take up space saying things like &quot;This is a FreeCAD Addon...&quot; -- just say what it does.</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLineEdit" name="readmeURLLineEdit">
<property name="placeholderText">
<string>(Recommended)</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="websiteURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QLineEdit" name="bugtrackerURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<layout class="QHBoxLayout" name="peopleAndLicenseshorizontalLayout"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelDisplayName">
<property name="toolTip">
<string>Displayed in the Addon Manager's list of Addons. Should not include the word &quot;FreeCAD&quot;, and must be a valid directory name on all support operating systems.</string>
</property>
<property name="text">
<string>Addon Name</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelVersion">
<property name="text">
<string>Version</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="labelDocumentationURL">
<property name="text">
<string>Documentation URL</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="labelRepoURL">
<property name="text">
<string>Repository URL</string>
</property>
</widget>
</item>
<item row="6" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
@@ -160,13 +71,6 @@
</item>
</layout>
</item>
<item row="11" column="0">
<widget class="QLabel" name="labelDiscssionURL">
<property name="text">
<string>Discussion URL</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelDescription">
<property name="toolTip">
@@ -180,17 +84,17 @@
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLineEdit" name="documentationURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
<item row="11" column="0">
<widget class="QLabel" name="labelDiscssionURL">
<property name="text">
<string>Discussion URL</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="labelWebsiteURL">
<item row="13" column="0">
<widget class="QLabel" name="labelIcon">
<property name="text">
<string>Website URL</string>
<string>Icon</string>
</property>
</widget>
</item>
@@ -219,7 +123,65 @@
</item>
</layout>
</item>
<item row="12" column="1">
<item row="3" column="0" colspan="2">
<layout class="QHBoxLayout" name="peopleAndLicenseshorizontalLayout"/>
</item>
<item row="11" column="1">
<widget class="QLineEdit" name="discussionURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="displayNameLineEdit">
<property name="toolTip">
<string>Displayed in the Addon Manager's list of Addons. Should not include the word &quot;FreeCAD&quot;, and must be a valid directory name on all support operating systems.</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLineEdit" name="documentationURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="labelReadmeURL">
<property name="text">
<string>README URL</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPlainTextEdit" name="descriptionTextEdit">
<property name="toolTip">
<string>Explanation of what this Addon provides. Displayed in the Addon Manager. It is not necessary for this to state that this is a FreeCAD Addon.</string>
</property>
<property name="tabChangesFocus">
<bool>true</bool>
</property>
<property name="placeholderText">
<string>TIP: Since this is displayed within FreeCAD, in the Addon Manager, it is not necessary to take up space saying things like &quot;This is a FreeCAD Addon...&quot; -- just say what it does.</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="labelRepoURL">
<property name="text">
<string>Repository URL</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="websiteURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
</property>
</widget>
</item>
<item row="13" column="1">
<layout class="QHBoxLayout" name="iconHorizontalLayout">
<item>
<widget class="QLabel" name="iconDisplayLabel"/>
@@ -236,13 +198,76 @@
</item>
</layout>
</item>
<item row="11" column="1">
<widget class="QLineEdit" name="discussionURLLineEdit">
<item row="8" column="0">
<widget class="QLabel" name="labelWebsiteURL">
<property name="text">
<string>Website URL</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="labelDocumentationURL">
<property name="text">
<string>Documentation URL</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QLineEdit" name="bugtrackerURLLineEdit">
<property name="placeholderText">
<string>(Optional)</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelDisplayName">
<property name="toolTip">
<string>Displayed in the Addon Manager's list of Addons. Should not include the word &quot;FreeCAD&quot;, and must be a valid directory name on all support operating systems.</string>
</property>
<property name="text">
<string>Addon Name</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelVersion">
<property name="text">
<string>Version</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLineEdit" name="readmeURLLineEdit">
<property name="placeholderText">
<string>(Recommended)</string>
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Minimum Python</string>
</property>
</widget>
</item>
<item row="12" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="minPythonLineEdit">
<property name="placeholderText">
<string>(Optional, only 3.x version supported)</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="detectMinPythonButton">
<property name="text">
<string>Detect...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>