Open luzpaz opened 4 years ago
using gitpthon to test untracked files
(Pdb) p gitrepo.status()
'On branch master\nYour branch is up to date with \'origin/master\'.\n\nUntracked files:\n (use "git add <file>..." to include in what will be committed)\n\t__pycache__/\n\nnothing added to commit but untracked files present (use "git add" to track)'
gitrepo = git.Git(clonedir)
try:
# gitrepo.fetch()
gitrepo.status()
except:
print("Unable to fetch git updates for repo",repo[0])
else:
# 'git status' will tell us if we need to 'git pull'
# note: print(gitrepo.status()) for troubleshooting
if "Untracked files" in gitrepo.status():
print('\t' + repo[0] + ' ' + 'has untracked changes. Notify author')
It seems that some Addons are being bundled with pycache/ directories and such. It gave me the idea for a script of a sort that checks all addons against a checklist.
Actually, why reinvent the wheel ? There is a checklist already in the Issue template for adding a workbench:
Dependencies
README.md
LICENCE
file (Note: FreeCAD uses LGPL3, most people choose that or GPL3)Misc.
If so, where?
FreeCAD/src/Mod/AddonManager/Resources/Icons
(Note the formatting of the file name is important).FreeCAD/src/Mod/AddonManager/Resources/AddonManager.qrc
and alphabetically place the path (in the previous step) to the icon of your workbench in the list.Housekeeping
codespell
. We recommend running:codespell -q 3
Github Related
FreeCAD
Workbench
Addon
Note: if your addon/workbench code doesn't reside on Github, please state the address where it is mentioned