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

Commit

Permalink
Use caret (semver bounds) for matrix.org packages
Browse files Browse the repository at this point in the history
See https://python-poetry.org/docs/dependency-specification/#caret-requirements

This effectively:
- imposes new constraints `canonicaljson < 2` and `signedjson < 2`
- widens `1.2.1 <= matrix-common < 1.3` to `1.2.1 <= matrix-common < 2`

Doing so helps give us room to make backwards-compatible changes to our
libraries without screwing over old synapse versions installed with the
latest dependencies.
  • Loading branch information
David Robertson committed Jun 16, 2022
1 parent 21f2100 commit 93d81f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ jsonschema = ">=3.0.0"
frozendict = ">=1,!=2.1.2"
# We require 2.1.0 or higher for type hints. Previous guard was >= 1.1.0
unpaddedbase64 = ">=2.1.0"
canonicaljson = ">=1.4.0"
canonicaljson = "^1.4.0"
# we use the type definitions added in signedjson 1.1.
signedjson = ">=1.1.0"
signedjson = "^1.1.0"
# validating SSL certs for IP addresses requires service_identity 18.1.
service-identity = ">=18.1.0"
# Twisted 18.9 introduces some logger improvements that the structured
Expand Down Expand Up @@ -150,7 +150,7 @@ typing-extensions = ">=3.10.0.1"
cryptography = ">=3.4.7"
# ijson 3.1.4 fixes a bug with "." in property names
ijson = ">=3.1.4"
matrix-common = "~=1.2.1"
matrix-common = "^1.2.1"
# We need packaging.requirements.Requirement, added in 16.1.
packaging = ">=16.1"
# At the time of writing, we only use functions from the version `importlib.metadata`
Expand Down

0 comments on commit 93d81f0

Please sign in to comment.