4 ms·
Py-template: one-click Python environment v0.2.0 update
- szymonmaszke 4y agoHey HackerNews, Original post with more context on reddit here: https://www.reddit.com/r/Python/comments/yu4ynu/pytemplate_oneclick_extensive_github_actions/ https://www.reddit.com/r/Python/comments/yu4ynu/pytemplate_o... BTW. Sorry for not submitting it earlier here, my bad :(
- verdverm 4y agoInteresting, does GitHub fill in and run the template generation? How many parameters does it support? I'd recommend finding a way to have a contentful readme in the template tepo root so people know what it is and how to use it
- szymonmaszke 4y agoYes, it fills these out after using the template. Currently these are predefined and change name of the package to the name of the repository, owner to github handle etc. You can read more about it here: https://inovintell.github.io/docs-template/initialization/ https://inovintell.github.io/docs-template/initialization/ Rest of the data can be adjusted in a standard manner (e.g. by adjusting README.md, pyproject.toml or others), is there anything you would like to see? Regarding README.md - it is empty as it's easier to use and won't cluuter README.md of projects using the template, but we are likely to give a skeleton. Usage is defined on the right hand side in the linked doucmnetation.
- verdverm 4y agoI build https://github.com/hofstadter-io/hof https://github.com/hofstadter-io/hof and still prefer our create workflow (https://docs.hofstadter.io/getting-started/create/ https://docs.hofstadter.io/getting-started/create/). Far more flexible than GHT and works from anywhere. It also works as an addon to existing projects. It would be interesting to see your project as a hof creator. Similar things are on the endless examples todo list... :]
- szymonmaszke 4y agoThank you, didn't know about it! Will take a look, might solve some of our issues.
- ed_balls 4y agoShould the action substitute cookiecutter? I see `src/{{cookiecutter.repository}}` after generation
- szymonmaszke 4y agoYeah, it should substitute it after you use the template to create your own repository (as long as it doesn't have template string within the repository name). The action is run automatically, as briefly outlined in documentation here: https://inovintell.github.io/docs-template/initialization/ https://inovintell.github.io/docs-template/initialization/ If it doesn't work for you, please let us know in the issue and include the example, thank you!