Git Product home page Git Product logo

Comments (4)

mtkennerly avatar mtkennerly commented on May 22, 2024

Hi! If you don't have the plugin installed globally and you're just relying on the entry in tool.poetry.dependencies, then the plugin won't become available until Poetry has installed it in the virtual environment. It's not given any kind of preferential treatment to be installed before everything else, so it has to wait like any other dependency, and by then it's too late to activate during the first run.

I did confirm that the plugin activates during an initial poetry install if the plugin is installed globally.

Also, you would probably want to put the plugin in dev-dependencies instead.

from poetry-dynamic-versioning.

uSpike avatar uSpike commented on May 22, 2024

Hi, what does installed globally mean? Poetry installed via get-poetry.py is installed into its own environment which isn't really accessible for the user. A package such as this installed globally via pip will not be accessible by poetry.

from poetry-dynamic-versioning.

uSpike avatar uSpike commented on May 22, 2024

Nevermind, seems like this is a hole in the the current way of doing things and also the new plugin system: python-poetry/poetry#693 (comment)

from poetry-dynamic-versioning.

mtkennerly avatar mtkennerly commented on May 22, 2024

When you install Poetry with get-poetry.py, the Poetry launcher script basically adds its vendored dependencies (along with the Poetry module itself) onto the PYTHONPATH and then launches Python as normal, so it's not completely isolated from your global Python libraries. If you install the plugin with pip install poetry-dynamic-versioning, it can indeed work with Poetry regardless of which way Poetry was installed. The plugin is regularly tested with both Poetry installation methods as part of the GitHub workflow.

from poetry-dynamic-versioning.

Related Issues (20)

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.