gerbenoostra / poetry-plugin-mono-repo-deps Goto Github PK
View Code? Open in Web Editor NEWPoetry plugin for mono repos to replace path dependencies with named dependencies
License: MIT License
Poetry plugin for mono repos to replace path dependencies with named dependencies
License: MIT License
Hello,
Very much appreciating this plugin, although we have found an issue with it.
With the plugin installed, the following commands fail, if run from a folder without a pyproject.toml file:
poetry --version
poetry init
poetry self show plugins
The error message in all cases is:
Poetry could not find a pyproject.toml file in [current folder] or its parents.
If I uninstall the plugin, they succeed.
I've tried installing (and then uninstalling) the plugin via:
Just for comparison and triage I tried installing another plugin and didn't get this behaviour, while colleagues are seeing the same behaviour with this plugin on their machines.
We're on Windows machines and have installed Poetry via PowerShell using the official installer.
Hello,
Thanks for the reply and great to hear you are planning to maintain this further !
I am moving the discussion here from this issue.
Here is a minimal example to reproduce. Basically, doing an export or build in folder B doesn't change anything, no errors.
Structure
── pyproject.toml
└── repo
├── A
│ └── pyproject.toml
└── B
├── poetry.lock
├── pyproject.toml
└── reqs.txt
root pyproject.toml
[tool.poetry]
name = "repo"
version = "0.1.0"
description = ""
authors = [""]
readme = ""
[tool.poetry.dependencies]
python = "^3.8"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
project A pyproject.toml
[tool.poetry]
name = "lib-a"
version = "0.1.0"
description = ""
readme = "README.md"
authors = ["Soufiane EL ALAMI <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
project B pyproject.toml
# repo/B/pyproject.toml
[tool.poetry]
name = "app-B"
version = "0.1.0"
description = ""
readme = "README.md"
authors = ["Soufiane EL ALAMI <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
lib-a = {path = "../A", develop=true}
[tool.poetry-monorepo.deps]
enabled = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
I hope this is useful :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.