-
Notifications
You must be signed in to change notification settings - Fork 35
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
New Project generation feature #124
Conversation
@LeStarch There's probably a lot to be said about the generated |
src/fprime/cookiecutter_templates/cookiecutter-fprime-project/hooks/post_gen_project.py
Fixed
Show resolved
Hide resolved
src/fprime/cookiecutter_templates/cookiecutter-fprime-project/hooks/post_gen_project.py
Fixed
Show resolved
Hide resolved
print(f"[WARNING] Reverted to default branch: {DEFAULT_BRANCH}") | ||
|
||
# Install Venv | ||
if "{{cookiecutter.install_venv}}" == "yes": |
Check warning
Code scanning / CodeQL
Constant in conditional expression or statement
print(f"[WARNING] Reverted to default branch: {DEFAULT_BRANCH}") | ||
|
||
# Install Venv | ||
if "{{cookiecutter.install_venv}}" == "yes": |
Check warning
Code scanning / CodeQL
Comparison of constants
Change Description
Adds in a new project cookiecutter template and the associated logic for
new --project
Checks that git is installed, generates a minimal amount of project files, then init a git repo and add F' as a git submodule.
Optionally creates a venv and sets it up with requirements.txt.
Rationale
Vastly improves user experience to getting started, enforces a good project structure instead of using
Ref/
Testing/Review Recommendations
Tested with
pip install .
with no -e.