-
Notifications
You must be signed in to change notification settings - Fork 4
Merge with Create-Python-Project #10
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
Comments
Pinging here @asbfall and @jgd10, since this issue is no longer blocked now we just released 0.1. Documentation includes directions on how to include custom templates for a given family, see: https://templates.pyansys.com/user_guide/templating.html |
Great @jorgepiloto. We will try to include at least one of our templates this week to validate the global approach. |
@jorgepiloto in your documentation https://templates.pyansys.com/user_guide/templating.html , it is stated: "Before adding a new template, it is important that you read the CONTRIBUTING section". I do not understand which CONTRIBUTING section you are referring to since there is even no ONTRIBUTING.md under this repository. |
@akaszynski @jorgepiloto You introduce the notion of a "family of templates". It was not clear to me the criteria that need to be considered to group a set of templates under the same family. For instance, by reading your documentation I initially thought that all ACE tailored templates will be grouped under the same family. Then by walking through the code I finally understand that the family there corresponds to the coding language for instance (e.g "python"). What I mean is that the convention/pattern (e.g domain-driven, audience-driven or technology-based, ...) should be documented so that any contributor clearly knows it in advance. |
You are right, @asbfall. We are working on ansys/pyansys-dev-guide#64 to have a generic "Contributing" section. Of course, projects can have a local "CONTRIBUTING" file too. Because you are experienced with the usual GitHub and development workflow, do not worry about this file for the moment.
Thanks for your feedback on this. The main idea behind "family of templates" is to allow sharing resources across various templates which have some kind of relation. Our main goal is to avoid is duplication. Most of the files in
What do you think about this approach, @asbfall? |
@jorgepiloto I think it make sense. I'm wondering whether |
I think there's a bigger issue with naming wrapped up in all of this. Migrating acpp templates: I think the issue is that our templates were developed with ACE in mind, but were made for anyone. So, there's no reason why non-ACE developers couldn't use them. They don't contain code that is not for "developers"! I think it means we should rearrange the groupings to be a bit more communicative. My goal going into this isn't to avoid code duplication so much as it is to produce a tool that provides a good user experience. So I'd propose more descriptive names. Instead of The trouble with "ace" and "pyansys" is that they don't communicate much to the user about what they're getting. What's the difference between the This has become a bit long so I'd be happy to make a new ticket about this if it would be preferred. |
I think the documentation has this covered: https://templates.pyansys.com/user_guide/usage.html#listing-available-templates |
I think it helps but I don't think it's enough. I think we should be naming our templates such that people need to refer to the documentation as little as possible. That would produce the most streamlined UX possible. If we use vague and general terms like "ACE" and "pyansys" (they do not have rigorous definitions that are widely used) as our main descriptors, we will have to take up documentation space explaining what those mean (and if we don't people will wonder), when people really just need to know "this is a flask-based rest-api template" or "this is a template for a python package". It might mean slightly longer template names but I think it would be worth it. If we are building templates specifically for "ACE" or "pyansys", then I think they should have names that represent their purpose rather than who is going to use them and if there is a significant, fundamental, discrepancy between the templates that we develop for ACE and you develop for pyansys, then we should identify what this is and potentially include descriptors for THAT in the names. You might say "well we develop our templates for people who want to create new pyansys products" and sure that's fine, but then you have a I think it only matters to us whether it's pyansys or ace, but I doubt our users are bothered about that. They will just want the right tool for the right job and anything we put in their way of working out what that tool is, is a hindrance. So some suggestions:
|
This was finally merged in #45 and version 0.2 was released. We can later discuss the naming convention in a private meeting. |
Uh oh!
There was an error while loading. Please reload this page.
We need to implement the following features from https://github.com/pyansys/create-python-project:
pipx
common
directory to share common files across multiple templates. This will avoid duplication ofLICENSE
,CONTRIBUTING
, etc.Finally, we should discuss if we should be limiting these templates to just Python, or expand it into C#, C++, JavaScript, etc.
The text was updated successfully, but these errors were encountered: