poetry-workspace-plugin icon indicating copy to clipboard operation
poetry-workspace-plugin copied to clipboard

How to install

Open NixBiks opened this issue 3 years ago • 6 comments

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.

NixBiks avatar Dec 07 '21 11:12 NixBiks

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

jacksmith15 avatar Dec 07 '21 11:12 jacksmith15

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).

jacksmith15 avatar Dec 07 '21 11:12 jacksmith15

Poetry 1.2.0 has been released recently. It would be awesome if you could release this publicly.

elventear avatar Sep 06 '22 16:09 elventear

+1 for releasing this to pypi :) Let me know if I can help

AbdealiLoKo avatar Oct 28 '22 13:10 AbdealiLoKo

+1 for this, great project

Asafb26 avatar Jan 09 '23 15:01 Asafb26

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:

balint-backmaker avatar Jun 20 '23 13:06 balint-backmaker