Skip to main content

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

poetry-workspace-plugin2-0.5.8.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry_workspace_plugin2-0.5.8-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file poetry-workspace-plugin2-0.5.8.tar.gz.

File metadata

  • Download URL: poetry-workspace-plugin2-0.5.8.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b3 CPython/3.8.13 Darwin/21.6.0

File hashes

Hashes for poetry-workspace-plugin2-0.5.8.tar.gz
Algorithm Hash digest
SHA256 ad6afcebad690cec4ec5ee81be17da3f658d03bc94088b5ec4a1f55ceacf0583
MD5 0751dc2e89b63c40a02bb10b45bc519e
BLAKE2b-256 b738fe12ba6511c6dd750cf27a414f743cc654618570a6bf16588247fbc1f231

See more details on using hashes here.

File details

Details for the file poetry_workspace_plugin2-0.5.8-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_workspace_plugin2-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 11bdcf91b5bfffd15b67415dfecaf8540365d653de897c6e514d999954d2a604
MD5 5df2a11ed4167c677eb7978b0ff44d36
BLAKE2b-256 2a33fac7771df7ae8435a1b3b93ce1bfe60f09bb763a7e2a48c4ffdfa15139e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page