-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some metadata when packaging in the metadata.txt #119
Conversation
Why not? But maybe we should use a different section than the
I don't know how works the documentation update but it sounds strange to update it roughly for an external need (3rd party library I mean and mainly for your projects purposes) without proposing an official evolution, no? |
I don't have a strong opinion. Maybe I just tried to work in this change. But to have another section and to use it nicely, I need to use
I totally understand your question. Generating ZIP from commits (without any tag, so not a proper version in the metadata.txt) is an issue for me. The QGIS plugin manager might lost track of this plugin if the developer is not careful. |
Another approach would be to fill the fields if they are found in the metadata. Would that be enough? |
Yes indeed, like we do for |
Done. It will be in the metadata.txt only if the keys are there before. |
I've been thinking and my answer is definitely yes (sorry). I'm really convinced this is a bad idea to freely modify the metadata.txt general section from a third-party tool like qgis-plugin-ci. PEPs about how extrnal tools have to store their specific settings in setup.cfg or pyproject.toml are good readings and bases to argue in favor of a dedicated section. As discussed with @3nids about the other topic of translations management, I think we should make qgis-plugin-ci as agnostic as possible. |
Yes, you are free to do it in the section you want. The PR is only replacing existing line, whatever the section. I will rebase for the release. |
Okay, this seems to be a "compromis". I'm still afraid that the project becomes too hard to maintain or to understand of what it does exactly with plugins files... I suggest a proper section in documentation at least. |
Ok, I have added the notes @Guts |
Thanks you for taking my concerns in account 🙏! |
I would like to add some metadata when packaging the plugin such as datetime, commit ID and commit number :
These are not official in QGIS, but I can make a PR in the documentation to include them in the file https://github.com/qgis/QGIS-Documentation/blob/master/docs/pyqgis_developer_cookbook/plugins/plugins.rst#plugin-metadata