Return a mapping of {python_requires: value} or an empty mapping found in a ``setup_args`` mapping of setup.py arguments.
(setup_args)
| 2112 | |
| 2113 | |
| 2114 | def get_setup_py_python_requires(setup_args): |
| 2115 | """ |
| 2116 | Return a mapping of {python_requires: value} or an empty mapping found in a |
| 2117 | ``setup_args`` mapping of setup.py arguments. |
| 2118 | """ |
| 2119 | python_requires = setup_args.get('python_requires') |
| 2120 | if python_requires: |
| 2121 | return dict(python_requires=python_requires) |
| 2122 | else: |
| 2123 | return {} |
| 2124 | |
| 2125 | |
| 2126 | def get_setup_py_dependencies(setup_args): |