Skip to content

Better version management with uv workspaces in a Polylith setup #11

@extreme4all

Description

@extreme4all

Hey,
We’ve been using the Polylith architecture for a while and one pain point is version management.
Each project has its own pyproject.toml, so dependency versions can easily drift apart.

I’m wondering if we could use uv workspaces to manage versions more centrally, so shared and project-specific dependencies stay in sync.

  • components are like a package with their own unique dependencies
  • bases use components and may have their own unique dependencies
  • projects tie bases & components together & are used build a container

This video by Arjan Codes shows how to use uv workspace:
The Best Way to Share Code Between Python Apps

Has anyone tried something like this, or found a clean way to handle shared dependencies across projects in a Polylith repo?

my project:
OSRS bot_detector

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions