Skip to content

Commit 0aa51ab

Browse files
committed
bump to poetry 2
1 parent 71d6c04 commit 0aa51ab

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/pyproject.toml.jinja

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
[tool.poetry]
1+
[project]
22
name = "{{project_name | lower | replace(' ', '-') | replace('_', '-')}}"
33
version = "0.1.0"
44
description = "{{project_description}}"
5-
authors = ["{{author_name}} <{{author_email}}>"]
65
readme = "README.md"
7-
repository = "https://github.com/{{repo_username}}/{{repo_name}}"
8-
packages = [{ include = "{{project_name}}", from = "src" }]
6+
authors = [{ name = "{{author_name}}", email = "{{author_email}}" }]
7+
requires-python = ">=3.10,<4.0"
8+
dependencies = []
9+
urls.repository = "https://github.com/{{repo_username}}/{{repo_name}}"
910
{%- if private %}
1011
classifiers = ["Private :: Do Not Upload"]
1112
{%- endif %}
1213
13-
[tool.poetry.dependencies]
14-
python = "^3.10"
15-
1614
[tool.poetry.group.dev.dependencies]
1715
{% if docs -%}
1816
mkdocs = ">=1"
1917
mkdocs-material = ">=9"
2018
{% endif -%}
2119
mypy = ">=1"
22-
pre-commit = ">=3"
20+
pre-commit = ">=4"
2321
pytest = ">=8"
24-
ruff = ">=0.6"
22+
ruff = ">=0.9"
2523
taskipy = ">=1"
2624

2725
[tool.taskipy.tasks]
@@ -44,5 +42,5 @@ ignore_missing_imports = true
4442
testpaths = ["tests"]
4543

4644
[build-system]
47-
requires = ["poetry-core>=1.0"]
45+
requires = ["poetry-core>=2.0"]
4846
build-backend = "poetry.core.masonry.api"

src/{% if docker %}Dockerfile{% endif %}.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /app
55
FROM base AS builder
66

77
# Install poetry
8-
RUN pip install --no-cache-dir poetry~=1.6 \
8+
RUN pip install --no-cache-dir poetry~=2.0 \
99
&& poetry config virtualenvs.in-project true
1010

1111
# Install deps

0 commit comments

Comments
 (0)