File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change
1
+ Fixed incomplete ``getattr `` statement that caused problems when accessing
2
+ undefined attribute.
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def read_configuration(
112
112
# `ini2toml` backfills include_package_data=False when nothing is explicitly given,
113
113
# therefore setting a default here is backwards compatible.
114
114
orig_setuptools_table = setuptools_table .copy ()
115
- if dist and getattr (dist , "include_package_data" ) is not None :
115
+ if dist and getattr (dist , "include_package_data" , None ) is not None :
116
116
setuptools_table .setdefault ("include-package-data" , dist .include_package_data )
117
117
else :
118
118
setuptools_table .setdefault ("include-package-data" , True )
You can’t perform that action at this time.
0 commit comments