diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-03-08 15:37:35 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-03-08 15:37:35 +0000 |
commit | 0dc9c5653c990687f7aa912f1b1279d94b433826 (patch) | |
tree | c785afc95a1cd5870eb400b6616a81cc3b07b107 /synapse/util/check_dependencies.py | |
parent | Fix CI not attaching source distributions and wheels to the GitHub releases. ... (diff) | |
parent | Fix silly markdown typo (diff) | |
download | synapse-0dc9c5653c990687f7aa912f1b1279d94b433826.tar.xz |
Merge branch 'master' into develop
Diffstat (limited to 'synapse/util/check_dependencies.py')
-rw-r--r-- | synapse/util/check_dependencies.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/util/check_dependencies.py b/synapse/util/check_dependencies.py index 39b0a91db3..12cd804939 100644 --- a/synapse/util/check_dependencies.py +++ b/synapse/util/check_dependencies.py @@ -163,7 +163,8 @@ def check_requirements(extra: Optional[str] = None) -> None: deps_unfulfilled.append(requirement.name) errors.append(_not_installed(requirement, extra)) else: - if not requirement.specifier.contains(dist.version): + # We specify prereleases=True to allow prereleases such as RCs. + if not requirement.specifier.contains(dist.version, prereleases=True): deps_unfulfilled.append(requirement.name) errors.append(_incorrect_version(requirement, dist.version, extra)) |