-
Notifications
You must be signed in to change notification settings - Fork 18
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
bare cruft installs click at > 8.0.4, then syntax errors on cruft create b/c of #6
Conversation
The original error I had pointed to syntax error in the simple command to replace the dashes with underscores in a project name...a little debugging took me here.
two things fix it:
updates typer to 0.6.1 or:
keeps typer at 0.4.0 but pins click at 8.0.4 both allow the project creation to complete as expected. |
Typically I've started a cookiecutter template in a fresh virtual environment with maybe just
As for the naming convention goes, I've just implemented 2 rules :
In other cases the process should automatically fail right at the beginning if the project name is unusual. |
Yep, your comment makes perfect sense :). Ultimately, this PR just changes the README instructions for initializing a new project. I'm always going to make a virtual environment when I start a new project; but I was testing the README for new users that may or may not have the background to do so (in particular, I'm setting up a recipe for a LinkML tutorial). Since README didn't tell me to make the virtual environment, I tried doing it without. I pushed a change to the README to include virtual environment generation and a guide to doing so. (I'm going to hold off on merging until I get a successful initiation - I'm still getting errors). |
That makes complete sense and I can't thank you enough for doing this! Please let me know if I can help. |
I can not get this to work, even from a clean poetry virtual shell without specifying that click stay pinned at 8.0.4.
Alternatively, this recipe works:
It would be cool if someone else could try my recipe and see if it works for them? |
there's lots of good info here should we capture it in an issue that is only closed when satisfactorily resolved? |
generates an error in
cruft create
if the version of click installed > 8.0.4. (I am trying a bare install of cruft in prep for linkml tutorial, as a test of the recipe).I am not quite sure how to make this a requirement. For now I just added it to the README we want to go back to a slightly less helpful rewrite rule here and just fail the project creation if the naming convention is not quite right?
Another option is to have the user wrap the project creation in a virtual environment via instructions in the README.