collective / cookiecutter-plone-distribution

Generator for Plone Distribution packages
MIT License
1 stars 0 forks source link

Won't work with python3.12 #6

Open avoinea opened 5 days ago

avoinea commented 5 days ago
Cookiecutter Plone Distribution 
================================================================================

Sanity checks
--------------------------------------------------------------------------------
  [1/2] Python: Python version is not supported: Got 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 10:07:17) [Clang 14.0.6 ]
  [2/2] git: ✓
Pre-Prompt Hook script failed
stevepiercy commented 5 days ago

@avoinea what happens if you edit this to include 3.12? https://github.com/collective/cookiecutter-plone-distribution/blob/main/hooks/pre_prompt.py#L42 It might fail, but at least it will get over the initial hurdle.

avoinea commented 5 days ago

Actually it worked with:

pipx run --python $(which python3.11) cookiecutter gh:collective/cookiecutter-plone-distribution

We should add that to the README.

avoinea commented 5 days ago

Also with:

pipx run --python=python3.11 cookiecutter gh:collective/cookiecutter-plone-distribution
stevepiercy commented 5 days ago

That uses Python 3.11, not 3.12, as described in the issue title. We should still verify whether it would work with 3.12.

Nonetheless, we should update the readme with actual supported Python versions and how to specify a supported Python version with --python=python3.X.