Skip to content

Commit db12ca0

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

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/pyproject.toml.jinja

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
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}}>"]
5+
authors = [{ name = "{{author_name}}", email = "{{author_email}}" }]
66
readme = "README.md"
7-
repository = "https://github.com/{{repo_username}}/{{repo_name}}"
8-
packages = [{ include = "{{project_name}}", from = "src" }]
7+
requires-python = ">=3.10,<4.0"
8+
urls.repository = "https://github.com/{{repo_username}}/{{repo_name}}"
99
{%- if private %}
1010
classifiers = ["Private :: Do Not Upload"]
1111
{%- endif %}
1212
13-
[tool.poetry.dependencies]
14-
python = "^3.10"
15-
1613
[tool.poetry.group.dev.dependencies]
1714
{% if docs -%}
1815
mkdocs = ">=1"
1916
mkdocs-material = ">=9"
2017
{% endif -%}
2118
mypy = ">=1"
22-
pre-commit = ">=3"
19+
pre-commit = ">=4"
2320
pytest = ">=8"
24-
ruff = ">=0.6"
21+
ruff = ">=0.9"
2522
taskipy = ">=1"
2623

2724
[tool.taskipy.tasks]
@@ -44,5 +41,5 @@ ignore_missing_imports = true
4441
testpaths = ["tests"]
4542

4643
[build-system]
47-
requires = ["poetry-core>=1.0"]
44+
requires = ["poetry-core>=2.0"]
4845
build-backend = "poetry.core.masonry.api"

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

Lines changed: 1 addition & 1 deletion
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)