From 74680aa5f1464261d135ecee0ffa7395f1bfb09e Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Fri, 1 Jun 2018 18:02:55 +0000 Subject: [PATCH] Support python-requires metadata Expose the python_require setuptools option via the python-requires metadata item in setup.cfg. Closes-Bug: 1735668 Change-Id: Idf2bb90882121e118f5b7531e027d350c0e4a441 Co-authored-by: Dennis Verspuij --- pbr/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pbr/util.py b/pbr/util.py index 31a2a262..45a3aedd 100644 --- a/pbr/util.py +++ b/pbr/util.py @@ -114,6 +114,7 @@ D1_D2_SETUP_ARGS = { # broken distutils requires "install_requires": ("metadata", "requires_dist"), "setup_requires": ("metadata", "setup_requires_dist"), + "python_requires": ("metadata",), "provides": ("metadata", "provides_dist"), # ** "obsoletes": ("metadata", "obsoletes_dist"), # ** "package_dir": ("files", 'packages_root'),