Skip to content

Commit 6372b04

Browse files
committed
Fix pyproject.toml for poetry 2
1 parent 3f62208 commit 6372b04

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
[tool.poetry]
1+
[project]
22
name = "ynab"
33
version = "1.3.1"
44
description = "Official Python client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.74.0"
5-
authors = ["YNAB"]
5+
authors = [
6+
{name="YNAB",email="[email protected]"}
7+
]
68
license = "Apache-2.0"
79
readme = "README.md"
8-
repository = "https://github.com/ynab/ynab-sdk-python"
910
keywords = ["finance", "ynab", "budgeting", "api"]
10-
include = ["ynab/py.typed"]
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.8"
@@ -25,10 +25,9 @@ flake8 = ">= 4.0.0"
2525
types-python-dateutil = ">= 2.8.19.14"
2626
mypy = ">= 1.5"
2727

28-
2928
[build-system]
30-
requires = ["setuptools"]
31-
build-backend = "setuptools.build_meta"
29+
requires = ["poetry-core>=2.0.0,<3.0.0"]
30+
build-backend = "poetry.core.masonry.api"
3231

3332
[tool.pylint.'MESSAGES CONTROL']
3433
extension-pkg-whitelist = "pydantic"

templates/pyproject.mustache

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
[tool.poetry]
1+
[project]
22
name = "{{{packageName}}}"
33
version = "{{{packageVersion}}}"
44
description = "{{packageDescription}} Generated from server specification version {{version}}"
5-
authors = ["YNAB"]
5+
authors = [
6+
{name="YNAB",email="[email protected]"}
7+
]
68
license = "Apache-2.0"
79
readme = "README.md"
8-
repository = "https://github.com/ynab/ynab-sdk-python"
910
keywords = ["finance", "ynab", "budgeting", "api"]
10-
include = ["{{packageName}}/py.typed"]
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.8"
@@ -36,10 +36,9 @@ flake8 = ">= 4.0.0"
3636
types-python-dateutil = ">= 2.8.19.14"
3737
mypy = ">= 1.5"
3838

39-
4039
[build-system]
41-
requires = ["setuptools"]
42-
build-backend = "setuptools.build_meta"
40+
requires = ["poetry-core>=2.0.0,<3.0.0"]
41+
build-backend = "poetry.core.masonry.api"
4342
4443
[tool.pylint.'MESSAGES CONTROL']
4544
extension-pkg-whitelist = "pydantic"

0 commit comments

Comments
 (0)