Using a Python package in lowercase or not will both works to generate a valid PyPI url. For instance, a role :pypi:`Babel` will generate the url https://pypi.org/project/Babel, which is redirect permanently to https://pypi.org/project/babel
However, linkcheck builder will report a redirect from non-lowercase -> lowercase form. Instead of adding an exception in conf.py, I was wondering if I can lowercase the package name in the URL, to avoid such redirect. For instance, :role:`Babel` result in https://pypi.org/project/babel