Comments (12)
Updated docs link for anybody still landing on this page: https://python-poetry.org/docs/dependency-specification#path-dependencies
from poetry.
This is now supported in release 0.9.0
.
from poetry.
The documentation is here: https://poetry.eustace.io/docs/versions/#path-dependencies
from poetry.
I plan on adding this, yes. It will most likely land in the next feature release.
from poetry.
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.
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.
@sdispater I can't find a documentation for this feature, can you explain what is the syntax to do this?
from poetry.
@sdispater ah perfect, thank you!
from poetry.
Can I somehow make this so poetry only uses the defined path if available, but if not, still checks normal repositories?
from poetry.
But what about already installed dependencies, like another project (library) installed
from poetry.
Please note that path dependencies are not always a solution. See #34 for more info.
from poetry.
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)
- Allow Custom Installation Order and Conditional Installation/Uninstallation of Dependencies in pyproject.toml HOT 1
- Git-Dependency with non-HEAD rev fails to lock HOT 2
- `poetry lock` not seeing wheels available in PyPI HOT 1
- Poetry is using active Python instead of Poetry installation’s Python HOT 3
- Assertion error when poetry lock and nested(?) dependencies HOT 1
- Resolution of dependencies in directories fails to respect explicit source HOT 1
- Poetry torch cpu-only or gpu-only installation fails. HOT 6
- poetry.lock wheels getting added/removed depending on architecture HOT 2
- Poetry installing pre-release version of panel HOT 3
- 【poetry】poetry install dependent library error
- Poetry doesn't respect python version specification when resolving dependencies HOT 1
- Setting extras as non-optional HOT 1
- Windows Poetry Installation ERROR HOT 7
- poetry 1.8.3 using incorrect pkginfo version HOT 2
- locally package installiation HOT 6
- Poetry failed to build installing jsbeautifier HOT 18
- setuptools is not included in the lockfile HOT 2
- Allow pinning setuptools for poetry install HOT 1
- `poetry format` and `poetry check`? HOT 1
- Incompatible Constraints in Poetry Group Dependencies while trying both torch+cpu and torch+cu116 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry.