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

Synapse 1.81.0 fails to build with poetry-core < 1.1.0 (despite lower bound of >= 1.0.0) #15420

@DMRobertson

Description

@DMRobertson

Note that support for dependency groups was added in poetry core 1.1.0.

Poetry-core 1.0.8 rejects this syntax:

RuntimeError: The Poetry configuration is invalid:
  - Additional properties are not allowed ('group' was unexpected

which unfortunately means that the poetry-core range given in

synapse/pyproject.toml

Lines 365 to 372 in edf046e

[build-system]
# The upper bounds here are defensive, intended to prevent situations like
# #13849 and #14079 where we see buildtime or runtime errors caused by build
# system changes.
# We are happy to raise these upper bounds upon request,
# provided we check that it's safe to do so (i.e. that CI passes).
requires = ["poetry-core>=1.0.0,<=1.5.0", "setuptools_rust>=1.3,<=1.5.2"]
build-backend = "poetry.core.masonry.api"

can no longer build Synapse at the lower end of the version range.

Options:

  • Move these into the tool.poetry.dev-dependencies section above, or
  • Bump the lower bound to >=1.1.0 and liaise with packagers, or
  • ??? something else?

Actions:

  • We should probably ensure something in CI tries to build a wheel using the oldest supported version of poetry-core

Originally posted by @DMRobertson in #15265 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PackagingOur Debian packages, docker images; or issues relevant to downstream packagersO-UncommonMost users are unlikely to come across this or unexpected workflowT-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions