{"id":13598593,"url":"https://github.com/jacksmith15/poetry-workspace-plugin","last_synced_at":"2025-08-19T21:31:22.885Z","repository":{"id":44056512,"uuid":"394421610","full_name":"jacksmith15/poetry-workspace-plugin","owner":"jacksmith15","description":"Poetry workspace plugin for Python monorepos.","archived":false,"fork":false,"pushed_at":"2023-05-04T10:26:07.000Z","size":69,"stargazers_count":85,"open_issues_count":2,"forks_count":9,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-12-09T17:58:09.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacksmith15.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-08-09T19:56:52.000Z","updated_at":"2024-09-19T15:10:37.000Z","dependencies_parsed_at":"2024-01-16T23:26:18.451Z","dependency_job_id":"d54f29f0-c1ad-46e3-95f8-2d4f74becb6a","html_url":"https://github.com/jacksmith15/poetry-workspace-plugin","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.0357142857142857,"last_synced_commit":"ac56d87bfc9a41c9c8119db28002298d2f7d8154"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksmith15%2Fpoetry-workspace-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksmith15%2Fpoetry-workspace-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksmith15%2Fpoetry-workspace-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksmith15%2Fpoetry-workspace-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksmith15","download_url":"https://codeload.github.com/jacksmith15/poetry-workspace-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230367928,"owners_count":18215338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T17:00:54.068Z","updated_at":"2024-12-19T03:08:08.893Z","avatar_url":"https://github.com/jacksmith15.png","language":"Python","funding_links":[],"categories":["Software Engineering"],"sub_categories":["Workflow"],"readme":"# poetry-workspace-plugin\n\n\u003e :warning: This depends on the plugin system added in Poetry [1.2](https://github.com/python-poetry/poetry/releases/tag/1.2.0a1), which does not yet have a stable release.\n\u003e \n\u003e If you want to use this in your project now, check out [**Workspace**](https://jacksmith15.github.io/workspace-cli/basic-usage/), a standalone and extensible version of this plugin with built-in support for both [Poetry](https://python-poetry.org/) and [Pipenv](https://pipenv.pypa.io/en/latest/).\n\n\n[Poetry](https://python-poetry.org/) workspace plugin for Python monorepos.  Inspired by [Yarn Workspaces](https://classic.yarnpkg.com/en/docs/workspaces/).\n\nAdds a new subcommand group, `poetry workspace`, which is used to create, manage and inspect nested Python projects.\n\n```shell\n# Create a new python project at the specified path, tracked in the current project\npoetry workspace new libs/my-library\n\n# Add an existing python project to the current project's workspaces\npoetry workspace add libs/my-existing-library\n\n# List the current workspaces\npoetry workspace list\n\n# Run a command in every workspace:\npoetry workspace run command\n\n# Run a command in specified workspaces:\npoetry workspace run --targets=my-library,my-existing-library -- command\n\n# List dependees of a particular workspace (from among the list of workspaces).\npoetry workspace dependees my-library\n\n# Unlink a workspace from the current project\npoetry remove workspace my-library\n\n# Unlink and delete a workspace from the current project\npoetry remove workspace my-library --delete\n```\n\n### Common patterns\n\n#### Testing affected workspaces\n\nAfter making a change to a workspace, you can run tests for all _affected_ workspaces like so:\n```shell\npoetry workspace run --targets=$(poetry workspace dependees --csv my-library) -- pytest tests/\n```\n\n### Planned commands\n\nThe following are currently possible e.g via `poetry workspace run poetry build`, but this would be more succint:\n\n```shell\n# Build or publish all workspaces:\npoetry workspace build\npoetry workspace publish\n\n# Build specified workspaces:\npoetry workspace --targets=my-library build\n\n# Publish specified workspaces:\npoetry workspace --targets=my-library publish\n```\n\n\nMetadata regarding workspaces is stored under `tool.poetry.workspaces`:\n\n```toml\n[tool.poetry.workspace]\nworkspaces = {\n    my-library = \"libs/my-library\"\n}\n```\n\n## Installation\n\nThis project is not currently packaged and so must be installed manually.\n\nClone the project with the following command:\n```\ngit clone https://github.com/jacksmith15/poetry-workspace-plugin.git\n```\n\n## Development\n\nInstall dependencies:\n\n```shell\npyenv shell 3.9.4  # Or other 3.9.x\npre-commit install  # Configure commit hooks\npoetry install  # Install Python dependencies\n```\n\nRun tests:\n\n```shell\npoetry run inv verify\n```\n\n# License\nThis project is distributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksmith15%2Fpoetry-workspace-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksmith15%2Fpoetry-workspace-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksmith15%2Fpoetry-workspace-plugin/lists"}