summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-03-08 15:37:35 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-03-08 15:37:35 +0000
commit0dc9c5653c990687f7aa912f1b1279d94b433826 (patch)
treec785afc95a1cd5870eb400b6616a81cc3b07b107 /synapse/util
parentFix CI not attaching source distributions and wheels to the GitHub releases. ... (diff)
parentFix silly markdown typo (diff)
downloadsynapse-0dc9c5653c990687f7aa912f1b1279d94b433826.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/check_dependencies.py3
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))