-
Notifications
You must be signed in to change notification settings - Fork 19
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 cookiecutter #29
New cookiecutter #29
Conversation
I wanted to remind you that this PR has been open for over a month. Before merging it, I would appreciate a thorough review from anyone. |
Sorry for the radio silence @CodeWithEmad . Reviewing this is in my backlog. |
No worries. Thanks in advance. |
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 expected this would be a big review... which is why I unconsciously postponed it as much as I could 😓 sorry about that!
Despite my many comments, I agree with the general direction, and I think it's going to be a great improvement. Thanks a lot Emad!
{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/plugin.py
Outdated
Show resolved
Hide resolved
Thanks for the review, @regisb, and sorry for the late response. I was on a vacation. Will look into the comments as soon as I get the chance. |
1d8e715
to
6cde338
Compare
That took more than I expected. |
This is how pkg_resources should be handled: |
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 looks good to me, but I'd like to have someone else's opinion :) @kdmccormick?
We currently support 4 types of licenses: AGPLv3, Apache 2.0, BSDv3, and MIT. if the user selects "Not open source", then this file will be removed in the post_generate hook.
- overhang domain changed to edly. - cookiecutter document changed to main page - using code-blocks for better readability - followed the openedx doc conventions for rst files
with these we can sanitize our data before and modify files after cookiecutter was generated.
as of tutor >=17.0.0, there's no need to run `tutor config save` after enable/disable a plugin.
6cde338
to
0d44dcc
Compare
I've included the |
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.
🚀🚀🚀
CHANGELOG.md
Outdated
- [Improvement] Happy New Year! | ||
Fix compatibility issue with Python 3.12 by removing dependency on `pkg_resources`. | ||
Cookiecutter hooks to check input data validation. | ||
Various licenses support. | ||
New documentation format. | ||
GitHub Actions for new plugins. | ||
`dev` mode added to extra entries. | ||
(by @CodeWithEmad). |
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.
- [Improvement] Happy New Year! | |
Fix compatibility issue with Python 3.12 by removing dependency on `pkg_resources`. | |
Cookiecutter hooks to check input data validation. | |
Various licenses support. | |
New documentation format. | |
GitHub Actions for new plugins. | |
`dev` mode added to extra entries. | |
(by @CodeWithEmad). | |
- [Improvement] Happy New Year! | |
- Fix compatibility issue with Python 3.12 by removing dependency on `pkg_resources`. | |
- Cookiecutter hooks to check input data validation. | |
- Various licenses support. | |
- New documentation format. | |
- GitHub Actions for new plugins. | |
- `dev` mode added to extra entries. | |
(by @CodeWithEmad). |
Without the bullet points, this will all render on one line.
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.
Sharp eyes 👀
fixed.
4f5458e
to
17dab1d
Compare
- ignore all dirs starts with tutor-contrib- - __pycache__ added
The long_description_content_type parameter is added to the setup() function to explicitly specify that the long description content is in reStructuredText format.
pkg_resources is a package that is unavailable in python 3.12, unless setuptools is explicitely installed. Turns out, there are replacement functions coming from importlib_resources, which can be obtained from the importlib-resources pypi package. This package will be installed with tutor starting from 17.0.2.
17dab1d
to
bcfc62d
Compare
Should I consider closing #7 after this got merged? |
Indeed we should consider that closed. Thanks Emad! |
Awesome, so I merge this if there's nothing else to add. @DawoudSheraz |
Hi, I will add my review today. Sorry for the delay on my end. |
@DawoudSheraz just a friendly reminder. I don't wanna keep this PR open any longer. |
Thanks again for your work Emad :) |
Anytime, @regisb. |
This includes several improvements to the overall functionality of the cookiecutter:
dev
mode to extra entries.This is a result of a couple of sleepless nights. I wanted to explore all the features of the Cookiecutter package. Feel free to experiment and add more elements to it.
Close #7 #30