Skip to content

Commit 8e1657c

Browse files
committed
Fixed non-templating of python version and minor fixes in uv usage
1 parent 5887878 commit 8e1657c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

{{cookiecutter.project_name}}/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.11"
11+
python: "{{cookiecutter.python_version}}"
1212
commands:
1313
- mkdir -p $READTHEDOCS_OUTPUT/html
1414
- curl -sSL https://install.python-poetry.org | python -

{{cookiecutter.project_name}}/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ WORKDIR /workspaces/{{cookiecutter.project_name}}
5959
COPY pyproject.toml /workspaces/{{cookiecutter.project_name}}/
6060

6161
# Create virtual environment and install dependencies
62+
RUN uv venv
6263
RUN uv pip install -e ".[dev]"
6364
ENV PATH="/workspaces/{{cookiecutter.project_name}}/.venv/bin:${PATH}"
6465

{{cookiecutter.project_name}}/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ poetry install --with dev
2222
```{% elif cookiecutter.package_manager == 'pixi' %}```shell
2323
pixi install
2424
```{% elif cookiecutter.package_manager == 'uv' %}```shell
25+
uv venv
2526
uv pip install -e ".[dev]"
2627
source .venv/bin/activate
2728
```{% endif %}

{{cookiecutter.project_name}}/project_config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description = ""
55
authors = ["{{cookiecutter.author}} <{{cookiecutter.author_email}}>"]
66
license = "MIT"
77
readme = "README.md"
8-
python_version = "3.11"
8+
python_version = "{{cookiecutter.python_version}}"
99
homepage = "{{cookiecutter.project_url}}"
1010
classifiers = [
1111
"License :: OSI Approved :: MIT License",
12-
"Programming Language :: Python :: 3.11",
12+
"Programming Language :: Python :: {{cookiecutter.python_version}}",
1313
]
1414
package_dir = { include = "{{cookiecutter.package_name}}", from = "src" }
1515
exclude = ["test/*", "examples/*", "docs/*"]

0 commit comments

Comments
 (0)