-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Migrated to copier #34
Conversation
Thanks for taking the initiative to put up this PR early! I think it will be easier to review once we merge #29 so that the diff gets cleaner (and once you add the template generation tests using |
template/{% if ci == 'gitlab' %}.gitlab-ci.yml{% endif %}.jinja
Outdated
Show resolved
Hide resolved
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
315a5ee
to
6ed4eb8
Compare
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.
Thanks, @santacodes! Could you please fix the conflicts? Happy to approve once the conflicts and the previous conversations are addressed.
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
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.
Looks good to me, thanks!
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.
Looks great now, thanks, @santacodes!
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
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.
Looks good @santacodes, this one was fast 🚀
You've tested this locally too, right?
Yes I did test it locally. |
This is a follow-up on PR #29, the template has been completely migrated to
copier
as copier is under active development and is better maintained thancookiecutter
.While migrating to
copier
I faced some issues and thought I would mention them here, firstly in thecopier.yml
(default configuration file) we cannot add our variables or constants and set their values like we did forcookiecutter
for__project_slug
and__year
. To tackle this problem, I added a prompt forproject_slug
and replaced the__year
instances with time labels derived fromjinja2_time.TimeExtension
.As of now the generated project using
copier
works well and the tests within the generated project are all set, though I have yet to add the template generation tests. For tests I would be usingpytest-copie
linked here which is almost the same aspytest-cookies
that we are currently using.Usage
To generate a project in a directory called
test/
you would need to perform -Additional Notes
I will be working on these template generation test cases with all the
build-backends
and also thecli
. The CLI would wrap everything and just a single command would set up the working directory with project files.Sub-task #26