This is an archive of the discontinued LLVM Phabricator instance.

Fix python_requires versioning for new setuptools
ClosedPublic

Authored by justice_adams on Feb 16 2023, 3:04 PM.

Details

Reviewers
cmatthews
Summary

Newer versions of setuptools will fail to install LNT with the following error:

× python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in LNT setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.6.*'
      [end of output]

From reading the documentation, I believe it was a bug to allow >=3.6.* previously, as I don't think wild cards are supported here
https://peps.python.org/pep-0345/#requires-python

Diff Detail

Repository
rLNT LNT