test: add default entries detection tests

This commit is contained in:
2023-03-23 22:30:19 +03:00
parent dd2aea32b8
commit eb50cb1c98
11 changed files with 136 additions and 37 deletions
+6 -2
View File
@@ -6,7 +6,11 @@ conditions = [
"file(pyproject.toml) | get(build-system.build-backend) | equal(poetry.core.masonry.api)",
]
variables.python_version = "file(pyproject.toml) | get(tool.poetry.dependencies.python) | search((\\d.\\d))"
commands = ["poetry env use {python_version}", "poetry install"]
commands = [
"poetry env use system",
"poetry env use {python_version}",
"poetry install",
]
[presets.python.tasks.build.poetry]
conditions = [
@@ -17,7 +21,7 @@ commands = ["poetry build"]
[presets.python.tasks.publish.poetry]
conditions = [
"file(pyproject.toml) | get(build-system.build-backend) | equal(poetry.core.masonry.api)",
"file(poetry.toml)",
"file(poetry.toml) | get(repositories)",
]
variables.python_repository = "file(poetry.toml) | get(repositories) | key(0)"
commands = ["poetry publish -r {python_repository}"]