Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Dump setuptools; correct pyproject version number #12478

Merged
merged 6 commits into from
Apr 20, 2022

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Apr 14, 2022

Motivation: I don't want to main duplicate dependency lists and other metadata.

As part of this we should be convinced that the wheels that poetry-core produces are compatible with those produced by setuptools.

To the reviewer: #12337 (comment) explains how I did so for the monstrous PR #12337; hopefully you can tweak that script and rerun it here to also be convinced that this change is sound.

David Robertson added 3 commits April 14, 2022 15:42
and poetry doesn't support pep 660 yet.
@DMRobertson
Copy link
Contributor Author

Systest failing on focal is due to a known issue with actions/checkout.

@DMRobertson DMRobertson marked this pull request as ready for review April 14, 2022 14:56
@DMRobertson DMRobertson requested a review from a team as a code owner April 14, 2022 14:56
@reivilibre reivilibre self-assigned this Apr 20, 2022
Copy link
Contributor

@reivilibre reivilibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wheel

Only in dist-stools/wheel/matrix_synapse-1.57.0.dist-info: AUTHORS.rst
diff -ru dist-stools/wheel/matrix_synapse-1.57.0.dist-info/entry_points.txt dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/entry_points.txt
--- dist-stools/wheel/matrix_synapse-1.57.0.dist-info/entry_points.txt	2022-04-20 15:11:10.000000000 +0100
+++ dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/entry_points.txt	2016-01-01 00:00:00.000000000 +0000
@@ -1,13 +1,14 @@
 [console_scripts]
-export_signing_key = synapse._scripts.export_signing_key:main
-generate_config = synapse._scripts.generate_config:main
-generate_log_config = synapse._scripts.generate_log_config:main
-generate_signing_key = synapse._scripts.generate_signing_key:main
-hash_password = synapse._scripts.hash_password:main
-register_new_matrix_user = synapse._scripts.register_new_matrix_user:main
-synapse_homeserver = synapse.app.homeserver:main
-synapse_port_db = synapse._scripts.synapse_port_db:main
-synapse_review_recent_signups = synapse._scripts.review_recent_signups:main
-synapse_worker = synapse.app.generic_worker:main
-synctl = synapse._scripts.synctl:main
-update_synapse_database = synapse._scripts.update_synapse_database:main
+export_signing_key=synapse._scripts.export_signing_key:main
+generate_config=synapse._scripts.generate_config:main
+generate_log_config=synapse._scripts.generate_log_config:main
+generate_signing_key=synapse._scripts.generate_signing_key:main
+hash_password=synapse._scripts.hash_password:main
+register_new_matrix_user=synapse._scripts.register_new_matrix_user:main
+synapse_homeserver=synapse.app.homeserver:main
+synapse_port_db=synapse._scripts.synapse_port_db:main
+synapse_review_recent_signups=synapse._scripts.review_recent_signups:main
+synapse_worker=synapse.app.generic_worker:main
+synctl=synapse._scripts.synctl:main
+update_synapse_database=synapse._scripts.update_synapse_database:main
+
diff -ru dist-stools/wheel/matrix_synapse-1.57.0.dist-info/METADATA dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/METADATA
--- dist-stools/wheel/matrix_synapse-1.57.0.dist-info/METADATA	2022-04-20 15:11:10.000000000 +0100
+++ dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/METADATA	2016-01-01 00:00:00.000000000 +0000
@@ -1,139 +1,82 @@
 Metadata-Version: 2.1
 Name: matrix-synapse
 Version: 1.57.0
-Summary: Reference homeserver for the Matrix decentralised comms protocol
-License: UNKNOWN
-Platform: UNKNOWN
+Summary: Homeserver for the Matrix decentralised comms protocol
+Home-page: https://github.com/matrix-org/synapse
+License: Apache-2.0
+Author: Matrix.org Team and Contributors
+Author-email: packages@matrix.org
+Requires-Python: >=3.7,<4.0
 Classifier: Development Status :: 5 - Production/Stable
-Classifier: Topic :: Communications :: Chat
 Classifier: License :: OSI Approved :: Apache Software License
-Classifier: Programming Language :: Python :: 3 :: Only
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
-Classifier: Programming Language :: Python :: 3.10
-Requires-Python: ~=3.7
-Description-Content-Type: text/x-rst
-License-File: LICENSE
-License-File: AUTHORS.rst
-Requires-Dist: jsonschema (>=3.0.0)
-Requires-Dist: frozendict (!=2.1.2,>=1)
-Requires-Dist: unpaddedbase64 (>=1.1.0)
-Requires-Dist: canonicaljson (>=1.4.0)
-Requires-Dist: signedjson (>=1.1.0)
-Requires-Dist: pynacl (>=1.2.1)
-Requires-Dist: service-identity (>=18.1.0)
-Requires-Dist: Twisted[tls] (>=18.9.0)
-Requires-Dist: treq (>=15.1)
-Requires-Dist: pyopenssl (>=16.0.0)
-Requires-Dist: pyyaml (>=3.11)
-Requires-Dist: pyasn1 (>=0.1.9)
-Requires-Dist: pyasn1-modules (>=0.0.7)
-Requires-Dist: bcrypt (>=3.1.0)
-Requires-Dist: pillow (>=5.4.0)
-Requires-Dist: sortedcontainers (>=1.4.4)
-Requires-Dist: pymacaroons (>=0.13.0)
-Requires-Dist: msgpack (>=0.5.2)
-Requires-Dist: phonenumbers (>=8.2.0)
-Requires-Dist: prometheus-client (>=0.4.0)
-Requires-Dist: attrs (!=21.1.0,>=19.2.0)
-Requires-Dist: netaddr (>=0.7.18)
-Requires-Dist: Jinja2 (>=3.0)
-Requires-Dist: bleach (>=1.4.3)
-Requires-Dist: typing-extensions (>=3.10.0)
-Requires-Dist: cryptography (>=3.4.7)
-Requires-Dist: ijson (>=3.1.4)
-Requires-Dist: matrix-common (~=1.1.0)
-Requires-Dist: packaging (>=16.1)
-Requires-Dist: importlib-metadata (>=1.4) ; python_version < "3.8"
+Classifier: Topic :: Communications :: Chat
 Provides-Extra: all
-Requires-Dist: pyjwt (>=1.6.4) ; extra == 'all'
-Requires-Dist: jaeger-client (>=4.0.0) ; extra == 'all'
-Requires-Dist: authlib (>=0.14.0) ; extra == 'all'
-Requires-Dist: lxml (>=4.2.0) ; extra == 'all'
-Requires-Dist: sentry-sdk (>=0.7.2) ; extra == 'all'
-Requires-Dist: matrix-synapse-ldap3 (>=0.1) ; extra == 'all'
-Requires-Dist: pympler ; extra == 'all'
-Requires-Dist: txredisapi (>=1.4.7) ; extra == 'all'
-Requires-Dist: opentracing (>=2.2.0) ; extra == 'all'
-Requires-Dist: hiredis ; extra == 'all'
-Requires-Dist: pysaml2 (>=4.5.0) ; extra == 'all'
-Requires-Dist: psycopg2 (>=2.8) ; (platform_python_implementation != "PyPy") and extra == 'all'
-Requires-Dist: psycopg2cffi-compat (==1.1) ; (platform_python_implementation == "PyPy") and extra == 'all'
-Requires-Dist: psycopg2cffi (>=2.8) ; (platform_python_implementation == "PyPy") and extra == 'all'
 Provides-Extra: cache_memory
-Requires-Dist: pympler ; extra == 'cache_memory'
-Provides-Extra: dev
-Requires-Dist: isort (==5.7.0) ; extra == 'dev'
-Requires-Dist: black (==22.3.0) ; extra == 'dev'
-Requires-Dist: flake8-comprehensions ; extra == 'dev'
-Requires-Dist: flake8-bugbear (==21.3.2) ; extra == 'dev'
-Requires-Dist: flake8 ; extra == 'dev'
-Requires-Dist: mypy (==0.931) ; extra == 'dev'
-Requires-Dist: mypy-zope (==0.3.5) ; extra == 'dev'
-Requires-Dist: types-bleach (>=4.1.0) ; extra == 'dev'
-Requires-Dist: types-jsonschema (>=3.2.0) ; extra == 'dev'
-Requires-Dist: types-opentracing (>=2.4.2) ; extra == 'dev'
-Requires-Dist: types-Pillow (>=8.3.4) ; extra == 'dev'
-Requires-Dist: types-psycopg2 (>=2.9.9) ; extra == 'dev'
-Requires-Dist: types-pyOpenSSL (>=20.0.7) ; extra == 'dev'
-Requires-Dist: types-PyYAML (>=5.4.10) ; extra == 'dev'
-Requires-Dist: types-requests (>=2.26.0) ; extra == 'dev'
-Requires-Dist: types-setuptools (>=57.4.0) ; extra == 'dev'
-Requires-Dist: parameterized (>=0.7.0) ; extra == 'dev'
-Requires-Dist: idna (>=2.5) ; extra == 'dev'
-Requires-Dist: click (==8.1.0) ; extra == 'dev'
-Requires-Dist: redbaron (==0.9.2) ; extra == 'dev'
-Requires-Dist: GitPython (==3.1.14) ; extra == 'dev'
-Requires-Dist: commonmark (==0.9.1) ; extra == 'dev'
-Requires-Dist: pygithub (==1.55) ; extra == 'dev'
-Requires-Dist: twine ; extra == 'dev'
-Requires-Dist: towncrier ; extra == 'dev'
 Provides-Extra: jwt
-Requires-Dist: pyjwt (>=1.6.4) ; extra == 'jwt'
-Provides-Extra: lint
-Requires-Dist: isort (==5.7.0) ; extra == 'lint'
-Requires-Dist: black (==22.3.0) ; extra == 'lint'
-Requires-Dist: flake8-comprehensions ; extra == 'lint'
-Requires-Dist: flake8-bugbear (==21.3.2) ; extra == 'lint'
-Requires-Dist: flake8 ; extra == 'lint'
 Provides-Extra: matrix-synapse-ldap3
-Requires-Dist: matrix-synapse-ldap3 (>=0.1) ; extra == 'matrix-synapse-ldap3'
-Provides-Extra: mypy
-Requires-Dist: mypy (==0.931) ; extra == 'mypy'
-Requires-Dist: mypy-zope (==0.3.5) ; extra == 'mypy'
-Requires-Dist: types-bleach (>=4.1.0) ; extra == 'mypy'
-Requires-Dist: types-jsonschema (>=3.2.0) ; extra == 'mypy'
-Requires-Dist: types-opentracing (>=2.4.2) ; extra == 'mypy'
-Requires-Dist: types-Pillow (>=8.3.4) ; extra == 'mypy'
-Requires-Dist: types-psycopg2 (>=2.9.9) ; extra == 'mypy'
-Requires-Dist: types-pyOpenSSL (>=20.0.7) ; extra == 'mypy'
-Requires-Dist: types-PyYAML (>=5.4.10) ; extra == 'mypy'
-Requires-Dist: types-requests (>=2.26.0) ; extra == 'mypy'
-Requires-Dist: types-setuptools (>=57.4.0) ; extra == 'mypy'
 Provides-Extra: oidc
-Requires-Dist: authlib (>=0.14.0) ; extra == 'oidc'
 Provides-Extra: opentracing
-Requires-Dist: jaeger-client (>=4.0.0) ; extra == 'opentracing'
-Requires-Dist: opentracing (>=2.2.0) ; extra == 'opentracing'
 Provides-Extra: postgres
-Requires-Dist: psycopg2 (>=2.8) ; (platform_python_implementation != "PyPy") and extra == 'postgres'
-Requires-Dist: psycopg2cffi (>=2.8) ; (platform_python_implementation == "PyPy") and extra == 'postgres'
-Requires-Dist: psycopg2cffi-compat (==1.1) ; (platform_python_implementation == "PyPy") and extra == 'postgres'
 Provides-Extra: redis
-Requires-Dist: txredisapi (>=1.4.7) ; extra == 'redis'
-Requires-Dist: hiredis ; extra == 'redis'
 Provides-Extra: saml2
-Requires-Dist: pysaml2 (>=4.5.0) ; extra == 'saml2'
 Provides-Extra: sentry
-Requires-Dist: sentry-sdk (>=0.7.2) ; extra == 'sentry'
 Provides-Extra: systemd
-Requires-Dist: systemd-python (>=231) ; extra == 'systemd'
 Provides-Extra: test
-Requires-Dist: parameterized (>=0.7.0) ; extra == 'test'
-Requires-Dist: idna (>=2.5) ; extra == 'test'
 Provides-Extra: url_preview
-Requires-Dist: lxml (>=4.2.0) ; extra == 'url_preview'
+Requires-Dist: Jinja2 (>=3.0)
+Requires-Dist: Pillow (>=5.4.0)
+Requires-Dist: PyNaCl (>=1.2.1)
+Requires-Dist: PyYAML (>=3.11)
+Requires-Dist: Pympler; extra == "cache_memory"
+Requires-Dist: Twisted[tls] (>=18.9.0)
+Requires-Dist: attrs (>=19.2.0,!=21.1.0)
+Requires-Dist: authlib (>=0.14.0); extra == "oidc" or extra == "all"
+Requires-Dist: bcrypt (>=3.1.0)
+Requires-Dist: bleach (>=1.4.3)
+Requires-Dist: canonicaljson (>=1.4.0)
+Requires-Dist: cryptography (>=3.4.7)
+Requires-Dist: frozendict (>=1,!=2.1.2)
+Requires-Dist: hiredis; extra == "redis" or extra == "all"
+Requires-Dist: idna (>=2.5); extra == "test"
+Requires-Dist: ijson (>=3.1.4)
+Requires-Dist: importlib_metadata (>=1.4); python_version < "3.8"
+Requires-Dist: jaeger-client (>=4.0.0); extra == "opentracing" or extra == "all"
+Requires-Dist: jsonschema (>=3.0.0)
+Requires-Dist: lxml (>=4.2.0); extra == "url_preview" or extra == "all"
+Requires-Dist: matrix-common (>=1.1.0,<1.2.0)
+Requires-Dist: matrix-synapse-ldap3 (>=0.1); extra == "matrix-synapse-ldap3" or extra == "all"
+Requires-Dist: msgpack (>=0.5.2)
+Requires-Dist: netaddr (>=0.7.18)
+Requires-Dist: opentracing (>=2.2.0); extra == "opentracing" or extra == "all"
+Requires-Dist: packaging (>=16.1)
+Requires-Dist: parameterized (>=0.7.4); extra == "test"
+Requires-Dist: phonenumbers (>=8.2.0)
+Requires-Dist: prometheus-client (>=0.4.0)
+Requires-Dist: psycopg2 (>=2.8); (platform_python_implementation != "PyPy") and (extra == "postgres" or extra == "all")
+Requires-Dist: psycopg2cffi (>=2.8); (platform_python_implementation == "PyPy") and (extra == "postgres" or extra == "all")
+Requires-Dist: psycopg2cffi-compat (==1.1); (platform_python_implementation == "PyPy") and (extra == "postgres" or extra == "all")
+Requires-Dist: pyOpenSSL (>=16.0.0)
+Requires-Dist: pyasn1 (>=0.1.9)
+Requires-Dist: pyasn1-modules (>=0.0.7)
+Requires-Dist: pyjwt (>=1.6.4); extra == "jwt" or extra == "all"
+Requires-Dist: pymacaroons (>=0.13.0)
+Requires-Dist: pysaml2 (>=4.5.0); extra == "saml2" or extra == "all"
+Requires-Dist: sentry-sdk (>=0.7.2); extra == "sentry" or extra == "all"
+Requires-Dist: service-identity (>=18.1.0)
+Requires-Dist: signedjson (>=1.1.0)
+Requires-Dist: sortedcontainers (>=1.4.4)
+Requires-Dist: systemd-python (>=231); extra == "systemd"
+Requires-Dist: treq (>=15.1)
+Requires-Dist: txredisapi (>=1.4.7); extra == "redis" or extra == "all"
+Requires-Dist: typing-extensions (>=3.10.0)
+Requires-Dist: unpaddedbase64 (>=2.1.0)
+Project-URL: Repository, https://github.com/matrix-org/synapse
+Description-Content-Type: text/x-rst
 
 =========================================================================
 Synapse |support| |development| |documentation| |license| |pypi| |python|
@@ -622,4 +565,3 @@
   :alt: (supported python versions)
   :target: https://pypi.org/project/matrix-synapse
 
-
diff -ru dist-stools/wheel/matrix_synapse-1.57.0.dist-info/RECORD dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/RECORD
--- dist-stools/wheel/matrix_synapse-1.57.0.dist-info/RECORD	2022-04-20 15:11:12.000000000 +0100
+++ dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/RECORD	2016-01-01 00:00:00.000000000 +0000
@@ -1,11 +1,4 @@
-synapse/__init__.py,sha256=90IOkqbQHWziPQox-UWSAOY5Z0i673RBJxKpSwnhlFY,2463
-synapse/event_auth.py,sha256=V1L-AgvQICAXlDjdmWhwJlCHjqzeVdm3oU-Y4BDKzyA,33133
-synapse/notifier.py,sha256=a_REmdRBlQJNRObyUtHZxaFhb09Y1-uYukAMgA-o2-I,26593
-synapse/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
-synapse/python_dependencies.py,sha256=3MSxrGNirEZmH6rw4t_-iDNb2aTYYTUYLZKwZxlAckg,5961
-synapse/server.py,sha256=x7FBCnt4cFmptXe1Md8hvxx8r_DaXda-xEHO4mOToAc,29390
-synapse/types.py,sha256=J1nrztQNM_pFPYfCKiGTcSxkFlatL7vYUQvNqa8Tk1I,29873
-synapse/visibility.py,sha256=mnB34vMuw8XpMw0PMLYWjZ6KlaaLn8JO1oHnhdtrtNI,17487
+synapse/__init__.py,sha256=9MVbTulWfBgdlkbJ9dnr1APymL79wMblcG9UpdRjFQk,2577
 synapse/_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
 synapse/_scripts/export_signing_key.py,sha256=uCHfmwRUgSytp65Wo_cfSwj1PeUNNSUq6NgWBU5weqQ,2704
 synapse/_scripts/generate_config.py,sha256=1gRcUTNyn1JUHOxxvA7Nhyu15Elx0zYZmRpB65JwE4k,2336
@@ -99,6 +92,7 @@
 synapse/crypto/context_factory.py,sha256=fbEVeDl67mZUo19FwAa8O-8SYjA7bN0urw_smVsYgs4,10680
 synapse/crypto/event_signing.py,sha256=dH7pAOs6hSDROoAm6hnn-Tic6LYO2wuecZF2erqXzHY,6147
 synapse/crypto/keyring.py,sha256=bo_hD6b3PtCqRvJ1xBejWREXEPSIijeRKXhZXWL6bNI,32696
+synapse/event_auth.py,sha256=V1L-AgvQICAXlDjdmWhwJlCHjqzeVdm3oU-Y4BDKzyA,33133
 synapse/events/__init__.py,sha256=UVIZNv4sD3dqZdOAOKh6oNJzEZGYbEPsNEAssLepOLY,21372
 synapse/events/builder.py,sha256=K_e_-_wXXXTVAqNDWDfQDnc2ybTSxNQBkWZ09vCpjFA,9474
 synapse/events/presence_router.py,sha256=IxgdVQNRjPC-D0BI9WlCFQCuj6Gb1b2REBTArbw_lJY,8429
@@ -113,7 +107,6 @@
 synapse/federation/federation_server.py,sha256=ytm_BiswGctmX4VdsR_hC4LT_aoTVJOR61obaIURT3w,54971
 synapse/federation/persistence.py,sha256=WPTCBDj-vAQOwBe-ppEUpSDN9ExJ7b6KcGCmSw7qL5c,2337
 synapse/federation/send_queue.py,sha256=N0cYdiAWaBOmyZrHBpuAPMcpM64DL2DMRl0mls6_Z6c,17089
-synapse/federation/units.py,sha256=8Nqpsukpx3Lsv1mOatkDd8EzsEhSCIYvlH7-3tnXecE,2946
 synapse/federation/sender/__init__.py,sha256=NmLuWxcUPsoHBoqThJ_dHpRS5NecdncvhTwkUVM80cQ,28676
 synapse/federation/sender/per_destination_queue.py,sha256=FNSa-C77e0n-jbb0IxyVx-IuhaWZPLv-ZrKQ00rSkK8,30042
 synapse/federation/sender/transaction_manager.py,sha256=HeUYVAZftgbZTkKXSEhIqLIBoIxSqlERIhVpw2EoYHA,6806
@@ -124,6 +117,7 @@
 synapse/federation/transport/server/federation.py,sha256=Aaa8HtY4gHfbpyJ_TNmnhTO8XzuvTzKmkavQprJqIMw,23953
 synapse/federation/transport/server/groups_local.py,sha256=IWMOA7pBTj8S6dCAuCLnARIZCpGG3NXPiBKmhgu6KlY,3688
 synapse/federation/transport/server/groups_server.py,sha256=Jyc5vy22l_iWytoNocbStX5rWZYadqUPifrv9PzS3Qo,23672
+synapse/federation/units.py,sha256=8Nqpsukpx3Lsv1mOatkDd8EzsEhSCIYvlH7-3tnXecE,2946
 synapse/groups/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
 synapse/groups/attestations.py,sha256=H3-0XCz99Z5MmXMMfL_KdPnVaBhMzlVzG0qXb8mKZU8,8299
 synapse/groups/groups_server.py,sha256=_kGrwwRGR9siWVUKmIZ7md3nnGE_PbWvwclKzoml7QQ,35813
@@ -173,13 +167,17 @@
 synapse/handlers/stats.py,sha256=3apRvWtt3D0DSSRslVE73bwFKcGgMVPkOxNttVz_dlI,12569
 synapse/handlers/sync.py,sha256=l9zJa8PPt1AzyN_tQLEux9LHhofsvafTu_hRyKTx2l4,98435
 synapse/handlers/typing.py,sha256=-pfAVrJCP3vdQQA7bT_EJJ2R7o-jrYBc6R0wDzsDz_w,19287
-synapse/handlers/user_directory.py,sha256=QvoMWs5yKip3x6WDtly8l-h7NVKluuds4HDq3y50eGA,19646
 synapse/handlers/ui_auth/__init__.py,sha256=oEuFgD6NJVKm3ZaybJRa2AOcUFGcAu2WfQctHExqnEI,1638
 synapse/handlers/ui_auth/checkers.py,sha256=DQj_qVLOWh3zlKz0wLKXxIC_V4sbXXQKhwDEiLu8A-c,11650
+synapse/handlers/user_directory.py,sha256=QvoMWs5yKip3x6WDtly8l-h7NVKluuds4HDq3y50eGA,19646
 synapse/http/__init__.py,sha256=rKwpOWYLZ40dEDC1bpmYdGSqtmQ9lTEbPKG9LoqBdWE,3256
 synapse/http/additional_resource.py,sha256=GO-ZkDIJNdXpUBCuz8xTLhQkh_5gSh18nftryE9KsoE,2079
 synapse/http/client.py,sha256=hjF6W1i_HfwHW_hH3CHjj_U98g9A9BTNyiHuEKd2jok,32401
 synapse/http/connectproxyclient.py,sha256=WgrjERa04-9hmPqATuysj87x_0z_x9A9DM_QVIr1v60,9453
+synapse/http/federation/__init__.py,sha256=FZoNr7U46Dy0GEJpOuPgJWTSZNipao-dwn2RNcn9oQ8,578
+synapse/http/federation/matrix_federation_agent.py,sha256=Q41Suo-Gjr5erUXOJ47KedW0c8ul8ETUbLcfksCwZyg,15930
+synapse/http/federation/srv_resolver.py,sha256=hFmthHC07cwDtBCdt-CUtTFJ3moCGNKtqnLVGxGBlRM,5829
+synapse/http/federation/well_known_resolver.py,sha256=y6Q4Dgxtf1-SMm4mgsrQTs63vdxaYJOxycdcvfeIpwk,12294
 synapse/http/matrixfederationclient.py,sha256=0PrCzE9X7uCYRRbmrD0sAfkiKfNZ9eschKVXaQRml0E,45495
 synapse/http/proxyagent.py,sha256=l6OxN-amdD1DZbUNJbgxHxPGwdo3xgLb1vq45jHqsEA,12484
 synapse/http/request_metrics.py,sha256=2yzC1XPHBsuOGlSg2XPAaIgIZati-D6ZHIpz-OW6Ers,8373
@@ -187,10 +185,6 @@
 synapse/http/servlet.py,sha256=idvrBHw2MPlK1qr8-uawzFeKFauJ6YjrwoOqsLaSy7Q,22241
 synapse/http/site.py,sha256=KnN1GgXXj8rq4IJKQ05IB3_Z830QDhhMMums5cDkE7w,23194
 synapse/http/types.py,sha256=KgadctPwu7hVmc2JA4mqNXS_crZxyBoXS3sqUEP3igs,910
-synapse/http/federation/__init__.py,sha256=FZoNr7U46Dy0GEJpOuPgJWTSZNipao-dwn2RNcn9oQ8,578
-synapse/http/federation/matrix_federation_agent.py,sha256=Q41Suo-Gjr5erUXOJ47KedW0c8ul8ETUbLcfksCwZyg,15930
-synapse/http/federation/srv_resolver.py,sha256=hFmthHC07cwDtBCdt-CUtTFJ3moCGNKtqnLVGxGBlRM,5829
-synapse/http/federation/well_known_resolver.py,sha256=y6Q4Dgxtf1-SMm4mgsrQTs63vdxaYJOxycdcvfeIpwk,12294
 synapse/logging/__init__.py,sha256=V4UF7jO65Fo9IcxQkZPFw6_q-wwmQk3uJ-zCQlEY6HI,1007
 synapse/logging/_remote.py,sha256=98j07tHIvCBwYfZasyDlST7VJG02bBJBkBGOr5iRuaU,8421
 synapse/logging/_terse_json.py,sha256=Dju-XuCQ_E9geZGrFGBn9gJYLv5VfeEfCXeMxV0WwGU,2478
@@ -209,6 +203,7 @@
 synapse/metrics/jemalloc.py,sha256=fhdypAX8OUyLBe-16Tp6t5jc5Lo0CsexIsWla7Aiu1U,7209
 synapse/module_api/__init__.py,sha256=4T8gsl2fek-Zy3u0OTxHKSjM9G41Tbf0jHFXPCreip8,53376
 synapse/module_api/errors.py,sha256=vGSiwZ0i5AM73D34e-4e9BlitGctB5wio2VkuUSHL1k,943
+synapse/notifier.py,sha256=a_REmdRBlQJNRObyUtHZxaFhb09Y1-uYukAMgA-o2-I,26593
 synapse/push/__init__.py,sha256=gVQXYWsyoC9xMxx-I8bt140JtwlpLoUDcBWEWz9yu1Y,4027
 synapse/push/action_generator.py,sha256=bTmUoa9Af1P3E3OlOOWo3_jeXcX7dj9SPTntZA6ZGA0,1757
 synapse/push/baserules.py,sha256=svfUiCJF9gqWOfVQTH6O8GBLeE8w12zBaPU2C74mNlc,13214
@@ -224,6 +219,7 @@
 synapse/push/pusher.py,sha256=48odT_r8Pu5B_aznQH4MPIr7cN_tbJottJncqPkY2kg,2840
 synapse/push/pusherpool.py,sha256=ycIoMEUxIQD92suWZr7si7dojns8hsDWtisNPH0p-Qs,14424
 synapse/push/rulekinds.py,sha256=xydgztePvQrj8i_nIeDZVWO641j9SHU8AwY4e3EWq4k,774
+synapse/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
 synapse/replication/__init__.py,sha256=OLAVbity20E5RaiSpSNINJO1r-KSvfqMPH7wUu_s4BU,578
 synapse/replication/http/__init__.py,sha256=O14ZVH7-zxcV7WPFNSVfvUqzFJVOXjQvGDC4kDr2WIk,1864
 synapse/replication/http/_base.py,sha256=IvPH1Kp6XplrCsHbwiPfpGz8PdaTl83xzAy1peyeCJw,14223
@@ -314,8 +310,6 @@
 synapse/res/templates/sso_redirect_confirm.html,sha256=FEmXaVePaWqPdW73GA9JHJ-WHr50HiH_Pq35N4V39lE,2125
 synapse/res/templates/terms.html,sha256=P_S26gSmAKgjSX-y1c7i_gzd2gIALVePPOKE_npkGgA,772
 synapse/rest/__init__.py,sha256=3RXGgrYkyF3ZUVAsxtyfjgt7X5XOg3rw4TRHou3g79U,4638
-synapse/rest/health.py,sha256=6TRfWQTSTT5rmwI1F9CB7EWsUlI6SXljEvOsrvtjnsQ,1101
-synapse/rest/well_known.py,sha256=igxJ9wODPTJxEZ--cOWGPkJjq4v2lw5_kLy24PVw0oE,3702
 synapse/rest/admin/__init__.py,sha256=MDLKDGTaAz2PhdBY6RaENmrMGAVtvbD5HWoLASGDyl0,12003
 synapse/rest/admin/_base.py,sha256=tTxKWcpt3D4-cQcJgyqGVokobUTFwaOmGef1H7dupEM,2053
 synapse/rest/admin/background_updates.py,sha256=UjVb7MzCRO-GcBW5M1qX6d_3j3NLh-2LtVsGwkeKXSM,5840
@@ -375,6 +369,7 @@
 synapse/rest/client/voip.py,sha256=YPSuIWNL0jrYWBmMJx-A5fjNd6Szrv4gqMyyCKjh85U,2791
 synapse/rest/consent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
 synapse/rest/consent/consent_resource.py,sha256=0A47JEXD5H0E_qn44-T6fwBaZFFqH0rfFHqqFQ2PbLg,7733
+synapse/rest/health.py,sha256=6TRfWQTSTT5rmwI1F9CB7EWsUlI6SXljEvOsrvtjnsQ,1101
 synapse/rest/key/__init__.py,sha256=SWIzwF3un9DyDNF2z5ip2tPD9CzK7ZCLHMSZuaVqKKE,584
 synapse/rest/key/v2/__init__.py,sha256=3pT0f1SOxKjY8C1Vl-Nf9-DN7CXELudNm8J2XisYhMY,1011
 synapse/rest/key/v2/local_key_resource.py,sha256=Z5PYQaBw9MqV6ymh3M3mEFQMrkcARQGr6pwX8bTWpeo,4023
@@ -397,15 +392,17 @@
 synapse/rest/synapse/__init__.py,sha256=7B9bBpWQ2igHXNVKxB6JYu7Z1AO9xeGVOm5XJTVIKBg,596
 synapse/rest/synapse/client/__init__.py,sha256=oXtKXTA68EzgifVMmM-9DcIJAvGeP-Xj-ByFt18pIfg,2558
 synapse/rest/synapse/client/new_user_consent.py,sha256=7QCzGzOVyxfve6vEmNGFq_xsNvabZEb5j-NLXvABzlg,4386
+synapse/rest/synapse/client/oidc/__init__.py,sha256=gr1bdpL5285OebXS5yjtthxjVoakb8CD8C0vErag1Nw,1050
+synapse/rest/synapse/client/oidc/callback_resource.py,sha256=r5pnTgkOvS3EHZeHU3KvJNTE9d3dNfYs1atl1dJc3kA,1488
 synapse/rest/synapse/client/password_reset.py,sha256=Uasx_as7Cs3Po_msVjeqSkLkpPORwQsw6Mcg12jqQSY,4739
 synapse/rest/synapse/client/pick_idp.py,sha256=3fHGAThGpLMDXS8urjMYUat5ap3DjkKWR6LP2dR8E0Y,2958
 synapse/rest/synapse/client/pick_username.py,sha256=_XmhscIbf4znKsLwAGh4Axeq3NjJwcZPdmME90wFCTo,5556
-synapse/rest/synapse/client/sso_register.py,sha256=RI3n0XJjLccCKOisRxBpd34pQaef36hiPibIppEzbzg,1856
-synapse/rest/synapse/client/oidc/__init__.py,sha256=gr1bdpL5285OebXS5yjtthxjVoakb8CD8C0vErag1Nw,1050
-synapse/rest/synapse/client/oidc/callback_resource.py,sha256=r5pnTgkOvS3EHZeHU3KvJNTE9d3dNfYs1atl1dJc3kA,1488
 synapse/rest/synapse/client/saml2/__init__.py,sha256=31QXHonjckSCXkIxEXR3cB3dgLDSEL9lKuL4ph-qxWw,1213
 synapse/rest/synapse/client/saml2/metadata_resource.py,sha256=EtTpvS3iISnojfDDg3lYS2rPk2VXl4yCIOyi6hEybOI,1308
 synapse/rest/synapse/client/saml2/response_resource.py,sha256=kRamMZ_JZJGTAlHCUctzO6Yli0-8drsNoH1XhFKEFzc,1767
+synapse/rest/synapse/client/sso_register.py,sha256=RI3n0XJjLccCKOisRxBpd34pQaef36hiPibIppEzbzg,1856
+synapse/rest/well_known.py,sha256=igxJ9wODPTJxEZ--cOWGPkJjq4v2lw5_kLy24PVw0oE,3702
+synapse/server.py,sha256=x7FBCnt4cFmptXe1Md8hvxx8r_DaXda-xEHO4mOToAc,29390
 synapse/server_notices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
 synapse/server_notices/consent_server_notices.py,sha256=T63dmCy7ca3adK52Pgctd_QP0koTo5i1_7LtUwgCRTQ,4770
 synapse/server_notices/resource_limits_server_notices.py,sha256=bj_Fmadu52Qaj--x68u63wTW919n_KBUl1TBrYwUg5Q,8586
@@ -416,29 +413,21 @@
 synapse/state/__init__.py,sha256=d28D81tHS0HNzRW_Dt4VdGMxWQ4oJER1Lcg_tmuPp7g,29320
 synapse/state/v1.py,sha256=T-PgTiu32JeTDV7aSQTPbdgOqH2AxZ_7TDs5FafMRHQ,12378
 synapse/state/v2.py,sha256=6LMuuhDrahsgQ0uGEfdpsKtDihyuuHqMkQK6HzvXxEY,25389
-synapse/static/index.html,sha256=VR1axq4ujEKZUWDCVpw94ajruPquuJfm22eAwTR1OTM,10168
 synapse/static/client/login/index.html,sha256=ZuG8PoULfrksJGAYhJxSxQO05EnvWhMbUQFlO77zSgQ,1699
-synapse/static/client/login/spinner.gif,sha256=l9hNBCvCYi162UlrzsELYtOD_1qmjjOKPAPFKfoIYl8,1849
-synapse/static/client/login/style.css,sha256=w2IR0MWWvZkKK6ce2veZzbCgHUGcAKbCv4HCpbtCf6k,1224
 synapse/static/client/login/js/jquery-3.4.1.min.js,sha256=CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo,88145
 synapse/static/client/login/js/login.js,sha256=D2CtVoJA12taO1cmO4ZEmtKJfV0yq6dnBF084Lb9bMg,8277
+synapse/static/client/login/spinner.gif,sha256=l9hNBCvCYi162UlrzsELYtOD_1qmjjOKPAPFKfoIYl8,1849
+synapse/static/client/login/style.css,sha256=w2IR0MWWvZkKK6ce2veZzbCgHUGcAKbCv4HCpbtCf6k,1224
 synapse/static/client/register/index.html,sha256=7PZrheghX1X70jKCKqAf6Z-ulUN36TLs4HLo8Xu4ock,1279
-synapse/static/client/register/register_config.sample.js,sha256=_goy6w62z9JZ9oenhW-qWVB4s8nzOfOBXM1zovOqpRo,81
-synapse/static/client/register/style.css,sha256=ghZBh31m6BN6qYlEZpN_3_iTvI4cK9OHCwLRfTdEduE,1046
 synapse/static/client/register/js/jquery-3.4.1.min.js,sha256=CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo,88145
 synapse/static/client/register/js/register.js,sha256=bwiV0Hl3zSueSt8oDRWDGWECpor3VZDzNuoFIbytvwc,3566
+synapse/static/client/register/register_config.sample.js,sha256=_goy6w62z9JZ9oenhW-qWVB4s8nzOfOBXM1zovOqpRo,81
+synapse/static/client/register/style.css,sha256=ghZBh31m6BN6qYlEZpN_3_iTvI4cK9OHCwLRfTdEduE,1046
+synapse/static/index.html,sha256=VR1axq4ujEKZUWDCVpw94ajruPquuJfm22eAwTR1OTM,10168
 synapse/storage/__init__.py,sha256=HQWO9Oj_Jzg4kekVYEsyC4bUQbsD79BeGKZPH-S_PTA,2321
 synapse/storage/_base.py,sha256=6ZIJXqwl7rEEOvMzYUB-8jgAA0kSv2GmQ7_q-62KkWQ,4627
 synapse/storage/background_updates.py,sha256=PiuLNq3HO5JKMkdKex4A710Ixa2HZXbBGVRfGub2xyk,24686
 synapse/storage/database.py,sha256=_LBA2ueyzuQ-Rf2Y8wrDVnh_-DvnFPW0Fckxn-8cHrs,82674
-synapse/storage/keys.py,sha256=W_bal8BdF7Y5ZAKgUXBEj7c4NhHOcwM1QkyYr9tkWb0,902
-synapse/storage/persist_events.py,sha256=TMkxRk-lSh2qsGXShJbXTgO1AksNdCe_2fX9nGV7A0E,47140
-synapse/storage/prepare_database.py,sha256=dmYy-euuwpHxNU1IMIeZVqKB_BT96PGLQIlMAxxqyxY,25228
-synapse/storage/purge_events.py,sha256=RDtfu5RqTUlNqHCyOzY50_k03JTZ3pum4PAmNlwzZA4,3947
-synapse/storage/push_rule.py,sha256=NMyBtB9pZ1e7JhlfEKGkQsyDdVs2WcGt09r45IN85xg,721
-synapse/storage/roommember.py,sha256=DlsbAbnuAxlYO5DIAwb_0vz2e0x6Xzw5MQnGdMvIMAc,1666
-synapse/storage/state.py,sha256=d3ZyJpFv1OWl15F5Yckwkloj1XBnmjBgeYrYay1ZHuQ,29520
-synapse/storage/types.py,sha256=WrT5VyOK_hpQnrpOKh9tNI2dUsrSFL45VQm2Y2XqIAg,2340
 synapse/storage/databases/__init__.py,sha256=OShpMsMBsTnsaEHB5T7vWXZ9XjVvNYX0pp7eVbAuQsY,5230
 synapse/storage/databases/main/__init__.py,sha256=3r8YgIkofV_45Yy4Kv4UouFptKGgbiFNq84Ls09jWQI,12579
 synapse/storage/databases/main/account_data.py,sha256=DbTIUV85QAUZjkuegwWRtBOw4lfj2XL-lBRFKTjBObE,26045
@@ -496,13 +485,19 @@
 synapse/storage/engines/_base.py,sha256=xE_ebyRWmz-2M6siGMsPzWVo9wdZpmYaJ5xsaw28aqE,3566
 synapse/storage/engines/postgres.py,sha256=2N5cYATYto8aPGFHUHP04GJNYY3VJJw-eqX4_2ExkLA,8383
 synapse/storage/engines/sqlite.py,sha256=95tbh9XkvXMtEEl8n0J6XeUZDVb6BA7h5wWBiocxcQw,5436
+synapse/storage/keys.py,sha256=W_bal8BdF7Y5ZAKgUXBEj7c4NhHOcwM1QkyYr9tkWb0,902
+synapse/storage/persist_events.py,sha256=TMkxRk-lSh2qsGXShJbXTgO1AksNdCe_2fX9nGV7A0E,47140
+synapse/storage/prepare_database.py,sha256=dmYy-euuwpHxNU1IMIeZVqKB_BT96PGLQIlMAxxqyxY,25228
+synapse/storage/purge_events.py,sha256=RDtfu5RqTUlNqHCyOzY50_k03JTZ3pum4PAmNlwzZA4,3947
+synapse/storage/push_rule.py,sha256=NMyBtB9pZ1e7JhlfEKGkQsyDdVs2WcGt09r45IN85xg,721
+synapse/storage/roommember.py,sha256=DlsbAbnuAxlYO5DIAwb_0vz2e0x6Xzw5MQnGdMvIMAc,1666
 synapse/storage/schema/README.md,sha256=Uqr4ZhQd6veOSCuv5uDA6HUDXDOS0hG9-QdUJvuR9R4,207
 synapse/storage/schema/__init__.py,sha256=fpKo2fSbxFwjBX0r6LqfMsobguEkhE3SAUVEyHokrpo,3328
-synapse/storage/schema/common/schema_version.sql,sha256=8rvTrpCPoIgqxIhLfR7eZPxyoUrk8lF7DEU5C_RNrC8,1515
 synapse/storage/schema/common/delta/25/00background_updates.sql,sha256=3GYrhCNTeHS5YChpAzUiboIAt3PDSH5lMo7GfgT5KZM,867
 synapse/storage/schema/common/delta/35/00background_updates_add_col.sql,sha256=_u5jAED3-SQ6ybwNuXfx2foGQZRt2IbqIURkPEAPDk8,655
 synapse/storage/schema/common/delta/58/00background_update_ordering.sql,sha256=xFZZzoqs0m-wgeKjHPp6GpphkO4ocM7PY1BU7Wq1ENQ,814
 synapse/storage/schema/common/full_schemas/54/full.sql,sha256=EBW6jH33Jkhv3NsEF-3fXKCKTKSMhmTXci67NZagEgc,190
+synapse/storage/schema/common/schema_version.sql,sha256=8rvTrpCPoIgqxIhLfR7eZPxyoUrk8lF7DEU5C_RNrC8,1515
 synapse/storage/schema/main/delta/12/v12.sql,sha256=TNgio06_TLjr1ZUHHHb0DfRKBIYVhEufvQMt5ryQbYI,1895
 synapse/storage/schema/main/delta/13/v13.sql,sha256=QGrLXQAivBo_MvORAf8NXXNXw3Imod5S43FfU0LwzUk,759
 synapse/storage/schema/main/delta/14/v14.sql,sha256=IRcPhSm4tHbJ16uEmBMtTqDFQUqcRRpbifroVaK0NXI,881
@@ -816,15 +811,29 @@
 synapse/storage/schema/state/delta/61/02state_groups_state_n_distinct.sql.postgres,sha256=_XQgLqUGtcPnESQHJu7WnG8yV-Uw9kncIc9GclJHwGU,1662
 synapse/storage/schema/state/full_schemas/54/full.sql,sha256=yfA6mhiEmlybv_Y53iQPiFuloXNyrGw3muyXrdRn1bs,1257
 synapse/storage/schema/state/full_schemas/54/sequence.sql.postgres,sha256=7TuQQS7jMp8spnCrNdROKz4v8wO6ie_JSVVhJdqrP7U,728
+synapse/storage/state.py,sha256=d3ZyJpFv1OWl15F5Yckwkloj1XBnmjBgeYrYay1ZHuQ,29520
+synapse/storage/types.py,sha256=WrT5VyOK_hpQnrpOKh9tNI2dUsrSFL45VQm2Y2XqIAg,2340
 synapse/storage/util/__init__.py,sha256=-KC8fCSul9qsV1jul4F4hMdWcc3HPNv9YFTtlJKX1ps,583
 synapse/storage/util/id_generators.py,sha256=qEbJyeIzTfqFpNtmU5IQeUNE1tjaBmC_m-Qp9FGRlJQ,31602
 synapse/storage/util/sequence.py,sha256=NfWBtjGsEWnQrN6xO2SSlB8co1DMiAsgMEQjJTGPk0Y,9949
 synapse/streams/__init__.py,sha256=0J7oX3d5SeizT3qPh2mw6tIilSeCXu8KjxGHS11tNe8,1092
 synapse/streams/config.py,sha256=4zabib_LNk3mAFKKspaZmW75eelSE_JMJVOaRiHp8no,2895
 synapse/streams/events.py,sha256=qlDWN6iSCVHia0qIkPmHLjzyehDfFNtAfweCZkNTpUs,3571
+synapse/types.py,sha256=J1nrztQNM_pFPYfCKiGTcSxkFlatL7vYUQvNqa8Tk1I,29873
 synapse/util/__init__.py,sha256=3aw34ve8tbKEVABanJ2QcsMMOP3a9Z2pOtuTrA3xfcQ,6571
 synapse/util/async_helpers.py,sha256=hy7Va2Ec4Z-LdWAQ6Kl-0ErrId8-suoDQjTNjlBx6C8,25563
 synapse/util/batching_queue.py,sha256=jPbLbRcMjQj2ifaW1-ls_NPE2TqeN-tRmJJiVNtPSqU,6342
+synapse/util/caches/__init__.py,sha256=3GuanYDiIEJUVvmyrR4g7NqsQNUPvaXsaFTISMIXwik,7558
+synapse/util/caches/cached_call.py,sha256=OmYmirw_8r_eWYamj64IdroaTpcmAysHgpZZHpXZvW8,5373
+synapse/util/caches/deferred_cache.py,sha256=4lInUwjSnM_wMu8pnooVdT5_cUrRsIW7McwQqV0VL-0,13112
+synapse/util/caches/descriptors.py,sha256=ob6CrJ1qgt7nFt-W5hhRbibOGho3lBvlMnXfXqBr4XY,25523
+synapse/util/caches/dictionary_cache.py,sha256=FNpa8zMMSrGfT__c62uig26sqnOQDHVM3qUXwqYOxew,5658
+synapse/util/caches/expiringcache.py,sha256=pGrzIgx4EdW7w8BoB9WF7rVuhcy4byrf1YDX8XnfaSE,6972
+synapse/util/caches/lrucache.py,sha256=K_mKuipOPJRcip4M1daDnaKF4uksUYJhvJcBXEIPeI4,22375
+synapse/util/caches/response_cache.py,sha256=KkyBuoJbe1nNqiWtkhuggPN3orN5ZGJH9l_O11Rlq-E,8855
+synapse/util/caches/stream_change_cache.py,sha256=quRjNuDT6B2TCZqzlFukVQT8POuBT59_UL593EVPjW0,7817
+synapse/util/caches/treecache.py,sha256=a4-t8GHvc2xoAIfGa3eosojP0fwMKTteU7Pl8EK83sQ,4545
+synapse/util/caches/ttlcache.py,sha256=i1hVXfX7FehorXpyn7YX7CmWf4lRPxD_eDqe0ElZgcc,5286
 synapse/util/check_dependencies.py,sha256=WLlbg58SaqIwShq1Srfuf7H_50umpuaNBgH0hy40n1c,7174
 synapse/util/daemonize.py,sha256=_V482rB9VhA5yD9xX0uDQsr4QLl2WEiKi90zaM75uTE,5047
 synapse/util/distributor.py,sha256=U4JDZ4vUAHMyQII8vxoBq9soGT2aFt_N1b-qk_NlG5s,4671
@@ -850,27 +859,9 @@
 synapse/util/templates.py,sha256=hncitoVtF4D4PE7AO4FkfVTBWt1oLLbVVLMi1-LxwI8,3963
 synapse/util/threepids.py,sha256=-XU6Tfo4ZxLzC_wIwDyFwJhA87doaWNVXmLQjth2kqk,3656
 synapse/util/wheel_timer.py,sha256=9qMWfImDhEWAnTGA7rxeWAfhtrSHZlOlysevlwS7hFE,3021
-synapse/util/caches/__init__.py,sha256=3GuanYDiIEJUVvmyrR4g7NqsQNUPvaXsaFTISMIXwik,7558
-synapse/util/caches/cached_call.py,sha256=OmYmirw_8r_eWYamj64IdroaTpcmAysHgpZZHpXZvW8,5373
-synapse/util/caches/deferred_cache.py,sha256=4lInUwjSnM_wMu8pnooVdT5_cUrRsIW7McwQqV0VL-0,13112
-synapse/util/caches/descriptors.py,sha256=ob6CrJ1qgt7nFt-W5hhRbibOGho3lBvlMnXfXqBr4XY,25523
-synapse/util/caches/dictionary_cache.py,sha256=FNpa8zMMSrGfT__c62uig26sqnOQDHVM3qUXwqYOxew,5658
-synapse/util/caches/expiringcache.py,sha256=pGrzIgx4EdW7w8BoB9WF7rVuhcy4byrf1YDX8XnfaSE,6972
-synapse/util/caches/lrucache.py,sha256=K_mKuipOPJRcip4M1daDnaKF4uksUYJhvJcBXEIPeI4,22375
-synapse/util/caches/response_cache.py,sha256=KkyBuoJbe1nNqiWtkhuggPN3orN5ZGJH9l_O11Rlq-E,8855
-synapse/util/caches/stream_change_cache.py,sha256=quRjNuDT6B2TCZqzlFukVQT8POuBT59_UL593EVPjW0,7817
-synapse/util/caches/treecache.py,sha256=a4-t8GHvc2xoAIfGa3eosojP0fwMKTteU7Pl8EK83sQ,4545
-synapse/util/caches/ttlcache.py,sha256=i1hVXfX7FehorXpyn7YX7CmWf4lRPxD_eDqe0ElZgcc,5286
-synmark/__init__.py,sha256=lslmNR8FUQMXbNDnu8xG2xy_4qNW8lnxGELx8LKtUHY,1140
-synmark/__main__.py,sha256=HZUvMQhU4Sg4j6Lf7_bBdd7DqJo4wam_w2yclgjvfvs,2875
-synmark/suites/__init__.py,sha256=mBFt_LHA0eEgDrmZmd2xS4mqMEkbXTYDNRGoCQlYd-U,176
-synmark/suites/logging.py,sha256=MprBOxsv4FTq81ezYWNdTEmgX-sPdx_NwlGK07x-Q8A,3680
-synmark/suites/lrucache.py,sha256=GVruQjJpCr15iTY3a7YpzCZr4OKi_kf-k5Bn_1dzKDg,963
-synmark/suites/lrucache_evict.py,sha256=QSrjdMJJRdOxustHFiB5RS5vM-ICFd1ya1RzfvuU2rA,986
-matrix_synapse-1.57.0.dist-info/AUTHORS.rst,sha256=KvPRmsv8L-ZN9AA51KsR-4fZu0ajfkCbSNNH9rhRUO4,1611
+synapse/visibility.py,sha256=mnB34vMuw8XpMw0PMLYWjZ6KlaaLn8JO1oHnhdtrtNI,17487
+matrix_synapse-1.57.0.dist-info/entry_points.txt,sha256=Xf4Z-Sp4lk8P9pbRhSD40XrhhkooqYWm1OtxUlPwPgs,709
 matrix_synapse-1.57.0.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
-matrix_synapse-1.57.0.dist-info/METADATA,sha256=Hg0ha0VJvCwA6tvCc-rSgJ99F5ixo8YXd4k1zHFdaEA,27238
-matrix_synapse-1.57.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
-matrix_synapse-1.57.0.dist-info/entry_points.txt,sha256=6ZSHAdDPvgySHaYMTHxP9d6l5RG3fgY71-uXCJ9RMVs,732
-matrix_synapse-1.57.0.dist-info/top_level.txt,sha256=Qthr8rUSXJ5d5fLvGqapun9mJcLvwt20xWUXeEepeTw,16
+matrix_synapse-1.57.0.dist-info/WHEEL,sha256=DA86_h4QwwzGeRoz62o1svYt5kGEXpoUTuTtwzoTb30,83
+matrix_synapse-1.57.0.dist-info/METADATA,sha256=SHDVNDs2_aeaQN1qpCPnMV3Lmqcx5YERtN2jtekUzKU,24475
 matrix_synapse-1.57.0.dist-info/RECORD,,
Only in dist-stools/wheel/matrix_synapse-1.57.0.dist-info: top_level.txt
diff -ru dist-stools/wheel/matrix_synapse-1.57.0.dist-info/WHEEL dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/WHEEL
--- dist-stools/wheel/matrix_synapse-1.57.0.dist-info/WHEEL	2022-04-20 15:11:10.000000000 +0100
+++ dist-poetry/wheel/matrix_synapse-1.57.0.dist-info/WHEEL	2016-01-01 00:00:00.000000000 +0000
@@ -1,5 +1,4 @@
 Wheel-Version: 1.0
-Generator: bdist_wheel (0.37.1)
+Generator: poetry 1.0.8
 Root-Is-Purelib: true
 Tag: py3-none-any
-
diff -ru dist-stools/wheel/synapse/__init__.py dist-poetry/wheel/synapse/__init__.py
--- dist-stools/wheel/synapse/__init__.py	2022-04-20 15:10:46.000000000 +0100
+++ dist-poetry/wheel/synapse/__init__.py	1980-01-01 00:00:00.000000000 +0000
@@ -20,6 +20,8 @@
 import os
 import sys
 
+from matrix_common.versionstring import get_distribution_version_string
+
 # Check that we're not running on an unsupported Python version.
 if sys.version_info < (3, 7):
     print("Synapse requires Python 3.7 or above.")
@@ -68,7 +70,7 @@
 except ImportError:
     pass
 
-__version__ = "1.57.0"
+__version__ = get_distribution_version_string("matrix-synapse")
 
 if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
     # We import here so that we don't have to install a bunch of deps when
Only in dist-stools/wheel/synapse: python_dependencies.py
Only in dist-stools/wheel: synmark

SDist

Only in dist-poetry/sdist/changelog.d: 12337.feature
Only in dist-poetry/sdist/changelog.d: 12478.misc
Only in dist-poetry/sdist/demo: .gitignore
Only in dist-stools/sdist: .flake8
Only in dist-stools/sdist: MANIFEST.in
Only in dist-stools/sdist: matrix_synapse.egg-info
Only in dist-poetry/sdist: mypy.ini
diff -ru dist-stools/sdist/PKG-INFO dist-poetry/sdist/PKG-INFO
--- dist-stools/sdist/PKG-INFO	2022-04-20 16:11:01.974667300 +0100
+++ dist-poetry/sdist/PKG-INFO	2022-04-20 16:09:28.122727200 +0100
@@ -1,37 +1,82 @@
 Metadata-Version: 2.1
 Name: matrix-synapse
 Version: 1.57.0
-Summary: Reference homeserver for the Matrix decentralised comms protocol
-License: UNKNOWN
-Platform: UNKNOWN
+Summary: Homeserver for the Matrix decentralised comms protocol
+Home-page: https://github.com/matrix-org/synapse
+License: Apache-2.0
+Author: Matrix.org Team and Contributors
+Author-email: packages@matrix.org
+Requires-Python: >=3.7,<4.0
 Classifier: Development Status :: 5 - Production/Stable
-Classifier: Topic :: Communications :: Chat
 Classifier: License :: OSI Approved :: Apache Software License
-Classifier: Programming Language :: Python :: 3 :: Only
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
-Classifier: Programming Language :: Python :: 3.10
-Requires-Python: ~=3.7
-Description-Content-Type: text/x-rst
+Classifier: Topic :: Communications :: Chat
+Provides-Extra: all
+Provides-Extra: cache_memory
+Provides-Extra: jwt
 Provides-Extra: matrix-synapse-ldap3
-Provides-Extra: postgres
-Provides-Extra: saml2
 Provides-Extra: oidc
-Provides-Extra: systemd
-Provides-Extra: url_preview
-Provides-Extra: sentry
 Provides-Extra: opentracing
-Provides-Extra: jwt
+Provides-Extra: postgres
 Provides-Extra: redis
-Provides-Extra: cache_memory
-Provides-Extra: all
-Provides-Extra: lint
-Provides-Extra: mypy
+Provides-Extra: saml2
+Provides-Extra: sentry
+Provides-Extra: systemd
 Provides-Extra: test
-Provides-Extra: dev
-License-File: LICENSE
-License-File: AUTHORS.rst
+Provides-Extra: url_preview
+Requires-Dist: Jinja2 (>=3.0)
+Requires-Dist: Pillow (>=5.4.0)
+Requires-Dist: PyNaCl (>=1.2.1)
+Requires-Dist: PyYAML (>=3.11)
+Requires-Dist: Pympler; extra == "cache_memory"
+Requires-Dist: Twisted[tls] (>=18.9.0)
+Requires-Dist: attrs (>=19.2.0,!=21.1.0)
+Requires-Dist: authlib (>=0.14.0); extra == "oidc" or extra == "all"
+Requires-Dist: bcrypt (>=3.1.0)
+Requires-Dist: bleach (>=1.4.3)
+Requires-Dist: canonicaljson (>=1.4.0)
+Requires-Dist: cryptography (>=3.4.7)
+Requires-Dist: frozendict (>=1,!=2.1.2)
+Requires-Dist: hiredis; extra == "redis" or extra == "all"
+Requires-Dist: idna (>=2.5); extra == "test"
+Requires-Dist: ijson (>=3.1.4)
+Requires-Dist: importlib_metadata (>=1.4); python_version < "3.8"
+Requires-Dist: jaeger-client (>=4.0.0); extra == "opentracing" or extra == "all"
+Requires-Dist: jsonschema (>=3.0.0)
+Requires-Dist: lxml (>=4.2.0); extra == "url_preview" or extra == "all"
+Requires-Dist: matrix-common (>=1.1.0,<1.2.0)
+Requires-Dist: matrix-synapse-ldap3 (>=0.1); extra == "matrix-synapse-ldap3" or extra == "all"
+Requires-Dist: msgpack (>=0.5.2)
+Requires-Dist: netaddr (>=0.7.18)
+Requires-Dist: opentracing (>=2.2.0); extra == "opentracing" or extra == "all"
+Requires-Dist: packaging (>=16.1)
+Requires-Dist: parameterized (>=0.7.4); extra == "test"
+Requires-Dist: phonenumbers (>=8.2.0)
+Requires-Dist: prometheus-client (>=0.4.0)
+Requires-Dist: psycopg2 (>=2.8); (platform_python_implementation != "PyPy") and (extra == "postgres" or extra == "all")
+Requires-Dist: psycopg2cffi (>=2.8); (platform_python_implementation == "PyPy") and (extra == "postgres" or extra == "all")
+Requires-Dist: psycopg2cffi-compat (==1.1); (platform_python_implementation == "PyPy") and (extra == "postgres" or extra == "all")
+Requires-Dist: pyOpenSSL (>=16.0.0)
+Requires-Dist: pyasn1 (>=0.1.9)
+Requires-Dist: pyasn1-modules (>=0.0.7)
+Requires-Dist: pyjwt (>=1.6.4); extra == "jwt" or extra == "all"
+Requires-Dist: pymacaroons (>=0.13.0)
+Requires-Dist: pysaml2 (>=4.5.0); extra == "saml2" or extra == "all"
+Requires-Dist: sentry-sdk (>=0.7.2); extra == "sentry" or extra == "all"
+Requires-Dist: service-identity (>=18.1.0)
+Requires-Dist: signedjson (>=1.1.0)
+Requires-Dist: sortedcontainers (>=1.4.4)
+Requires-Dist: systemd-python (>=231); extra == "systemd"
+Requires-Dist: treq (>=15.1)
+Requires-Dist: txredisapi (>=1.4.7); extra == "redis" or extra == "all"
+Requires-Dist: typing-extensions (>=3.10.0)
+Requires-Dist: unpaddedbase64 (>=2.1.0)
+Project-URL: Repository, https://github.com/matrix-org/synapse
+Description-Content-Type: text/x-rst
 
 =========================================================================
 Synapse |support| |development| |documentation| |license| |pypi| |python|
@@ -520,4 +565,3 @@
   :alt: (supported python versions)
   :target: https://pypi.org/project/matrix-synapse
 
-
diff -ru dist-stools/sdist/pyproject.toml dist-poetry/sdist/pyproject.toml
--- dist-stools/sdist/pyproject.toml	2022-04-20 16:10:46.000000000 +0100
+++ dist-poetry/sdist/pyproject.toml	2022-04-20 16:08:53.994304200 +0100
@@ -280,5 +280,5 @@
 towncrier = ">=18.6.0rc1"
 
 [build-system]
-requires = ["setuptools"]
-build-backend = "setuptools.build_meta"
+requires = ["poetry-core>=1.0.0"]
+build-backend = "poetry.core.masonry.api"
Only in dist-stools/sdist/scripts-dev: __pycache__
Only in dist-stools/sdist: setup.cfg
diff -ru dist-stools/sdist/setup.py dist-poetry/sdist/setup.py
--- dist-stools/sdist/setup.py	2022-04-20 16:10:46.000000000 +0100
+++ dist-poetry/sdist/setup.py	2022-04-20 16:09:28.121221300 +0100
@@ -1,183 +1,239 @@
-#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+from setuptools import setup
 
-# Copyright 2014-2017 OpenMarket Ltd
-# Copyright 2017 Vector Creations Ltd
-# Copyright 2017-2018 New Vector Ltd
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import os
-from typing import Any, Dict
-
-from setuptools import Command, find_packages, setup
-
-here = os.path.abspath(os.path.dirname(__file__))
-
-
-# Some notes on `setup.py test`:
-#
-# Once upon a time we used to try to make `setup.py test` run `tox` to run the
-# tests. That's a bad idea for three reasons:
-#
-# 1: `setup.py test` is supposed to find out whether the tests work in the
-#    *current* environmentt, not whatever tox sets up.
-# 2: Empirically, trying to install tox during the test run wasn't working ("No
-#    module named virtualenv").
-# 3: The tox documentation advises against it[1].
-#
-# Even further back in time, we used to use setuptools_trial [2]. That has its
-# own set of issues: for instance, it requires installation of Twisted to build
-# an sdist (because the recommended mode of usage is to add it to
-# `setup_requires`). That in turn means that in order to successfully run tox
-# you have to have the python header files installed for whichever version of
-# python tox uses (which is python3 on recent ubuntus, for example).
-#
-# So, for now at least, we stick with what appears to be the convention among
-# Twisted projects, and don't attempt to do anything when someone runs
-# `setup.py test`; instead we direct people to run `trial` directly if they
-# care.
-#
-# [1]: http://tox.readthedocs.io/en/2.5.0/example/basic.html#integration-with-setup-py-test-command
-# [2]: https://pypi.python.org/pypi/setuptools_trial
-class TestCommand(Command):
-    def initialize_options(self):
-        pass
-
-    def finalize_options(self):
-        pass
-
-    def run(self):
-        print(
-            """Synapse's tests cannot be run via setup.py. To run them, try:
-     PYTHONPATH="." trial tests
-"""
-        )
-
-
-def read_file(path_segments):
-    """Read a file from the package. Takes a list of strings to join to
-    make the path"""
-    file_path = os.path.join(here, *path_segments)
-    with open(file_path) as f:
-        return f.read()
-
-
-def exec_file(path_segments):
-    """Execute a single python file to get the variables defined in it"""
-    result: Dict[str, Any] = {}
-    code = read_file(path_segments)
-    exec(code, result)
-    return result
-
-
-version = exec_file(("synapse", "__init__.py"))["__version__"]
-dependencies = exec_file(("synapse", "python_dependencies.py"))
-long_description = read_file(("README.rst",))
-
-REQUIREMENTS = dependencies["REQUIREMENTS"]
-CONDITIONAL_REQUIREMENTS = dependencies["CONDITIONAL_REQUIREMENTS"]
-ALL_OPTIONAL_REQUIREMENTS = dependencies["ALL_OPTIONAL_REQUIREMENTS"]
-
-# Make `pip install matrix-synapse[all]` install all the optional dependencies.
-CONDITIONAL_REQUIREMENTS["all"] = list(ALL_OPTIONAL_REQUIREMENTS)
-
-# Developer dependencies should not get included in "all".
-#
-# We pin black so that our tests don't start failing on new releases.
-CONDITIONAL_REQUIREMENTS["lint"] = [
-    "isort==5.7.0",
-    "black==22.3.0",
-    "flake8-comprehensions",
-    "flake8-bugbear==21.3.2",
-    "flake8",
-]
-
-CONDITIONAL_REQUIREMENTS["mypy"] = [
-    "mypy==0.931",
-    "mypy-zope==0.3.5",
-    "types-bleach>=4.1.0",
-    "types-jsonschema>=3.2.0",
-    "types-opentracing>=2.4.2",
-    "types-Pillow>=8.3.4",
-    "types-psycopg2>=2.9.9",
-    "types-pyOpenSSL>=20.0.7",
-    "types-PyYAML>=5.4.10",
-    "types-requests>=2.26.0",
-    "types-setuptools>=57.4.0",
-]
-
-# Dependencies which are exclusively required by unit test code. This is
-# NOT a list of all modules that are necessary to run the unit tests.
-# Tests assume that all optional dependencies are installed.
-#
-# parameterized_class decorator was introduced in parameterized 0.7.0
-CONDITIONAL_REQUIREMENTS["test"] = ["parameterized>=0.7.0", "idna>=2.5"]
-
-CONDITIONAL_REQUIREMENTS["dev"] = (
-    CONDITIONAL_REQUIREMENTS["lint"]
-    + CONDITIONAL_REQUIREMENTS["mypy"]
-    + CONDITIONAL_REQUIREMENTS["test"]
-    + [
-        # The following are used by the release script
-        "click==8.1.0",
-        "redbaron==0.9.2",
-        "GitPython==3.1.14",
-        "commonmark==0.9.1",
-        "pygithub==1.55",
-        # The following are executed as commands by the release script.
-        "twine",
-        "towncrier",
-    ]
-)
-
-setup(
-    name="matrix-synapse",
-    version=version,
-    packages=find_packages(exclude=["tests", "tests.*"]),
-    description="Reference homeserver for the Matrix decentralised comms protocol",
-    install_requires=REQUIREMENTS,
-    extras_require=CONDITIONAL_REQUIREMENTS,
-    include_package_data=True,
-    zip_safe=False,
-    long_description=long_description,
-    long_description_content_type="text/x-rst",
-    python_requires="~=3.7",
-    entry_points={
-        "console_scripts": [
-            # Application
-            "synapse_homeserver = synapse.app.homeserver:main",
-            "synapse_worker = synapse.app.generic_worker:main",
-            "synctl = synapse._scripts.synctl:main",
-            # Scripts
-            "export_signing_key = synapse._scripts.export_signing_key:main",
-            "generate_config = synapse._scripts.generate_config:main",
-            "generate_log_config = synapse._scripts.generate_log_config:main",
-            "generate_signing_key = synapse._scripts.generate_signing_key:main",
-            "hash_password = synapse._scripts.hash_password:main",
-            "register_new_matrix_user = synapse._scripts.register_new_matrix_user:main",
-            "synapse_port_db = synapse._scripts.synapse_port_db:main",
-            "synapse_review_recent_signups = synapse._scripts.review_recent_signups:main",
-            "update_synapse_database = synapse._scripts.update_synapse_database:main",
-        ]
-    },
-    classifiers=[
-        "Development Status :: 5 - Production/Stable",
-        "Topic :: Communications :: Chat",
-        "License :: OSI Approved :: Apache Software License",
-        "Programming Language :: Python :: 3 :: Only",
-        "Programming Language :: Python :: 3.7",
-        "Programming Language :: Python :: 3.8",
-        "Programming Language :: Python :: 3.9",
-        "Programming Language :: Python :: 3.10",
-    ],
-    cmdclass={"test": TestCommand},
-)
+packages = \
+['synapse',
+ 'synapse._scripts',
+ 'synapse.api',
+ 'synapse.app',
+ 'synapse.appservice',
+ 'synapse.config',
+ 'synapse.crypto',
+ 'synapse.events',
+ 'synapse.federation',
+ 'synapse.federation.sender',
+ 'synapse.federation.transport',
+ 'synapse.federation.transport.server',
+ 'synapse.groups',
+ 'synapse.handlers',
+ 'synapse.handlers.ui_auth',
+ 'synapse.http',
+ 'synapse.http.federation',
+ 'synapse.logging',
+ 'synapse.metrics',
+ 'synapse.module_api',
+ 'synapse.push',
+ 'synapse.replication',
+ 'synapse.replication.http',
+ 'synapse.replication.slave',
+ 'synapse.replication.slave.storage',
+ 'synapse.replication.tcp',
+ 'synapse.replication.tcp.streams',
+ 'synapse.rest',
+ 'synapse.rest.admin',
+ 'synapse.rest.client',
+ 'synapse.rest.consent',
+ 'synapse.rest.key',
+ 'synapse.rest.key.v2',
+ 'synapse.rest.media',
+ 'synapse.rest.media.v1',
+ 'synapse.rest.synapse',
+ 'synapse.rest.synapse.client',
+ 'synapse.rest.synapse.client.oidc',
+ 'synapse.rest.synapse.client.saml2',
+ 'synapse.server_notices',
+ 'synapse.spam_checker_api',
+ 'synapse.state',
+ 'synapse.storage',
+ 'synapse.storage.databases',
+ 'synapse.storage.databases.main',
+ 'synapse.storage.databases.state',
+ 'synapse.storage.engines',
+ 'synapse.storage.schema',
+ 'synapse.storage.schema.main.delta.20',
+ 'synapse.storage.schema.main.delta.25',
+ 'synapse.storage.schema.main.delta.27',
+ 'synapse.storage.schema.main.delta.30',
+ 'synapse.storage.schema.main.delta.31',
+ 'synapse.storage.schema.main.delta.33',
+ 'synapse.storage.schema.main.delta.34',
+ 'synapse.storage.schema.main.delta.37',
+ 'synapse.storage.schema.main.delta.42',
+ 'synapse.storage.schema.main.delta.48',
+ 'synapse.storage.schema.main.delta.50',
+ 'synapse.storage.schema.main.delta.56',
+ 'synapse.storage.schema.main.delta.57',
+ 'synapse.storage.schema.main.delta.58',
+ 'synapse.storage.schema.main.delta.59',
+ 'synapse.storage.schema.main.delta.61',
+ 'synapse.storage.schema.main.delta.68',
+ 'synapse.storage.schema.main.delta.69',
+ 'synapse.storage.schema.state.delta.47',
+ 'synapse.storage.util',
+ 'synapse.streams',
+ 'synapse.util',
+ 'synapse.util.caches']
+
+package_data = \
+{'': ['*'],
+ 'synapse': ['res/*',
+             'res/templates/*',
+             'static/*',
+             'static/client/login/*',
+             'static/client/login/js/*',
+             'static/client/register/*',
+             'static/client/register/js/*'],
+ 'synapse.storage.schema': ['common/*',
+                            'common/delta/25/*',
+                            'common/delta/35/*',
+                            'common/delta/58/*',
+                            'common/full_schemas/54/*',
+                            'main/delta/12/*',
+                            'main/delta/13/*',
+                            'main/delta/14/*',
+                            'main/delta/15/*',
+                            'main/delta/16/*',
+                            'main/delta/17/*',
+                            'main/delta/18/*',
+                            'main/delta/19/*',
+                            'main/delta/21/*',
+                            'main/delta/22/*',
+                            'main/delta/24/*',
+                            'main/delta/26/*',
+                            'main/delta/28/*',
+                            'main/delta/29/*',
+                            'main/delta/32/*',
+                            'main/delta/35/*',
+                            'main/delta/36/*',
+                            'main/delta/38/*',
+                            'main/delta/39/*',
+                            'main/delta/40/*',
+                            'main/delta/41/*',
+                            'main/delta/43/*',
+                            'main/delta/44/*',
+                            'main/delta/45/*',
+                            'main/delta/46/*',
+                            'main/delta/47/*',
+                            'main/delta/49/*',
+                            'main/delta/51/*',
+                            'main/delta/52/*',
+                            'main/delta/53/*',
+                            'main/delta/54/*',
+                            'main/delta/55/*',
+                            'main/delta/60/*',
+                            'main/delta/62/*',
+                            'main/delta/63/*',
+                            'main/delta/64/*',
+                            'main/delta/65/*',
+                            'main/delta/67/*',
+                            'main/full_schemas/16/*',
+                            'main/full_schemas/54/*',
+                            'state/delta/23/*',
+                            'state/delta/30/*',
+                            'state/delta/32/*',
+                            'state/delta/35/*',
+                            'state/delta/56/*',
+                            'state/delta/61/*',
+                            'state/full_schemas/54/*']}
+
+install_requires = \
+['Jinja2>=3.0',
+ 'Pillow>=5.4.0',
+ 'PyNaCl>=1.2.1',
+ 'PyYAML>=3.11',
+ 'Twisted[tls]>=18.9.0',
+ 'attrs>=19.2.0,!=21.1.0',
+ 'bcrypt>=3.1.0',
+ 'bleach>=1.4.3',
+ 'canonicaljson>=1.4.0',
+ 'cryptography>=3.4.7',
+ 'frozendict>=1,!=2.1.2',
+ 'ijson>=3.1.4',
+ 'jsonschema>=3.0.0',
+ 'matrix-common>=1.1.0,<1.2.0',
+ 'msgpack>=0.5.2',
+ 'netaddr>=0.7.18',
+ 'packaging>=16.1',
+ 'phonenumbers>=8.2.0',
+ 'prometheus-client>=0.4.0',
+ 'pyOpenSSL>=16.0.0',
+ 'pyasn1-modules>=0.0.7',
+ 'pyasn1>=0.1.9',
+ 'pymacaroons>=0.13.0',
+ 'service-identity>=18.1.0',
+ 'signedjson>=1.1.0',
+ 'sortedcontainers>=1.4.4',
+ 'treq>=15.1',
+ 'typing-extensions>=3.10.0',
+ 'unpaddedbase64>=2.1.0']
+
+extras_require = \
+{':python_version < "3.8"': ['importlib_metadata>=1.4'],
+ 'all': ['matrix-synapse-ldap3>=0.1',
+         'pysaml2>=4.5.0',
+         'authlib>=0.14.0',
+         'lxml>=4.2.0',
+         'sentry-sdk>=0.7.2',
+         'opentracing>=2.2.0',
+         'jaeger-client>=4.0.0',
+         'pyjwt>=1.6.4',
+         'txredisapi>=1.4.7',
+         'hiredis'],
+ 'all:platform_python_implementation != "PyPy"': ['psycopg2>=2.8'],
+ 'all:platform_python_implementation == "PyPy"': ['psycopg2cffi>=2.8',
+                                                  'psycopg2cffi-compat==1.1'],
+ 'cache_memory': ['Pympler'],
+ 'jwt': ['pyjwt>=1.6.4'],
+ 'matrix-synapse-ldap3': ['matrix-synapse-ldap3>=0.1'],
+ 'oidc': ['authlib>=0.14.0'],
+ 'opentracing': ['opentracing>=2.2.0', 'jaeger-client>=4.0.0'],
+ 'postgres:platform_python_implementation != "PyPy"': ['psycopg2>=2.8'],
+ 'postgres:platform_python_implementation == "PyPy"': ['psycopg2cffi>=2.8',
+                                                       'psycopg2cffi-compat==1.1'],
+ 'redis': ['txredisapi>=1.4.7', 'hiredis'],
+ 'saml2': ['pysaml2>=4.5.0'],
+ 'sentry': ['sentry-sdk>=0.7.2'],
+ 'systemd': ['systemd-python>=231'],
+ 'test': ['parameterized>=0.7.4', 'idna>=2.5'],
+ 'url_preview': ['lxml>=4.2.0']}
+
+entry_points = \
+{'console_scripts': ['export_signing_key = '
+                     'synapse._scripts.export_signing_key:main',
+                     'generate_config = synapse._scripts.generate_config:main',
+                     'generate_log_config = '
+                     'synapse._scripts.generate_log_config:main',
+                     'generate_signing_key = '
+                     'synapse._scripts.generate_signing_key:main',
+                     'hash_password = synapse._scripts.hash_password:main',
+                     'register_new_matrix_user = '
+                     'synapse._scripts.register_new_matrix_user:main',
+                     'synapse_homeserver = synapse.app.homeserver:main',
+                     'synapse_port_db = synapse._scripts.synapse_port_db:main',
+                     'synapse_review_recent_signups = '
+                     'synapse._scripts.review_recent_signups:main',
+                     'synapse_worker = synapse.app.generic_worker:main',
+                     'synctl = synapse._scripts.synctl:main',
+                     'update_synapse_database = '
+                     'synapse._scripts.update_synapse_database:main']}
+
+setup_kwargs = {
+    'name': 'matrix-synapse',
+    'version': '1.57.0',
+    'description': 'Homeserver for the Matrix decentralised comms protocol',
+    'long_description': '=========================================================================\nSynapse |support| |development| |documentation| |license| |pypi| |python|\n=========================================================================\n\n.. contents::\n\nIntroduction\n============\n\nMatrix is an ambitious new ecosystem for open federated Instant Messaging and\nVoIP.  The basics you need to know to get up and running are:\n\n- Everything in Matrix happens in a room.  Rooms are distributed and do not\n  exist on any single server.  Rooms can be located using convenience aliases\n  like ``#matrix:matrix.org`` or ``#test:localhost:8448``.\n\n- Matrix user IDs look like ``@matthew:matrix.org`` (although in the future\n  you will normally refer to yourself and others using a third party identifier\n  (3PID): email address, phone number, etc rather than manipulating Matrix user IDs)\n\nThe overall architecture is::\n\n      client <----> homeserver <=====================> homeserver <----> client\n             https://somewhere.org/_matrix      https://elsewhere.net/_matrix\n\n``#matrix:matrix.org`` is the official support room for Matrix, and can be\naccessed by any client from https://matrix.org/docs/projects/try-matrix-now.html or\nvia IRC bridge at irc://irc.libera.chat/matrix.\n\nSynapse is currently in rapid development, but as of version 0.5 we believe it\nis sufficiently stable to be run as an internet-facing service for real usage!\n\nAbout Matrix\n============\n\nMatrix specifies a set of pragmatic RESTful HTTP JSON APIs as an open standard,\nwhich handle:\n\n- Creating and managing fully distributed chat rooms with no\n  single points of control or failure\n- Eventually-consistent cryptographically secure synchronisation of room\n  state across a global open network of federated servers and services\n- Sending and receiving extensible messages in a room with (optional)\n  end-to-end encryption\n- Inviting, joining, leaving, kicking, banning room members\n- Managing user accounts (registration, login, logout)\n- Using 3rd Party IDs (3PIDs) such as email addresses, phone numbers,\n  Facebook accounts to authenticate, identify and discover users on Matrix.\n- Placing 1:1 VoIP and Video calls\n\nThese APIs are intended to be implemented on a wide range of servers, services\nand clients, letting developers build messaging and VoIP functionality on top\nof the entirely open Matrix ecosystem rather than using closed or proprietary\nsolutions. The hope is for Matrix to act as the building blocks for a new\ngeneration of fully open and interoperable messaging and VoIP apps for the\ninternet.\n\nSynapse is a Matrix "homeserver" implementation developed by the matrix.org core \nteam, written in Python 3/Twisted.\n\nIn Matrix, every user runs one or more Matrix clients, which connect through to\na Matrix homeserver. The homeserver stores all their personal chat history and\nuser account information - much as a mail client connects through to an\nIMAP/SMTP server. Just like email, you can either run your own Matrix\nhomeserver and control and own your own communications and history or use one\nhosted by someone else (e.g. matrix.org) - there is no single point of control\nor mandatory service provider in Matrix, unlike WhatsApp, Facebook, Hangouts,\netc.\n\nWe\'d like to invite you to join #matrix:matrix.org (via\nhttps://matrix.org/docs/projects/try-matrix-now.html), run a homeserver, take a look\nat the `Matrix spec <https://matrix.org/docs/spec>`_, and experiment with the\n`APIs <https://matrix.org/docs/api>`_ and `Client SDKs\n<https://matrix.org/docs/projects/try-matrix-now.html#client-sdks>`_.\n\nThanks for using Matrix!\n\nSupport\n=======\n\nFor support installing or managing Synapse, please join |room|_ (from a matrix.org\naccount if necessary) and ask questions there. We do not use GitHub issues for\nsupport requests, only for bug reports and feature requests.\n\nSynapse\'s documentation is `nicely rendered on GitHub Pages <https://matrix-org.github.io/synapse>`_,\nwith its source available in |docs|_.\n\n.. |room| replace:: ``#synapse:matrix.org``\n.. _room: https://matrix.to/#/#synapse:matrix.org\n\n.. |docs| replace:: ``docs``\n.. _docs: docs\n\nSynapse Installation\n====================\n\n.. _federation:\n\n* For details on how to install synapse, see\n  `Installation Instructions <https://matrix-org.github.io/synapse/latest/setup/installation.html>`_.\n* For specific details on how to configure Synapse for federation see `docs/federate.md <docs/federate.md>`_\n\n\nConnecting to Synapse from a client\n===================================\n\nThe easiest way to try out your new Synapse installation is by connecting to it\nfrom a web client.\n\nUnless you are running a test instance of Synapse on your local machine, in\ngeneral, you will need to enable TLS support before you can successfully\nconnect from a client: see\n`TLS certificates <https://matrix-org.github.io/synapse/latest/setup/installation.html#tls-certificates>`_.\n\nAn easy way to get started is to login or register via Element at\nhttps://app.element.io/#/login or https://app.element.io/#/register respectively.\nYou will need to change the server you are logging into from ``matrix.org``\nand instead specify a Homeserver URL of ``https://<server_name>:8448``\n(or just ``https://<server_name>`` if you are using a reverse proxy).\nIf you prefer to use another client, refer to our\n`client breakdown <https://matrix.org/docs/projects/clients-matrix>`_.\n\nIf all goes well you should at least be able to log in, create a room, and\nstart sending messages.\n\n.. _`client-user-reg`:\n\nRegistering a new user from a client\n------------------------------------\n\nBy default, registration of new users via Matrix clients is disabled. To enable\nit, specify ``enable_registration: true`` in ``homeserver.yaml``. (It is then\nrecommended to also set up CAPTCHA - see `<docs/CAPTCHA_SETUP.md>`_.)\n\nOnce ``enable_registration`` is set to ``true``, it is possible to register a\nuser via a Matrix client.\n\nYour new user name will be formed partly from the ``server_name``, and partly\nfrom a localpart you specify when you create the account. Your name will take\nthe form of::\n\n    @localpart:my.domain.name\n\n(pronounced "at localpart on my dot domain dot name").\n\nAs when logging in, you will need to specify a "Custom server".  Specify your\ndesired ``localpart`` in the \'User name\' box.\n\nSecurity note\n=============\n\nMatrix serves raw, user-supplied data in some APIs -- specifically the `content\nrepository endpoints`_.\n\n.. _content repository endpoints: https://matrix.org/docs/spec/client_server/latest.html#get-matrix-media-r0-download-servername-mediaid\n\nWhilst we make a reasonable effort to mitigate against XSS attacks (for\ninstance, by using `CSP`_), a Matrix homeserver should not be hosted on a\ndomain hosting other web applications. This especially applies to sharing\nthe domain with Matrix web clients and other sensitive applications like\nwebmail. See\nhttps://developer.github.com/changes/2014-04-25-user-content-security for more\ninformation.\n\n.. _CSP: https://github.com/matrix-org/synapse/pull/1021\n\nIdeally, the homeserver should not simply be on a different subdomain, but on\na completely different `registered domain`_ (also known as top-level site or\neTLD+1). This is because `some attacks`_ are still possible as long as the two\napplications share the same registered domain.\n\n.. _registered domain: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-2.3\n\n.. _some attacks: https://en.wikipedia.org/wiki/Session_fixation#Attacks_using_cross-subdomain_cookie\n\nTo illustrate this with an example, if your Element Web or other sensitive web\napplication is hosted on ``A.example1.com``, you should ideally host Synapse on\n``example2.com``. Some amount of protection is offered by hosting on\n``B.example1.com`` instead, so this is also acceptable in some scenarios.\nHowever, you should *not* host your Synapse on ``A.example1.com``.\n\nNote that all of the above refers exclusively to the domain used in Synapse\'s\n``public_baseurl`` setting. In particular, it has no bearing on the domain\nmentioned in MXIDs hosted on that server.\n\nFollowing this advice ensures that even if an XSS is found in Synapse, the\nimpact to other applications will be minimal.\n\n\nUpgrading an existing Synapse\n=============================\n\nThe instructions for upgrading synapse are in `the upgrade notes`_.\nPlease check these instructions as upgrading may require extra steps for some\nversions of synapse.\n\n.. _the upgrade notes: https://matrix-org.github.io/synapse/develop/upgrade.html\n\n.. _reverse-proxy:\n\nUsing a reverse proxy with Synapse\n==================================\n\nIt is recommended to put a reverse proxy such as\n`nginx <https://nginx.org/en/docs/http/ngx_http_proxy_module.html>`_,\n`Apache <https://httpd.apache.org/docs/current/mod/mod_proxy_http.html>`_,\n`Caddy <https://caddyserver.com/docs/quick-starts/reverse-proxy>`_,\n`HAProxy <https://www.haproxy.org/>`_ or\n`relayd <https://man.openbsd.org/relayd.8>`_ in front of Synapse. One advantage of\ndoing so is that it means that you can expose the default https port (443) to\nMatrix clients without needing to run Synapse with root privileges.\n\nFor information on configuring one, see `<docs/reverse_proxy.md>`_.\n\nIdentity Servers\n================\n\nIdentity servers have the job of mapping email addresses and other 3rd Party\nIDs (3PIDs) to Matrix user IDs, as well as verifying the ownership of 3PIDs\nbefore creating that mapping.\n\n**They are not where accounts or credentials are stored - these live on home\nservers. Identity Servers are just for mapping 3rd party IDs to matrix IDs.**\n\nThis process is very security-sensitive, as there is obvious risk of spam if it\nis too easy to sign up for Matrix accounts or harvest 3PID data. In the longer\nterm, we hope to create a decentralised system to manage it (`matrix-doc #712\n<https://github.com/matrix-org/matrix-doc/issues/712>`_), but in the meantime,\nthe role of managing trusted identity in the Matrix ecosystem is farmed out to\na cluster of known trusted ecosystem partners, who run \'Matrix Identity\nServers\' such as `Sydent <https://github.com/matrix-org/sydent>`_, whose role\nis purely to authenticate and track 3PID logins and publish end-user public\nkeys.\n\nYou can host your own copy of Sydent, but this will prevent you reaching other\nusers in the Matrix ecosystem via their email address, and prevent them finding\nyou. We therefore recommend that you use one of the centralised identity servers\nat ``https://matrix.org`` or ``https://vector.im`` for now.\n\nTo reiterate: the Identity server will only be used if you choose to associate\nan email address with your account, or send an invite to another user via their\nemail address.\n\n\nPassword reset\n==============\n\nUsers can reset their password through their client. Alternatively, a server admin\ncan reset a users password using the `admin API <docs/admin_api/user_admin_api.md#reset-password>`_\nor by directly editing the database as shown below.\n\nFirst calculate the hash of the new password::\n\n    $ ~/synapse/env/bin/hash_password\n    Password:\n    Confirm password:\n    $2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\nThen update the ``users`` table in the database::\n\n    UPDATE users SET password_hash=\'$2a$12$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\'\n        WHERE name=\'@test:test.com\';\n\n\nSynapse Development\n===================\n\nThe best place to get started is our\n`guide for contributors <https://matrix-org.github.io/synapse/latest/development/contributing_guide.html>`_.\nThis is part of our larger `documentation <https://matrix-org.github.io/synapse/latest>`_, which includes\ninformation for synapse developers as well as synapse administrators.\n\nDevelopers might be particularly interested in:\n\n* `Synapse\'s database schema <https://matrix-org.github.io/synapse/latest/development/database_schema.html>`_,\n* `notes on Synapse\'s implementation details <https://matrix-org.github.io/synapse/latest/development/internal_documentation/index.html>`_, and\n* `how we use git <https://matrix-org.github.io/synapse/latest/development/git.html>`_.\n\nAlongside all that, join our developer community on Matrix:\n`#synapse-dev:matrix.org <https://matrix.to/#/#synapse-dev:matrix.org>`_, featuring real humans!\n\n\nQuick start\n-----------\n\nBefore setting up a development environment for synapse, make sure you have the\nsystem dependencies (such as the python header files) installed - see\n`Platform-specific prerequisites <https://matrix-org.github.io/synapse/latest/setup/installation.html#platform-specific-prerequisites>`_.\n\nTo check out a synapse for development, clone the git repo into a working\ndirectory of your choice::\n\n    git clone https://github.com/matrix-org/synapse.git\n    cd synapse\n\nSynapse has a number of external dependencies. We maintain a fixed development\nenvironment using [poetry](https://python-poetry.org/). First, install poetry. We recommend\n\n    pip install --user pipx\n    pipx install poetry\n\nas described `here <https://python-poetry.org/docs/#installing-with-pipx>`_.\n(See `poetry\'s installation docs <https://python-poetry.org/docs/#installation>`\nfor other installation methods.) Then ask poetry to create a virtual environment\nfrom the project and install Synapse\'s dependencies::\n\n    poetry install --extras "all test"\n\nThis will run a process of downloading and installing all the needed\ndependencies into a virtual env.\n\nWe recommend using the demo which starts 3 federated instances running on ports `8080` - `8082`\n\n    poetry run ./demo/start.sh\n\n(to stop, you can use `poetry run ./demo/stop.sh`)\n\nSee the `demo documentation <https://matrix-org.github.io/synapse/develop/development/demo.html>`_\nfor more information.\n\nIf you just want to start a single instance of the app and run it directly::\n\n    # Create the homeserver.yaml config once\n    poetry run synapse_homeserver \\\n      --server-name my.domain.name \\\n      --config-path homeserver.yaml \\\n      --generate-config \\\n      --report-stats=[yes|no]\n\n    # Start the app\n    poetry run synapse_homeserver --config-path homeserver.yaml\n\n\nRunning the unit tests\n----------------------\n\nAfter getting up and running, you may wish to run Synapse\'s unit tests to\ncheck that everything is installed correctly::\n\n    poetry run trial tests\n\nThis should end with a \'PASSED\' result (note that exact numbers will\ndiffer)::\n\n    Ran 1337 tests in 716.064s\n\n    PASSED (skips=15, successes=1322)\n\nFor more tips on running the unit tests, like running a specific test or\nto see the logging output, see the `CONTRIBUTING doc <CONTRIBUTING.md#run-the-unit-tests>`_.\n\n\nRunning the Integration Tests\n-----------------------------\n\nSynapse is accompanied by `SyTest <https://github.com/matrix-org/sytest>`_,\na Matrix homeserver integration testing suite, which uses HTTP requests to\naccess the API as a Matrix client would. It is able to run Synapse directly from\nthe source tree, so installation of the server is not required.\n\nTesting with SyTest is recommended for verifying that changes related to the\nClient-Server API are functioning correctly. See the `SyTest installation\ninstructions <https://github.com/matrix-org/sytest#installing>`_ for details.\n\n\nPlatform dependencies\n=====================\n\nSynapse uses a number of platform dependencies such as Python and PostgreSQL,\nand aims to follow supported upstream versions. See the\n`<docs/deprecation_policy.md>`_ document for more details.\n\n\nTroubleshooting\n===============\n\nNeed help? Join our community support room on Matrix:\n`#synapse:matrix.org <https://matrix.to/#/#synapse:matrix.org>`_\n\nRunning out of File Handles\n---------------------------\n\nIf synapse runs out of file handles, it typically fails badly - live-locking\nat 100% CPU, and/or failing to accept new TCP connections (blocking the\nconnecting client).  Matrix currently can legitimately use a lot of file handles,\nthanks to busy rooms like #matrix:matrix.org containing hundreds of participating\nservers.  The first time a server talks in a room it will try to connect\nsimultaneously to all participating servers, which could exhaust the available\nfile descriptors between DNS queries & HTTPS sockets, especially if DNS is slow\nto respond. (We need to improve the routing algorithm used to be better than\nfull mesh, but as of March 2019 this hasn\'t happened yet).\n\nIf you hit this failure mode, we recommend increasing the maximum number of\nopen file handles to be at least 4096 (assuming a default of 1024 or 256).\nThis is typically done by editing ``/etc/security/limits.conf``\n\nSeparately, Synapse may leak file handles if inbound HTTP requests get stuck\nduring processing - e.g. blocked behind a lock or talking to a remote server etc.\nThis is best diagnosed by matching up the \'Received request\' and \'Processed request\'\nlog lines and looking for any \'Processed request\' lines which take more than\na few seconds to execute. Please let us know at #synapse:matrix.org if\nyou see this failure mode so we can help debug it, however.\n\nHelp!! Synapse is slow and eats all my RAM/CPU!\n-----------------------------------------------\n\nFirst, ensure you are running the latest version of Synapse, using Python 3\nwith a PostgreSQL database.\n\nSynapse\'s architecture is quite RAM hungry currently - we deliberately\ncache a lot of recent room data and metadata in RAM in order to speed up\ncommon requests. We\'ll improve this in the future, but for now the easiest\nway to either reduce the RAM usage (at the risk of slowing things down)\nis to set the almost-undocumented ``SYNAPSE_CACHE_FACTOR`` environment\nvariable. The default is 0.5, which can be decreased to reduce RAM usage\nin memory constrained enviroments, or increased if performance starts to\ndegrade.\n\nHowever, degraded performance due to a low cache factor, common on\nmachines with slow disks, often leads to explosions in memory use due\nbacklogged requests. In this case, reducing the cache factor will make\nthings worse. Instead, try increasing it drastically. 2.0 is a good\nstarting value.\n\nUsing `libjemalloc <http://jemalloc.net/>`_ can also yield a significant\nimprovement in overall memory use, and especially in terms of giving back\nRAM to the OS. To use it, the library must simply be put in the\nLD_PRELOAD environment variable when launching Synapse. On Debian, this\ncan be done by installing the ``libjemalloc1`` package and adding this\nline to ``/etc/default/matrix-synapse``::\n\n    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1\n\nThis can make a significant difference on Python 2.7 - it\'s unclear how\nmuch of an improvement it provides on Python 3.x.\n\nIf you\'re encountering high CPU use by the Synapse process itself, you\nmay be affected by a bug with presence tracking that leads to a\nmassive excess of outgoing federation requests (see `discussion\n<https://github.com/matrix-org/synapse/issues/3971>`_). If metrics\nindicate that your server is also issuing far more outgoing federation\nrequests than can be accounted for by your users\' activity, this is a\nlikely cause. The misbehavior can be worked around by setting\nthe following in the Synapse config file:\n\n.. code-block:: yaml\n\n   presence:\n       enabled: false\n\nPeople can\'t accept room invitations from me\n--------------------------------------------\n\nThe typical failure mode here is that you send an invitation to someone\nto join a room or direct chat, but when they go to accept it, they get an\nerror (typically along the lines of "Invalid signature"). They might see\nsomething like the following in their logs::\n\n    2019-09-11 19:32:04,271 - synapse.federation.transport.server - 288 - WARNING - GET-11752 - authenticate_request failed: 401: Invalid signature for server <server> with key ed25519:a_EqML: Unable to verify signature for <server>\n\nThis is normally caused by a misconfiguration in your reverse-proxy. See\n`<docs/reverse_proxy.md>`_ and double-check that your settings are correct.\n\n.. |support| image:: https://img.shields.io/matrix/synapse:matrix.org?label=support&logo=matrix\n  :alt: (get support on #synapse:matrix.org)\n  :target: https://matrix.to/#/#synapse:matrix.org\n\n.. |development| image:: https://img.shields.io/matrix/synapse-dev:matrix.org?label=development&logo=matrix\n  :alt: (discuss development on #synapse-dev:matrix.org)\n  :target: https://matrix.to/#/#synapse-dev:matrix.org\n\n.. |documentation| image:: https://img.shields.io/badge/documentation-%E2%9C%93-success\n  :alt: (Rendered documentation on GitHub Pages)\n  :target: https://matrix-org.github.io/synapse/latest/\n\n.. |license| image:: https://img.shields.io/github/license/matrix-org/synapse\n  :alt: (check license in LICENSE file)\n  :target: LICENSE\n\n.. |pypi| image:: https://img.shields.io/pypi/v/matrix-synapse\n  :alt: (latest version released on PyPi)\n  :target: https://pypi.org/project/matrix-synapse\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/matrix-synapse\n  :alt: (supported python versions)\n  :target: https://pypi.org/project/matrix-synapse\n',
+    'author': 'Matrix.org Team and Contributors',
+    'author_email': 'packages@matrix.org',
+    'maintainer': None,
+    'maintainer_email': None,
+    'url': 'https://github.com/matrix-org/synapse',
+    'packages': packages,
+    'package_data': package_data,
+    'install_requires': install_requires,
+    'extras_require': extras_require,
+    'entry_points': entry_points,
+    'python_requires': '>=3.7,<4.0',
+}
+
+
+setup(**setup_kwargs)
diff -ru dist-stools/sdist/synapse/__init__.py dist-poetry/sdist/synapse/__init__.py
--- dist-stools/sdist/synapse/__init__.py	2022-04-20 16:10:46.000000000 +0100
+++ dist-poetry/sdist/synapse/__init__.py	2022-04-20 16:08:53.994304200 +0100
@@ -20,6 +20,8 @@
 import os
 import sys
 
+from matrix_common.versionstring import get_distribution_version_string
+
 # Check that we're not running on an unsupported Python version.
 if sys.version_info < (3, 7):
     print("Synapse requires Python 3.7 or above.")
@@ -68,7 +70,7 @@
 except ImportError:
     pass
 
-__version__ = "1.57.0"
+__version__ = get_distribution_version_string("matrix-synapse")
 
 if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
     # We import here so that we don't have to install a bunch of deps when
Only in dist-stools/sdist/synapse: python_dependencies.py
Only in dist-poetry/sdist: sytest-blacklist

pyproject.toml Show resolved Hide resolved
synapse/__init__.py Show resolved Hide resolved
@reivilibre
Copy link
Contributor

reivilibre commented Apr 20, 2022

Suspicious changes to Wheel:

  • Only in dist-stools/wheel: synmark
    EDIT: This seems fine, it looks like it's just helper code for development? This is a good change then, IMO

Suspicious changes to Sdist:

Only in dist-poetry/sdist/changelog.d: 12337.feature
Only in dist-poetry/sdist/changelog.d: 12478.misc

Can't see anything else suspicious.

Just checking and stating explicitly: The sdist doesn't have the lockfile. I presume but don't know that we don't want it in the sdist because that means users of PyPI will get locked dependencies?

Copy link
Contributor

@reivilibre reivilibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good to go. I'm not even sure changelog.d deserves to be exempt from the sdist; it's still an aspect of the source repository and therefore makes sense to include if you squint a little bit.

@DMRobertson
Copy link
Contributor Author

DMRobertson commented Apr 20, 2022

Suspicious changes to Wheel:

* `Only in dist-stools/wheel: synmark`
  EDIT: This seems fine, it looks like it's just helper code for development? This is a good change then, IMO

I think this is some kind of performance testing suite. It looks like we've only used it to test the performance costs of implementation choices, and even then rarely. I don't think anyone installing a homeserver cares.

Suspicious changes to Sdist:

Only in dist-poetry/sdist/changelog.d: 12337.feature
Only in dist-poetry/sdist/changelog.d: 12478.misc

FWIW my thinking behind configuring the sdist was that you could continue on the project's development from it, if github were to suddenly fall over and everyone's checkouts vanished. The description of an sdist at https://packaging.python.org/en/latest/specifications/source-distribution-format/ is vague:

A .tar.gz source distribution (sdist) contains a single top-level directory called {name}-{version} (e.g. foo-1.0), containing the source files of the package. [...]

No other content of a sdist is required or defined. Build systems can store whatever information they need in the sdist to build the project.

But this sounds more like "include what you need to build a wheel" rather than "include the entire project's paraphernalia".

@DMRobertson
Copy link
Contributor Author

Just checking and stating explicitly: The sdist doesn't have the lockfile. I presume but don't know that we don't want it in the sdist because that means users of PyPI will get locked dependencies?

I think this is just poetry's default behaviour. I think if the lockfile were in the package then it would be completely ignored when pip installs Synapse---the installer would get unlocked dependencies.

In general, PyPI distributed things have broad, flexible dependencies and I think that's how we want to keep doing things for now. (It maintains the status quo, if nothing else.)

@DMRobertson
Copy link
Contributor Author

Note that it's pretty easy to control what gets added into the sdist:

synapse/pyproject.toml

Lines 70 to 84 in 3ad74b6

include = [
{ path = "AUTHORS.rst", format = "sdist" },
{ path = "book.toml", format = "sdist" },
{ path = "changelog.d", format = "sdist" },
{ path = "CHANGES.md", format = "sdist" },
{ path = "CONTRIBUTING.md", format = "sdist" },
{ path = "demo", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "INSTALL.md", format = "sdist" },
{ path = "mypy.ini", format = "sdist" },
{ path = "scripts-dev", format = "sdist" },
{ path = "synmark", format="sdist" },
{ path = "sytest-blacklist", format = "sdist" },
{ path = "tests", format = "sdist" },
{ path = "UPGRADE.rst", format = "sdist" },

I don't think any of those are actually required to build a wheel.

@DMRobertson DMRobertson merged commit e5a76ec into develop Apr 20, 2022
@DMRobertson DMRobertson deleted the dmr/goodbye-setuptools branch April 20, 2022 16:33
DMRobertson pushed a commit that referenced this pull request Apr 20, 2022
DMRobertson pushed a commit that referenced this pull request Apr 20, 2022
* Remove leftover references to setup.py

Missed in #12478.

* Changelog
babolivier added a commit to matrix-org/synapse-dinsic that referenced this pull request Apr 28, 2022
Synapse 1.58.0rc1 (2022-04-26)
==============================

As of this release, the groups/communities feature in Synapse is now disabled by default. See [\#11584](matrix-org/synapse#11584) for details. As mentioned in [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1580), this feature will be removed in Synapse 1.61.

Features
--------

- Implement [MSC3383](matrix-org/matrix-spec-proposals#3383) for including the destination in server-to-server authentication headers. Contributed by @Bubu and @jcgruenhage for Famedly. ([\#11398](matrix-org/synapse#11398))
- Docker images and Debian packages from matrix.org now contain a locked set of Python dependencies, greatly improving build reproducibility. ([Board](https://github.com/orgs/matrix-org/projects/54), [\#11537](matrix-org/synapse#11537))
- Enable processing of device list updates asynchronously. ([\#12365](matrix-org/synapse#12365), [\#12465](matrix-org/synapse#12465))
- Implement [MSC2815](matrix-org/matrix-spec-proposals#2815) to allow room moderators to view redacted event content. Contributed by @tulir. ([\#12427](matrix-org/synapse#12427))
- Build Debian packages for Ubuntu 22.04 "Jammy Jellyfish". ([\#12543](matrix-org/synapse#12543))

Bugfixes
--------

- Prevent a sync request from removing a user's busy presence status. ([\#12213](matrix-org/synapse#12213))
- Fix bug with incremental sync missing events when rejoining/backfilling. Contributed by Nick @ Beeper. ([\#12319](matrix-org/synapse#12319))
- Fix a long-standing bug which incorrectly caused `GET /_matrix/client/v3/rooms/{roomId}/event/{eventId}` to return edited events rather than the original. ([\#12476](matrix-org/synapse#12476))
- Fix a bug introduced in Synapse 1.27.0 where the admin API for [deleting forward extremities](https://github.com/matrix-org/synapse/blob/erikj/fix_delete_event_response_count/docs/admin_api/rooms.md#deleting-forward-extremities) would always return a count of 1, no matter how many extremities were deleted. ([\#12496](matrix-org/synapse#12496))
- Fix a long-standing bug where the image thumbnails embedded into email notifications were broken. ([\#12510](matrix-org/synapse#12510))
- Fix a bug in the implementation of [MSC3202](matrix-org/matrix-spec-proposals#3202) where Synapse would use the field name `device_unused_fallback_keys`, rather than `device_unused_fallback_key_types`. ([\#12520](matrix-org/synapse#12520))
- Fix a bug introduced in Synapse 0.99.3 which could cause Synapse to consume large amounts of RAM when back-paginating in a large room. ([\#12522](matrix-org/synapse#12522))

Improved Documentation
----------------------

- Fix rendering of the documentation site when using the 'print' feature. ([\#12340](matrix-org/synapse#12340))
- Add a manual documenting config file options. ([\#12368](matrix-org/synapse#12368), [\#12527](matrix-org/synapse#12527))
- Update documentation to reflect that both the `run_background_tasks_on` option and the options for moving stream writers off of the main process are no longer experimental. ([\#12451](matrix-org/synapse#12451))
- Update worker documentation and replace old `federation_reader` with `generic_worker`. ([\#12457](matrix-org/synapse#12457))
- Strongly recommend [Poetry](https://python-poetry.org/) for development. ([\#12475](matrix-org/synapse#12475))
- Add some example configurations for workers and update architectural diagram. ([\#12492](matrix-org/synapse#12492))
- Fix a broken link in `README.rst`. ([\#12495](matrix-org/synapse#12495))
- Add HAProxy delegation example with CORS headers to docs. ([\#12501](matrix-org/synapse#12501))
- Remove extraneous comma in User Admin API's device deletion section so that the example JSON is actually valid and works. Contributed by @olmari. ([\#12533](matrix-org/synapse#12533))

Deprecations and Removals
-------------------------

- The groups/communities feature in Synapse is now disabled by default. ([\#12344](matrix-org/synapse#12344))
- Remove unstable identifiers from [MSC3440](matrix-org/matrix-spec-proposals#3440). ([\#12382](matrix-org/synapse#12382))

Internal Changes
----------------

- Preparation for faster-room-join work: start a background process to resynchronise the room state after a room join. ([\#12394](matrix-org/synapse#12394))
- Preparation for faster-room-join work: Implement a tracking mechanism to allow functions to wait for full room state to arrive. ([\#12399](matrix-org/synapse#12399))
- Remove an unstable identifier from [MSC3083](matrix-org/matrix-spec-proposals#3083). ([\#12395](matrix-org/synapse#12395))
- Run CI in the locked [Poetry](https://python-poetry.org/) environment, and remove corresponding `tox` jobs. ([\#12425](matrix-org/synapse#12425), [\#12434](matrix-org/synapse#12434), [\#12438](matrix-org/synapse#12438), [\#12441](matrix-org/synapse#12441), [\#12449](matrix-org/synapse#12449), [\#12478](matrix-org/synapse#12478), [\#12514](matrix-org/synapse#12514), [\#12472](matrix-org/synapse#12472))
- Change Mutual Rooms' `unstable_features` flag to `uk.half-shot.msc2666.mutual_rooms` which matches the current iteration of [MSC2666](matrix-org/matrix-spec-proposals#2666). ([\#12445](matrix-org/synapse#12445))
- Fix typo in the release script help string. ([\#12450](matrix-org/synapse#12450))
- Fix a minor typo in the Debian changelogs generated by the release script. ([\#12497](matrix-org/synapse#12497))
- Reintroduce the list of targets to the linter script, to avoid linting unwanted local-only directories during development. ([\#12455](matrix-org/synapse#12455))
- Limit length of `device_id` to less than 512 characters. ([\#12454](matrix-org/synapse#12454))
- Dockerfile-workers: reduce the amount we install in the image. ([\#12464](matrix-org/synapse#12464))
- Dockerfile-workers: give the master its own log config. ([\#12466](matrix-org/synapse#12466))
- complement-synapse-workers: factor out separate entry point script. ([\#12467](matrix-org/synapse#12467))
- Back out experimental implementation of [MSC2314](matrix-org/matrix-spec-proposals#2314). ([\#12474](matrix-org/synapse#12474))
- Fix grammatical error in federation error response when the room version of a room is unknown. ([\#12483](matrix-org/synapse#12483))
- Remove unnecessary configuration overrides in tests. ([\#12511](matrix-org/synapse#12511))
- Refactor the relations code for clarity. ([\#12519](matrix-org/synapse#12519))
- Add type hints so `docker` and `stubs` directories pass `mypy --disallow-untyped-defs`. ([\#12528](matrix-org/synapse#12528))
- Update `delay_cancellation` to accept any awaitable, rather than just `Deferred`s. ([\#12468](matrix-org/synapse#12468))
- Handle cancellation in `EventsWorkerStore._get_events_from_cache_or_db`. ([\#12529](matrix-org/synapse#12529))
babolivier added a commit to matrix-org/synapse-dinsic that referenced this pull request May 3, 2022
Synapse 1.58.0 (2022-05-03)
===========================

As of this release, the groups/communities feature in Synapse is now disabled by default. See [\#11584](matrix-org/synapse#11584) for details. As mentioned in [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1580), this feature will be removed in Synapse 1.61.

No significant changes since 1.58.0rc2.

Synapse 1.58.0rc2 (2022-04-26)
==============================

This release candidate fixes bugs related to Synapse 1.58.0rc1's logic for handling device list updates.

Bugfixes
--------

- Fix a bug introduced in Synapse 1.58.0rc1 where the main process could consume excessive amounts of CPU and memory while handling sentry logging failures. ([\#12554](matrix-org/synapse#12554))
- Fix a bug introduced in Synapse 1.58.0rc1 where opentracing contexts were not correctly sent to whitelisted remote servers with device lists updates. ([\#12555](matrix-org/synapse#12555))

Internal Changes
----------------

- Reduce unnecessary work when handling remote device list updates. ([\#12557](matrix-org/synapse#12557))

Synapse 1.58.0rc1 (2022-04-26)
==============================

Features
--------

- Implement [MSC3383](matrix-org/matrix-spec-proposals#3383) for including the destination in server-to-server authentication headers. Contributed by @Bubu and @jcgruenhage for Famedly. ([\#11398](matrix-org/synapse#11398))
- Docker images and Debian packages from matrix.org now contain a locked set of Python dependencies, greatly improving build reproducibility. ([Board](https://github.com/orgs/matrix-org/projects/54), [\#11537](matrix-org/synapse#11537))
- Enable processing of device list updates asynchronously. ([\#12365](matrix-org/synapse#12365), [\#12465](matrix-org/synapse#12465))
- Implement [MSC2815](matrix-org/matrix-spec-proposals#2815) to allow room moderators to view redacted event content. Contributed by @tulir @ Beeper. ([\#12427](matrix-org/synapse#12427))
- Build Debian packages for Ubuntu 22.04 "Jammy Jellyfish". ([\#12543](matrix-org/synapse#12543))

Bugfixes
--------

- Prevent a sync request from removing a user's busy presence status. ([\#12213](matrix-org/synapse#12213))
- Fix bug with incremental sync missing events when rejoining/backfilling. Contributed by Nick @ Beeper. ([\#12319](matrix-org/synapse#12319))
- Fix a long-standing bug which incorrectly caused `GET /_matrix/client/v3/rooms/{roomId}/event/{eventId}` to return edited events rather than the original. ([\#12476](matrix-org/synapse#12476))
- Fix a bug introduced in Synapse 1.27.0 where the admin API for [deleting forward extremities](https://github.com/matrix-org/synapse/blob/erikj/fix_delete_event_response_count/docs/admin_api/rooms.md#deleting-forward-extremities) would always return a count of 1, no matter how many extremities were deleted. ([\#12496](matrix-org/synapse#12496))
- Fix a long-standing bug where the image thumbnails embedded into email notifications were broken. ([\#12510](matrix-org/synapse#12510))
- Fix a bug in the implementation of [MSC3202](matrix-org/matrix-spec-proposals#3202) where Synapse would use the field name `device_unused_fallback_keys`, rather than `device_unused_fallback_key_types`. ([\#12520](matrix-org/synapse#12520))
- Fix a bug introduced in Synapse 0.99.3 which could cause Synapse to consume large amounts of RAM when back-paginating in a large room. ([\#12522](matrix-org/synapse#12522))

Improved Documentation
----------------------

- Fix rendering of the documentation site when using the 'print' feature. ([\#12340](matrix-org/synapse#12340))
- Add a manual documenting config file options. ([\#12368](matrix-org/synapse#12368), [\#12527](matrix-org/synapse#12527))
- Update documentation to reflect that both the `run_background_tasks_on` option and the options for moving stream writers off of the main process are no longer experimental. ([\#12451](matrix-org/synapse#12451))
- Update worker documentation and replace old `federation_reader` with `generic_worker`. ([\#12457](matrix-org/synapse#12457))
- Strongly recommend [Poetry](https://python-poetry.org/) for development. ([\#12475](matrix-org/synapse#12475))
- Add some example configurations for workers and update architectural diagram. ([\#12492](matrix-org/synapse#12492))
- Fix a broken link in `README.rst`. ([\#12495](matrix-org/synapse#12495))
- Add HAProxy delegation example with CORS headers to docs. ([\#12501](matrix-org/synapse#12501))
- Remove extraneous comma in User Admin API's device deletion section so that the example JSON is actually valid and works. Contributed by @olmari. ([\#12533](matrix-org/synapse#12533))

Deprecations and Removals
-------------------------

- The groups/communities feature in Synapse is now disabled by default. ([\#12344](matrix-org/synapse#12344))
- Remove unstable identifiers from [MSC3440](matrix-org/matrix-spec-proposals#3440). ([\#12382](matrix-org/synapse#12382))

Internal Changes
----------------

- Preparation for faster-room-join work: start a background process to resynchronise the room state after a room join. ([\#12394](matrix-org/synapse#12394))
- Preparation for faster-room-join work: Implement a tracking mechanism to allow functions to wait for full room state to arrive. ([\#12399](matrix-org/synapse#12399))
- Remove an unstable identifier from [MSC3083](matrix-org/matrix-spec-proposals#3083). ([\#12395](matrix-org/synapse#12395))
- Run CI in the locked [Poetry](https://python-poetry.org/) environment, and remove corresponding `tox` jobs. ([\#12425](matrix-org/synapse#12425), [\#12434](matrix-org/synapse#12434), [\#12438](matrix-org/synapse#12438), [\#12441](matrix-org/synapse#12441), [\#12449](matrix-org/synapse#12449), [\#12478](matrix-org/synapse#12478), [\#12514](matrix-org/synapse#12514), [\#12472](matrix-org/synapse#12472))
- Change Mutual Rooms' `unstable_features` flag to `uk.half-shot.msc2666.mutual_rooms` which matches the current iteration of [MSC2666](matrix-org/matrix-spec-proposals#2666). ([\#12445](matrix-org/synapse#12445))
- Fix typo in the release script help string. ([\#12450](matrix-org/synapse#12450))
- Fix a minor typo in the Debian changelogs generated by the release script. ([\#12497](matrix-org/synapse#12497))
- Reintroduce the list of targets to the linter script, to avoid linting unwanted local-only directories during development. ([\#12455](matrix-org/synapse#12455))
- Limit length of `device_id` to less than 512 characters. ([\#12454](matrix-org/synapse#12454))
- Dockerfile-workers: reduce the amount we install in the image. ([\#12464](matrix-org/synapse#12464))
- Dockerfile-workers: give the master its own log config. ([\#12466](matrix-org/synapse#12466))
- complement-synapse-workers: factor out separate entry point script. ([\#12467](matrix-org/synapse#12467))
- Back out experimental implementation of [MSC2314](matrix-org/matrix-spec-proposals#2314). ([\#12474](matrix-org/synapse#12474))
- Fix grammatical error in federation error response when the room version of a room is unknown. ([\#12483](matrix-org/synapse#12483))
- Remove unnecessary configuration overrides in tests. ([\#12511](matrix-org/synapse#12511))
- Refactor the relations code for clarity. ([\#12519](matrix-org/synapse#12519))
- Add type hints so `docker` and `stubs` directories pass `mypy --disallow-untyped-defs`. ([\#12528](matrix-org/synapse#12528))
- Update `delay_cancellation` to accept any awaitable, rather than just `Deferred`s. ([\#12468](matrix-org/synapse#12468))
- Handle cancellation in `EventsWorkerStore._get_events_from_cache_or_db`. ([\#12529](matrix-org/synapse#12529))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants