Skip to content
Snippets Groups Projects
Commit abade346 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Require py36 and Postgres 9.6

parent 906065c7
Branches
Tags
No related merge requests found
Synapse now requires Python 3.6 or later and Postgres 9.6 or later.
...@@ -123,7 +123,7 @@ setup( ...@@ -123,7 +123,7 @@ setup(
zip_safe=False, zip_safe=False,
long_description=long_description, long_description=long_description,
long_description_content_type="text/x-rst", long_description_content_type="text/x-rst",
python_requires="~=3.5", python_requires="~=3.6",
classifiers=[ classifiers=[
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Topic :: Communications :: Chat", "Topic :: Communications :: Chat",
......
...@@ -47,8 +47,8 @@ class PostgresEngine(BaseDatabaseEngine): ...@@ -47,8 +47,8 @@ class PostgresEngine(BaseDatabaseEngine):
self._version = db_conn.server_version self._version = db_conn.server_version
# Are we on a supported PostgreSQL version? # Are we on a supported PostgreSQL version?
if not allow_outdated_version and self._version < 90500: if not allow_outdated_version and self._version < 90600:
raise RuntimeError("Synapse requires PostgreSQL 9.5+ or above.") raise RuntimeError("Synapse requires PostgreSQL 9.6 or above.")
with db_conn.cursor() as txn: with db_conn.cursor() as txn:
txn.execute("SHOW SERVER_ENCODING") txn.execute("SHOW SERVER_ENCODING")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment