Skip to content

Commit 18e381c

Browse files
authored
Handle missing 'tests_require' option in newer setuptools (#59)
This option was outright removed from newer versions of setuptools and is no longer visible at all. The existing behavior always raises an exception even if the unsupported option isn't used in the package.
1 parent 5ec3f9f commit 18e381c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colcon_python_setup_py/package_augmentation/python_setup_py.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def augment_package( # noqa: D102
4444
]:
4545
desc.dependencies[dependency_type] = {
4646
create_dependency_descriptor(d)
47-
for d in config[option_name] or ()}
47+
for d in config.get(option_name) or ()}
4848

4949
def getter(env):
5050
nonlocal setup_py

0 commit comments

Comments
 (0)