From a492900d2350023de445c362cfa02b46e3639590 Mon Sep 17 00:00:00 2001 From: Ignacio Heredia Date: Tue, 29 Oct 2024 13:35:15 +0000 Subject: [PATCH] feat: disable poetry groups (not compatible with Python 3.6) Poetry groups where introduced in Poetry 1.2. The same version that stopped supporting Python 3.6 ([ref](https://python-poetry.org/blog/announcing-poetry-1.2.0/#dropping-support-for-python-27-35-and-36-as-runtimes)) That raises the following error when installing. ``` RuntimeError: The Poetry configuration is invalid: - Additional properties are not allowed ('group' was unexpected) ``` https://stackoverflow.com/questions/73876790/poetry-configuration-is-invalid-additional-properties-are-not-allowed-group --- pyproject.toml | 48 ++---------------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2f62f4..e3de9c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,9 +43,9 @@ deepaas-run = "deepaas.cmd.run:main" deepaas-predict = "deepaas.cmd.execute:main" deepaas-cli = "deepaas.cmd.cli:main" -[tool.poetry.plugins] # Optional super table +[tool.poetry.plugins] # Optional super table -[tool.poetry.plugins."oslo.config.opts"] +[tool.poetry.plugins."oslo.config.opts"] deepaas = "deepaas.opts:list_opts" [tool.poetry.dependencies] @@ -59,50 +59,6 @@ Werkzeug = "^2.0.3" marshmallow = "^3.14.1" webargs = "<6.0.0" - -[tool.poetry.group.dev.dependencies] -tox = "^4.15.1" - - -[tool.poetry.group.test.dependencies] -pytest = "^8.2.2" -pytest-aiohttp = "^1.0.5" -pytest-cov = "^5.0.0" -fixtures = "^4.1.0" -reno = "^4.1.0" -mock = "^5.1.0" -testtools = "^2.7.1" -setuptools = "^70.0.0" - - -[tool.poetry.group.test-flake8.dependencies] -flake8 = "^7.0.0" -flake8-bugbear = "^24.4.26" -flake8-typing-imports = "^1.15.0" -flake8-colors = "^0.1.9" -pep8-naming = "^0.14.1" -pydocstyle = "^6.3.0" - - -[tool.poetry.group.test-black.dependencies] -black = "^24.4.2" - - -[tool.poetry.group.test-bandit.dependencies] -bandit = "^1.7.8" - - -[tool.poetry.group.test-mypy.dependencies] -mypy = "^1.10.0" - - -[tool.poetry.group.test-pypi.dependencies] -twine = "^5.1.0" - - -[tool.poetry.group.test-pip-missing-reqs.dependencies] -pip-check-reqs = "^2.5.3" - [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"