1818 with :
1919 python-version : " 3.x"
2020
21- - name : install cookiecutter
22- run : python -m pip install cookiecutter
21+ - name : install uv
22+ run : >
23+ curl --no-progress-meter --location --fail
24+ --proto '=https' --tlsv1.2
25+ "https://astral.sh/uv/install.sh"
26+ | sh
2327
2428 # we need the git config setup here to make sure the subsequent git commit in each test works
2529 - name : setup fake git committer
2933
3034 - name : run template (default)
3135 run : |
32- cookiecutter --no-input -o /tmp .
36+ uvx cookiecutter --no-input -o /tmp .
3337
3438 [[ -d /tmp/python-project/src/python_project ]] || { >&2 echo "not generated?"; exit 1; }
3539
4852
4953 - name : run template (no entry point)
5054 run : |
51- cookiecutter --no-input -o /tmp . entry_point=''
55+ uvx cookiecutter --no-input -o /tmp . entry_point=''
5256
5357 [[ ! -f /tmp/python-project/python_project/__main__.py ]] || { >&2 echo "not expecting main"; exit 1; }
5458
6771
6872 - name : run template (namespace)
6973 run : |
70- cookiecutter --no-input -o /tmp . project_namespace_import=tob.r_and_e
74+ uvx cookiecutter --no-input -o /tmp . project_namespace_import=tob.r_and_e
7175
7276 [[ -d /tmp/tob-r-and-e-python-project/src/tob/r_and_e/python_project ]] || { >&2 echo "not generated?"; exit 1; }
7377
8690
8791 - name : run template (namespace, short slug)
8892 run : |
89- cookiecutter --no-input -o /tmp . project_namespace_import=tob.r_and_e "project_name=Bit Trails" project_slug=bit-trails
93+ uvx cookiecutter --no-input -o /tmp . project_namespace_import=tob.r_and_e "project_name=Bit Trails" project_slug=bit-trails
9094
9195 [[ -d /tmp/bit-trails/src/tob/r_and_e/bit_trails ]] || { >&2 echo "not generated?"; exit 1; }
9296
@@ -105,7 +109,7 @@ jobs:
105109
106110 - name : run template (no docs)
107111 run : |
108- cookiecutter --no-input -o /tmp . documentation='none'
112+ uvx cookiecutter --no-input -o /tmp . documentation='none'
109113
110114 [[ -d /tmp/python-project/src/python_project ]] || { >&2 echo "not generated?"; exit 1; }
111115 [[ ! -f /tmp/python-project/.github/workflows/docs.yml ]] || { >&2 echo "not expecting docs.yml"; exit 1; }
0 commit comments