You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docbuild: conf.py does not recognize dev versions of doc requirements #11838
Since I believe #11797 the doc build no longer proceeds if I'm using a development version of one of the doc dependencies.
For example, we have sphinx-astropy>=1.3 listed as a dependency. I've confirmed multiple times that I have this dependency met through my development installation of spinx-astropy which shows its version as 1.4.dev0 which should meet the >=1.3 requirement.
Expected behavior
The docs should build, allowing a more recent development version of one of the dependencies.
Actual behavior
It seems the line
if version not in SpecifierSet(req_specifier):
fails if version is a .devN version. Not sure if that's a bug in packaging or if there's something extra we need to do...
Activity
embray commentedon Jun 14, 2021
Indeed, it appears to be a matter of simply adding
prereleases=TruetoSpecifierSet: https://packaging.pypa.io/en/latest/specifiers.html#packaging.specifiers.SpecifierSet.prereleasesAllow pre-releases vesions (dev, alpha, etc.) of documentation
Allow pre-releases vesions (dev, alpha, etc.) of documentation