Code Monkey home page Code Monkey logo

poetry-plugin-mono-repo-deps's People

Contributors

gerbenoostra avatar jakob-keller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

poetry-plugin-mono-repo-deps's Issues

Poetry command fails to run from folders without a pyproject.toml (inc poetry init and poetry --version)

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:

  • pip install in the poetry virtual environment (%APPDATA%\pypoetry\venv\Scripts)
  • poetry self add poetry-plugin-mono-repo-deps (which works in a folder with a pyproject.toml file)

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.

Plugin is not active

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.