poetry-workspace-plugin
poetry-workspace-plugin copied to clipboard
How to install
I'm really excited to see this plugin evolve. IMO it's a missing piece in the python community - easily manage a monorepo.
Can you add some additional information how to install the plugin? You write that you need to clone this project but I assume you need to add the plugin in pyproject.toml
as well. I've copied poetry_workspace_plugin
folder to the root in my monorepo and added the following to pyproject.toml
.
[tool.poetry.plugins."poetry.application.plugin"]
poetry-workspace-plugin = "poetry_workspace_plugin:WorkspacePlugin"
Unfortunately I get The command "workspace" is not defined.
. I'm using poetry version 1.1.12.
Hi @mr-bjerre , since this is a poetry plugin, it requires poetry 1.2 or higher, which adds a plugin system to poetry.
There is no stable release of poetry 1.2 yet, and I don't recommend using the pre-releases in their current form (see this issue).
Once a stable release of poetry 1.2 is available, you would install this plugin via the poetry CLI.
If you're looking for something that will work now, try https://github.com/jacksmith15/workspace-cli . This is a standalone tool containing the functionality described here, which is compatible with Poetry 1.1
I should also mention https://www.pantsbuild.org/ if you're just looking for monorepo build of Python projects (rather than something specifically compatible with Poetry).
Poetry 1.2.0 has been released recently. It would be awesome if you could release this publicly.
+1 for releasing this to pypi :) Let me know if I can help
+1 for this, great project
As you might be able to tell, since the issue being raised, poetry
has released several stable versions.
As of right now, I'm running on 1.4.1
and you can now install this plugin via poetry self add poetry-workspaces
. (as seen on PyPI -> https://pypi.org/project/poetry-workspaces/)
Do not confuse with poetry-workspace-plugin2 because as far as I could see that operated differently and could not find the source code to compare to this project.
Happy workspacing!
And @jacksmith15 I hope you see this! If you do, please update the readme. :heart: