Skip to content
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

fix(template): typo of jinja2 minus and package name #12

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tai271828
Copy link
Contributor

"ensurepath" seems non-existent and also not used. Besides, the minus of endif should not remove the preceding space of invoke.

"ensurepath" seems non-existent and also not used. Besides, the minus of endif should not remove the preceding space of invoke.
@tai271828
Copy link
Contributor Author

This site will help you try different jinja2 minus syntax http://jinja.quantprogramming.com/ It's useful for me to confirm the typo.

@@ -24,8 +24,7 @@ git checkout -b [YOUR FEATURE]

```sh
python -m pip install pipx
python -m pipx install {% if cookiecutter.dependency_management_tool == 'pipenv' -%}pipenv{%- elif cookiecutter.dependency_management_tool == 'poetry' -%}poetry{% endif -%} invoke
python -m pipx ensurepath
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean this line is not necessary? But in the documentation of pipx, it seems to be needed if you use it for the first time.

https://github.com/pipxproject/pipx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, it seems that I misunderstood something. Let me re-walk through the whole process to confirm its dependency. Thanks for the feedback!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm I have no luck to install poetry with pipx.

ubuntu-mate 18.04 shows

$ pipx --version
0.16.0.0
$ pipx install poetry

No apps associated with package poetry or its dependencies. If you are attempting to install a library,
pipx should not be used. Consider using pip or a similar tool instead.

Would you mind showing me your output of pipx --version and pipx install poetry?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm... interesting

This how it looks like when I install it through pipx.

$ pipx --version
0.15.5.1
$ pipx install poetry
⚠️  Note: poetry was already on your PATH at ....../.pyenv/shims/poetry
  installed package poetry 1.1.4, Python 3.8.5
  These apps are now globally available
    - doesitcache
    - poetry
    - virtualenv
done! ✨ 🌟 ✨

It works even after I upgrade pipx to 0.16.0.0

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tai271828 Is there any update on this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, QQ. I did not work on this anymore. It's in my wish list of task. Feel free to close the pull request.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries 🙂 Let's make it a draft one so that I know I don't need to review it at this moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! Draft is a good idea so we could keep the track.

Yeah I have had dug into this issue and found it is a rabbit hole : (

@Lee-W
Copy link
Owner

Lee-W commented Jan 31, 2021

This site will help you try different jinja2 minus syntax http://jinja.quantprogramming.com/ It's useful for me to confirm the typo.

This one is awesome!!! Wish I know it earlier. Thanks for your sharing!

@Lee-W Lee-W marked this pull request as draft May 8, 2021 00:50
@Lee-W Lee-W force-pushed the master branch 2 times, most recently from 73cb2c2 to f86de41 Compare August 19, 2021 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants