Environment
- deptry version: 0.25.1
- Python version: 3.12
- Operating system (e.g. Ubuntu 22.04, Windows 11): Fedora Linux 43
Describe the issue
Although I have the following dependency groups in pyproject.toml:
[tool.poetry.group.baremetal]
optional = false
[tool.poetry.group.baremetal.dependencies]
...
[tool.poetry.group.container]
optional = false
[tool.poetry.group.container.dependencies]
...
When I set them as non-dev dep. groups using non_dev_dependency_groups, it does not work:
Minimal way to reproduce the issue
$ poetry run deptry . --verbose
Running with the following configuration:
root: (PosixPath('.'),)
config: pyproject.toml
no_ansi: False
per_rule_ignores: {}
ignore: ()
exclude: ('venv', '\.venv', '\.direnv', 'tests', '\.git', 'setup\.py')
extend_exclude: ()
using_default_exclude: True
ignore_notebooks: False
requirements_files: ('requirements.txt',)
using_default_requirements_files: True
requirements_files_dev: ('dev-requirements.txt', 'requirements-dev.txt')
known_first_party: ()
json_output: None
package_module_name_map: {}
optional_dependencies_dev_groups: ()
non_dev_dependency_groups: ('baremetal', 'container')
experimental_namespace_package: False
enforce_posix_paths: False
github_output: False
github_warning_errors: ()
pyproject.toml found!
pyproject.toml contains a [tool.poetry] section, so Poetry is used to specify the project's dependencies.
pyproject.toml does not have build-system.build-backend == 'setuptools.build_meta', so setuptools is not used to specify the project's dependencies.
pyproject.toml does not have build-system.build-backend == 'setuptools.build_meta', so setuptools is not used to specify the project's dependencies.
Warning: Trying to extract the dependencies from the dependency groups ['baremetal', 'container'] as regular dependencies, but the following groups were not found: ['baremetal', 'container']
Expected behavior
It should have set those groups a non-dev groups.
Environment
Describe the issue
Although I have the following dependency groups in pyproject.toml:
[tool.poetry.group.baremetal]
optional = false
[tool.poetry.group.baremetal.dependencies]
...
[tool.poetry.group.container]
optional = false
[tool.poetry.group.container.dependencies]
...
When I set them as non-dev dep. groups using
non_dev_dependency_groups, it does not work:Minimal way to reproduce the issue
$ poetry run deptry . --verbose
Running with the following configuration:
root: (PosixPath('.'),)
config: pyproject.toml
no_ansi: False
per_rule_ignores: {}
ignore: ()
exclude: ('venv', '\.venv', '\.direnv', 'tests', '\.git', 'setup\.py')
extend_exclude: ()
using_default_exclude: True
ignore_notebooks: False
requirements_files: ('requirements.txt',)
using_default_requirements_files: True
requirements_files_dev: ('dev-requirements.txt', 'requirements-dev.txt')
known_first_party: ()
json_output: None
package_module_name_map: {}
optional_dependencies_dev_groups: ()
non_dev_dependency_groups: ('baremetal', 'container')
experimental_namespace_package: False
enforce_posix_paths: False
github_output: False
github_warning_errors: ()
pyproject.toml found!
pyproject.toml contains a [tool.poetry] section, so Poetry is used to specify the project's dependencies.
pyproject.toml does not have build-system.build-backend == 'setuptools.build_meta', so setuptools is not used to specify the project's dependencies.
pyproject.toml does not have build-system.build-backend == 'setuptools.build_meta', so setuptools is not used to specify the project's dependencies.
Warning: Trying to extract the dependencies from the dependency groups ['baremetal', 'container'] as regular dependencies, but the following groups were not found: ['baremetal', 'container']
Expected behavior
It should have set those groups a non-dev groups.