clang-tidy-html icon indicating copy to clipboard operation
clang-tidy-html copied to clipboard

setup.py incorrectly has "argparse" in install_requires

Open JoevDubach opened this issue 1 year ago • 0 comments

setup.py has python_requires >= 3.6 but argparse is present in Python >= 3.2, so including argparse in install_requires is unnecessary and wasteful: https://pypi.org/project/argparse/#description https://docs.python.org/3.2/library/argparse.html

Note that if in the future you do want to use a module that's present in the current version of Python but not in your oldest supported version of Python, there's a syntax for that; see https://setuptools.pypa.io/en/latest/userguide/dependency_management.html : install_requires=[ "enum34;python_version<'3.4'", ],

I was able to work around this bug by adding argparse-1.4.0-py2.py3-none-any.whl to my local wheelhouse and thereby allowing "pip install clang-html" to add it to my virtualenv, so there's no rush for a fix on my account.

JoevDubach avatar Oct 07 '22 21:10 JoevDubach