[yast-devel] New ruby create-new-package script.
Good evening to most of you on this list. I have worked on a new https://github.com/dwbenjamin/yast-devtools/tree/create-new-package script, it is not complete. I would like to know some thoughts on continuing to put time into this, here is a little more information: I am not a professional developer, so I will need some help with Licensing and such. Is there any real value to this? For me it would shorten the learning curve as the script would build the minimum directory and file structure. The idea is to reduce the time to start actually hacking in Yast, it might help external contributors. There currently isn't any docs for this tool but I will continue to work on that if this is something you think is of value. Thank you for any and all of your time, David. -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Tue, 19 May 2020 09:44:25 -0600
"David Benjamin"
Good evening to most of you on this list.
Hi David, welcome to the list.
I have worked on a new https://github.com/dwbenjamin/yast-devtools/tree/create-new-package script, it is not complete. I would like to know some thoughts on continuing to put time into this, here is a little more information:
I am not a professional developer, so I will need some help with Licensing and such.
Well, licensing is a bit tricky. What we usually do in YaST is using GPLv2 or GPLv3. This way you can use code under both, it is your pick. SUSE discourages for code that it develops ( which is not external contribution ) using "or later" as you never know what can be in next version of license and somethinng like GPLv55 - "Owner of code has to buy a beer to every user." which is not something SUSE would like to do :)
Is there any real value to this? For me it would shorten the learning curve as the script would build the minimum directory and file structure. The idea is to reduce the time to start actually hacking in Yast, it might help external contributors.
Well, there was something called skeletons which was quite similar in old YCP times. And I drop it [1] when we start using ruby with idea that all glue should be shared and not hard copied in skeleton. We succeed in some areas, but failed in others. So now for new modules it still need to create non trivial amount of files that is mainly for helpers and related services like travis, yardoc config, rake build or rubocop config. So I see some value. And I comment your pull request with some notes. But I am not sure about general approach. I worry then script can quickly grow and become serious mess. I think better approach is to have github.com/yast/yast-hello-world that is that minimal starting module and then having script like create-new-package that checkout that hello world and adapt it here and there to fit e.g. new module name. This way it will be also easier to verify that test runs, documentation is built, travis pass, code follows rubocop conventions and so on. Ideally this hello world should also follow the latest "best practices" which was issue with original skeletons, which was not updated, so it became obsolete and module that uses it was sub optimal. I hope that having it as common yast module helps with keeping it more up to date.
There currently isn't any docs for this tool but I will continue to work on that if this is something you think is of value.
See above. And maybe it can be also interesting feature if it can add missing parts as we have some old modules that do not use rubocop, travis, coveralls, rspec tests, etc. And for that modules it can be good to create that initial parts for that recommended tools, which can speed up getting module in shape.
Thank you for any and all of your time, David.
Thanks also for your time and interest. Also if you miss any information or something is not clear from current one, feel free to write us and we try to improve it ( or you can try to do it yourself ). Josef -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Dne 19. 05. 20 v 17:44 David Benjamin napsal(a):
Good evening to most of you on this list.
I have worked on a new https://github.com/dwbenjamin/yast-devtools/tree/create-new-package script, it is not complete. I would like to know some thoughts on continuing to put time into this, here is a little more information:
As I wrote in the other thread, a GitHub template repository might work better than a script...
I am not a professional developer, so I will need some help with Licensing and such.
I'm not a lawyer but for a template I'd use as permissive license as possible. We usually use GPLv2 for our modules but the template should allow creating a module with any license (or allow changing it later). So maybe MIT/BSD or even Public Domain would be better. But again, we should ask some expert about this...
Is there any real value to this? For me it would shorten the learning curve as the script would build the minimum directory and file structure. The idea is to reduce the time to start actually hacking in Yast, it might help external contributors.
I think it would be nice to have a minimal skeleton with documentation, unit tests, Travis CI, etc... The question is how more value it can bring than the already existing https://github.com/yast/yast-journalctl-tutorial tutorial module. Maybe it would be better (and easier) to change the tutorial module into a template, I do not know. I'm too long in the YaST team, for me it's quite difficult to imagine what the newcomers would like to have... -- Ladislav Slezák YaST Developer SUSE LINUX, s.r.o. Corso IIa Křižíkova 148/34 18600 Praha 8 -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (3)
-
David Benjamin
-
josef Reidinger
-
Ladislav Slezak