Skip to content

Commit a0bb951

Browse files
committed
Switch one fixture to using the [project] table
So we have coverage of both the old and new style dependency table syntax.
1 parent 1a7dcd9 commit a0bb951

File tree

4 files changed

+154
-10
lines changed

4 files changed

+154
-10
lines changed

spec/fixtures/poetry_basic/poetry.lock

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
[project]
2+
name = "poetry-basic"
3+
version = "0.0.0"
4+
requires-python = ">=3.13"
5+
dependencies = [
6+
"typing-extensions"
7+
]
8+
19
[tool.poetry]
210
package-mode = false
311

4-
[tool.poetry.dependencies]
5-
python = "^3.13"
6-
typing-extensions = "*"
7-
812
# This group shouldn't be installed due to us passing `--only main`.
13+
# Note: We can't use `[dependency-groups]`, since Poetry doesn't yet support PEP735:
14+
# https://github.com/python-poetry/poetry/issues/9751
915
[tool.poetry.group.test.dependencies]
1016
pytest = "*"

spec/fixtures/poetry_oldest_python/poetry.lock

Lines changed: 127 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[tool.poetry]
22
package-mode = false
33

4+
# This test uses the legacy `[tool.poetry]` table instead of `[project.dependencies]`
5+
# to ensure that our chosen Poetry version still supports apps using the old table.
46
[tool.poetry.dependencies]
57
python = "^3.9"
68
typing-extensions = "*"
9+
10+
# This group shouldn't be installed due to us passing `--only main`.
11+
[tool.poetry.group.test.dependencies]
12+
pytest = "*"

0 commit comments

Comments
 (0)