diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-03-07 18:18:34 +0000 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-05-03 14:06:38 +0100 |
commit | 64f35f051a26631fdce0437099d86e1ca524e19d (patch) | |
tree | 1b5638640e2b85250dc3c412735249be1ca582d1 /setuptools/config/_apply_pyprojecttoml.py | |
parent | f5ca18b4836ccfc29b2e84932d774aa3054e9a82 (diff) | |
download | python-setuptools-git-dev/egg_info_requires.tar.gz |
Minor adjustments in apply_pyproject.tomldev/egg_info_requires
Diffstat (limited to 'setuptools/config/_apply_pyprojecttoml.py')
-rw-r--r-- | setuptools/config/_apply_pyprojecttoml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/config/_apply_pyprojecttoml.py b/setuptools/config/_apply_pyprojecttoml.py index 3091e3b5..cdd65c82 100644 --- a/setuptools/config/_apply_pyprojecttoml.py +++ b/setuptools/config/_apply_pyprojecttoml.py @@ -205,7 +205,7 @@ def _dependencies(dist: "Distribution", val: list, _root_dir): def _optional_dependencies(dist: "Distribution", val: dict, _root_dir): - existing = getattr(dist, "extras_require", {}) + existing = getattr(dist, "extras_require", None) or {} _set_config(dist, "extras_require", {**existing, **val}) @@ -353,8 +353,8 @@ _PREVIOUSLY_DEFINED = { "classifiers": _attrgetter("metadata.classifiers"), "urls": _attrgetter("metadata.project_urls"), "entry-points": _get_previous_entrypoints, - "dependencies": _some_attrgetter("_orig_install_requires", "install_requires"), - "optional-dependencies": _some_attrgetter("_orig_extras_require", "extras_require"), + "dependencies": _attrgetter("install_requires"), + "optional-dependencies": _attrgetter("extras_require"), } |