-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added Pkg and CI Template Creation #10
base: master
Are you sure you want to change the base?
Conversation
scripts/create.py
Outdated
try: | ||
import copier | ||
except ImportError: | ||
print("GitPython is required! Install using 'pip3 install --user copier'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work on Ubuntu 24. Is there no system package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Unfortunately, there is no apt package ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rosdep should also support pip packages, might make sense to check if there is already a key and if not make a PR so it can be listed in the dependencies of the package and installed automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created a pull request for adding copier to rosdep.
scripts/create.py
Outdated
import copier | ||
except ImportError: | ||
print( | ||
"Copier is required! Install using 'pip3 install copier --break-system-packages'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you drop the --user
?
scripts/create.py
Outdated
help="CI type", | ||
) | ||
parser.add_argument( | ||
"--add_pre_commit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only argument using _ in its name.
Allows the creation of cpp_pkgs, python_pkgs, and msgs_pkgs using a copier.
Additionally, you can create CI Templates for github and gitlab.
Usage:
hector create
to create pkgs directly in the workspace src folderhector create -d <repository_name>
to create Pkgs / Continous Integration Pipelines in a repository in the src folderCopier will lead you through a questionnaire, allowing you to select further options easily.
The author name and email are extracted from the global git config.