summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2023-03-08 20:21:38 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2023-05-03 14:09:17 +0100
commit64703c0be5909afa2eeb51b926ad995a0a1e2b1f (patch)
tree1ccce2f077ef6b59a89703d42ae10ec6cdbc3aad
parent34a78b6c451f2b05ae217d94b13eedecaf055e5f (diff)
downloadpython-setuptools-git-64703c0be5909afa2eeb51b926ad995a0a1e2b1f.tar.gz
Use special attributes with requirements for PKG-INFO
-rw-r--r--setuptools/_core_metadata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/_core_metadata.py b/setuptools/_core_metadata.py
index 55856ff9..4b25b2f4 100644
--- a/setuptools/_core_metadata.py
+++ b/setuptools/_core_metadata.py
@@ -193,11 +193,11 @@ def write_pkg_file(self, file): # noqa: C901 # is too complex (14) # FIXME
def _write_requirements(self, file):
- for req in self.install_requires:
+ for req in self._normalized_install_requires:
file.write(f"Requires-Dist: {req}\n")
processed_extras = {}
- for augmented_extra, reqs in self.extras_require.items():
+ for augmented_extra, reqs in self._normalized_extras_require.items():
# Historically, setuptools allows "augmented extras": `<extra>:<condition>`
unsafe_extra, _, condition = augmented_extra.partition(":")
unsafe_extra = unsafe_extra.strip()