diff --git a/poetry.lock b/poetry.lock
index a78ceb0ae5..9a8d35e263 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1267,17 +1267,22 @@ telegram = ["requests"]
[[package]]
name = "treq"
-version = "15.1.0"
-description = "A requests-like API built on top of twisted.web's Agent"
+version = "22.2.0"
+description = "High-level Twisted HTTP Client API"
category = "main"
optional = false
-python-versions = "*"
+python-versions = ">=3.6"
[package.dependencies]
-pyOpenSSL = {version = ">=0.15.1", markers = "python_version > \"3.0\""}
+attrs = "*"
+hyperlink = ">=21.0.0"
+incremental = "*"
requests = ">=2.1.0"
-service_identity = ">=14.0.0"
-Twisted = {version = ">=15.5.0", markers = "python_version > \"3.0\""}
+Twisted = {version = ">=18.7.0", extras = ["tls"]}
+
+[package.extras]
+dev = ["pep8", "pyflakes", "httpbin (==0.5.0)"]
+docs = ["sphinx (>=1.4.8)"]
[[package]]
name = "twine"
@@ -1313,7 +1318,10 @@ attrs = ">=19.2.0"
Automat = ">=0.8.0"
constantly = ">=15.1"
hyperlink = ">=17.1.1"
+idna = {version = ">=2.4", optional = true, markers = "extra == \"tls\""}
incremental = ">=21.3.0"
+pyopenssl = {version = ">=21.0.0", optional = true, markers = "extra == \"tls\""}
+service-identity = {version = ">=18.1.0", optional = true, markers = "extra == \"tls\""}
twisted-iocpsupport = {version = ">=1.0.2,<2", markers = "platform_system == \"Windows\""}
typing-extensions = ">=3.6.5"
"zope.interface" = ">=4.4.2"
@@ -1615,7 +1623,7 @@ url_preview = ["lxml"]
[metadata]
lock-version = "1.1"
python-versions = "^3.7.1"
-content-hash = "c2cfbb348a49e088c404148c1b682fc5af5abb6278cf4479c6a51fff1656328c"
+content-hash = "94116a568c9ab41174ec66c60cb0cb783e349bf586352b1fab08c714e5191665"
[metadata.files]
attrs = [
@@ -2642,8 +2650,8 @@ tqdm = [
{file = "tqdm-4.63.0.tar.gz", hash = "sha256:1d9835ede8e394bb8c9dcbffbca02d717217113adc679236873eeaac5bc0b3cd"},
]
treq = [
- {file = "treq-15.1.0-py2.py3-none-any.whl", hash = "sha256:1ad1ba89ddc62ae877084b290bd327755b13f6e7bc7076dc4d8e2efb701bfd63"},
- {file = "treq-15.1.0.tar.gz", hash = "sha256:425a47d5d52a993d51211028fb6ade252e5fbea094e878bb4b644096a7322de8"},
+ {file = "treq-22.2.0-py3-none-any.whl", hash = "sha256:27d95b07c5c14be3e7b280416139b036087617ad5595be913b1f9b3ce981b9b2"},
+ {file = "treq-22.2.0.tar.gz", hash = "sha256:df757e3f141fc782ede076a604521194ffcb40fa2645cf48e5a37060307f52ec"},
]
twine = [
{file = "twine-3.8.0-py3-none-any.whl", hash = "sha256:d0550fca9dc19f3d5e8eadfce0c227294df0a2a951251a4385797c8a6198b7c8"},
diff --git a/pyproject.toml b/pyproject.toml
index 989d1b3a69..a152b087ab 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -119,7 +119,8 @@ signedjson = "^1.1.0"
service-identity = ">=18.1.0"
# Twisted 18.9 introduces some logger improvements that the structured
# logger utilises
-treq = ">=15.1"
+twisted = {git = "https://github.com/twisted/twisted.git", rev = "trunk", extras = ["tls"]}
+treq = "22.2.0"
# Twisted has required pyopenssl 16.0 since about Twisted 16.6.
pyOpenSSL = ">=16.0.0"
PyYAML = ">=3.11"
@@ -182,7 +183,6 @@ idna = { version = ">=2.5", optional = true }
opentelemetry-api = {version = "^1.11.1", optional = true}
opentelemetry-sdk = {version = "^1.11.1", optional = true}
opentelemetry-exporter-jaeger = {version = "^1.11.1", optional = true}
-twisted = {git = "https://github.com/twisted/twisted.git", rev = "trunk"}
[tool.poetry.extras]
# NB: Packages that should be part of `pip install matrix-synapse[all]` need to be specified
|