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.0a2. 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-plugin
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2308bc968e41563aee8a36b6fb44f773895a8e56e5344d7d785f1a13d551e0 |
|
MD5 | c8bccbacd66d3ecaa5e5da18cec10692 |
|
BLAKE2b-256 | 39e5d20f93d1c64c98e2208115478fa972c639bd18bfdcd9280fe73897f24589 |
Close
Hashes for poetry_workspace_plugin2-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d74ab38726be519ca1eb1cfc2b1d195374c83befd1ffb757426e6686344c97a |
|
MD5 | 191ffbc9ccc9095413d192a18714f3bd |
|
BLAKE2b-256 | e7f5dca56bf2db8bc2ef190099d248509e98f24968dd911606bbf3cae718b677 |