Skip to content

Commit

Permalink
make tests forward compatible with poetry-core#754 and use `tool.poet…
Browse files Browse the repository at this point in the history
…ry.group.dev.dependencies` instead of `tool.poetry.dev-dependencies`
  • Loading branch information
radoering committed Aug 31, 2024
1 parent 5d19ab0 commit 9841ade
Show file tree
Hide file tree
Showing 48 changed files with 47 additions and 49 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/complete.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pendulum = { version = "^1.4", optional = true }
[tool.poetry.extras]
time = [ "pendulum" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^3.0"
pytest-cov = "^2.4"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ python = "*"
project-with-extras = {path = "../../project_with_extras/"}
project-with-transitive-file-dependencies = {path = "../project_with_transitive_file_dependencies/"}

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ license = "MIT"
[tool.poetry.dependencies]
python = "*"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ python = "*"
demo = {path = "../../distributions/demo-0.1.0-py2.py3-none-any.whl"}
inner-directory-project = {path = "./inner-directory-project"}

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
2 changes: 1 addition & 1 deletion tests/fixtures/excluded_subpackage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exclude = [
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^3.0"

[build-system]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ tomlkit = {version = "^0.7.0", optional = true}
[tool.poetry.extras]
foo = ["tomlkit"]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ tomlkit = {version = "^0.7.0", optional = true}
[tool.poetry.extras]
foo = ["tomlkit"]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
2 changes: 1 addition & 1 deletion tests/fixtures/git/github.com/demo/prerelease/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ license = "MIT"
[tool.poetry.dependencies]
python = "~2.7 || ^3.4"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ license = "MIT"
python = "~2.7 || ^3.4"
pendulum = '^1.4'

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
2 changes: 1 addition & 1 deletion tests/fixtures/incompatible_lock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Poetry Developer <developer@python-poetry.org>"]
python = "^3.8"
sampleproject = ">=1.3.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/inspection/demo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ tomlkit = {version = "*", optional = true}
foo = ["cleo"]
bar = ["tomlkit"]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^3.0"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["John Doe <john@example.com.com>"]
python = "^3.10"
pendulum = "*"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ tomlkit = {version = "*", optional = true}
foo = ["cleo"]
bar = ["tomlkit"]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^3.0"
2 changes: 1 addition & 1 deletion tests/fixtures/invalid_lock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Poetry Developer <developer@python-poetry.org>"]
python = "^3.8"
sampleproject = ">=1.3.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/missing_directory_dependency/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ packages = []
[tool.poetry.dependencies]
python = "*"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
missing = { path = "./missing" }
2 changes: 1 addition & 1 deletion tests/fixtures/missing_file_dependency/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ packages = []
[tool.poetry.dependencies]
python = "*"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
missing = { file = "missing-0.1.0-py2.py3-none-any.whl" }
2 changes: 1 addition & 1 deletion tests/fixtures/old_lock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Poetry Developer <developer@python-poetry.org>"]
python = "^3.8"
sampleproject = ">=1.3.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/old_lock_path_dependency/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Poetry Developer <developer@python-poetry.org>"]
python = "^3.8"
quix = { path = "./quix", develop = true}

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/outdated_lock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Poetry Developer <developer@python-poetry.org>"]
python = "^3.8"
docker = "4.3.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 0 additions & 2 deletions tests/fixtures/project_with_extras/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ cachy = { version = ">=0.2.0", optional = true }
[tool.poetry.extras]
extras_a = [ "pendulum" ]
extras_b = [ "cachy" ]

[tool.poetry.dev-dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ python = "~2.7 || ^3.4"
cachy = "^0.1.0"
pendulum = "^2.0.0"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"
demo = { git = "https://github.com/demo/demo.git", rev = "9cf87a285a2d3fbb0b9fa621997b3acc3631ed24" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ pendulum = [
{ version = "^2.0", python = "^3.4" }
]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
2 changes: 1 addition & 1 deletion tests/fixtures/up_to_date_lock/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/fixtures/up_to_date_lock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Poetry Developer <developer@python-poetry.org>"]
python = "^3.8"
docker = ">=4.3.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with-include/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cachy = { version = "^0.2.0", extras = ["msgpack"] }

pendulum = { version = "^1.4", optional = true }

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"

[tool.poetry.extras]
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_default_source/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_default_source_and_pypi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_default_source_legacy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_default_source_pypi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_explicit_pypi_and_other/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "explicit"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_explicit_pypi_no_other/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "PyPI"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_explicit_source/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "explicit"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_local_config/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "foo"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_supplemental_source/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]

[[tool.poetry.source]]
name = "supplemental"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with_two_default_sources/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ simple-project = { path = "../simple_project/" }
[tool.poetry.extras]
db = [ "orator" ]

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exclude = [
[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^3.0"

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/fixtures/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ toml = "^0.9"
cachy = "^0.1.0"
pip-tools = "^1.11"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "~3.4"

0 comments on commit 9841ade

Please sign in to comment.