Skip to content

Commit

Permalink
patch: Update pyproject.toml (#272)
Browse files Browse the repository at this point in the history
python/cli: update syntax to poetry 2
python/pytest_plugins: remove upper constraint on Python version (cannot
switch to poetry 2 since poetry-core 2 does not support python 3.8)
  • Loading branch information
carlcsaposs-canonical authored Jan 23, 2025
1 parent 3c9003a commit 8189a62
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 21 deletions.
22 changes: 11 additions & 11 deletions python/cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
[tool.poetry]
[project]
name = "data-platform-workflows-cli"
# Version unused; repository has its own versioning system. (See .github/workflows/__release.yaml)
version = "0.1.0"
description = ""
license = "Apache-2.0"
authors = ["Carl Csaposs <[email protected]>"]
authors = [
{name = "Carl Csaposs", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"pyyaml>=6.0.2",
"requests>=2.32.3",
]

[tool.poetry.scripts]
[project.scripts]
redact-secrets = "data_platform_workflows_cli.redact_secrets:main"
collect-snap-platforms = "data_platform_workflows_cli.craft_tools.collect_platforms:snap"
collect-rock-platforms = "data_platform_workflows_cli.craft_tools.collect_platforms:rock"
Expand All @@ -23,12 +29,6 @@ tee-log-for-all-models = "data_platform_workflows_cli.tee_log_for_all_models:mai
sync-docs = "data_platform_workflows_cli.sync_docs:main"
compute-path-in-artifact = "data_platform_workflows_cli.compute_path_in_artifact:main"

[tool.poetry.dependencies]
python = "^3.10"
pyyaml = "^6.0.1"
requests = "^2.31.0"


[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ classifiers = [
allure_collection_report = "allure_pytest_collection_report._plugin"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.8"
pytest = "*"
allure-pytest = ">=2.13.5"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 1 addition & 2 deletions python/pytest_plugins/github_secrets/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ classifiers = [
github_secrets = "pytest_github_secrets._plugin"

[tool.poetry.dependencies]
python = "^3.8"

python = ">=3.8"

[build-system]
requires = ["poetry-core"]
Expand Down
3 changes: 1 addition & 2 deletions python/pytest_plugins/microceph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ classifiers = [
microceph = "pytest_microceph._plugin"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.8"
pytest = "*"
boto3 = "*"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 1 addition & 2 deletions python/pytest_plugins/pytest_operator_cache/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ classifiers = [
operator_cache = "pytest_operator_cache._plugin"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.8"
pyyaml = "*"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 1 addition & 2 deletions python/pytest_plugins/pytest_operator_groups/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ classifiers = [
operator_groups = "pytest_operator_groups._plugin"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.8"
pytest = "*"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 8189a62

Please sign in to comment.