Code Monkey home page Code Monkey logo

Comments (12)

gordonhart avatar gordonhart commented on August 16, 2024 45

Updated docs link for anybody still landing on this page: https://python-poetry.org/docs/dependency-specification#path-dependencies

from poetry.

sdispater avatar sdispater commented on August 16, 2024 23

This is now supported in release 0.9.0.

from poetry.

sdispater avatar sdispater commented on August 16, 2024 21

The documentation is here: https://poetry.eustace.io/docs/versions/#path-dependencies

from poetry.

sdispater avatar sdispater commented on August 16, 2024 12

I plan on adding this, yes. It will most likely land in the next feature release.

from poetry.

sdispater avatar sdispater commented on August 16, 2024 7

If they are in a distribution format (tarball or wheel), yes you can (since version 0.8.0), like so:

[tool.poetry.dependencies]
foo-package = { file = "relative/path/to/distribution" }

from poetry.

radix avatar radix commented on August 16, 2024 5

yeah, I saw file... but what if they're not?

When I'm working in Rust, I can point to any directory that has a Cargo.toml as another dependency with {path = "vendor/foo"} syntax. What about a similar thing for any directory with a pyproject.toml?

from poetry.

victornoel avatar victornoel commented on August 16, 2024

@sdispater I can't find a documentation for this feature, can you explain what is the syntax to do this?

from poetry.

victornoel avatar victornoel commented on August 16, 2024

@sdispater ah perfect, thank you!

from poetry.

Natureshadow avatar Natureshadow commented on August 16, 2024

Can I somehow make this so poetry only uses the defined path if available, but if not, still checks normal repositories?

from poetry.

erodrig avatar erodrig commented on August 16, 2024

But what about already installed dependencies, like another project (library) installed

from poetry.

gdubicki avatar gdubicki commented on August 16, 2024

Please note that path dependencies are not always a solution. See #34 for more info.

from poetry.

github-actions avatar github-actions commented on August 16, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from poetry.

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.