Skip to content

Commit

Permalink
Handle missing 'tests_require' option in newer setuptools (#59)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cottsay authored Oct 4, 2024
1 parent 5ec3f9f commit 18e381c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def augment_package( # noqa: D102
]:
desc.dependencies[dependency_type] = {
create_dependency_descriptor(d)
for d in config[option_name] or ()}
for d in config.get(option_name) or ()}

def getter(env):
nonlocal setup_py
Expand Down

0 comments on commit 18e381c

Please # to comment.