Multi project workspace plugin for Poetry
Project description
Poetry Workspace Plugin
This experimental tool is a Poetry Plugin to support workflows in a multi-project repository.
Installation
Make sure you are using at least Poetry 1.2.0b3. To install this preview release, run:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --preview
Install this plugin:
poetry plugin add poetry-workspace-plugin2
Why plugin2?
The original package was released by Martin Liu, a former OpenDoor employee. Before he left, he re-released the project under the OpenDoor PyPI account.
Workspace
A workspace is a collection of Poetry projects that share a single environment.
Example config to place at the root
[tool.poetry]
name = "code"
version = "0.1.0"
description = "Opendoor Python workspace"
authors = ["Developers <developers@opendoor.com>"]
[[tool.poetry.source]]
name = "pypi-local"
url = "https://opendoor.jfrog.io/opendoor/api/pypi/pip/simple"
secondary = true
[tool.poetry.workspace]
include = [
"lib/**",
"workspace/**",
]
exclude = [
"lib/dev-tools",
"lib/legacy",
"lib/template/**",
]
# IMPORTANT: This pyproject.toml file declares dependencies for the shared Python
# workspace. If your app does not belong to the
# workspace (i.e. not included in the `include` section above) then do not add your
# app dependencies here, it will have no effect. Even if your app does belong to
# the workspace, prefer adding app specific dependencies in your app's project. This
# section is reserved for workspace level constraints.
[tool.poetry.dependencies]
python = "~3.9"
virtualenv = "^20.10.0"
[tool.poetry.dev-dependencies]
"opendoor.dev-tools" = {path = "lib/dev-tools", develop = true}
"opendoor.tools" = {path = "tools", develop = true}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry-workspace-plugin2-0.5.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff1fa823b24c204b4d3a8722a2f8917b43479b9116f99657784d4b52baf0c10 |
|
MD5 | 108d1fb0046ad7406708894e2171b72c |
|
BLAKE2b-256 | 854358ebb256ecc7d7fbe102b6a1a1f82de9ed1ea68c7491eaf2d192659ea9e8 |
Close
Hashes for poetry_workspace_plugin2-0.5.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed54d21ce224fa341e2196deaf36faa30143c23d87db43e161919573b1b9335 |
|
MD5 | 2ed558091d7b7b0a6e2cbfbf62983deb |
|
BLAKE2b-256 | cd009eb0c4806bc3d5c7140270c48cae78727fc4f1996961600dd11775551f84 |