Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 5586121

Browse files
jaysonsantosThomas Pansino
authored andcommitted
Add disclaimer about poetry and git dependencies
1 parent 023033e commit 5586121

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,21 @@ custom:
110110
usePoetry: false
111111
```
112112

113+
### Poetry with git dependencies
114+
Poetry by default generates the exported requirements.txt file with `-e` and that breaks pip with `-t` parameter
115+
(used to install all requirements in a specific folder). In order to fix that we remove all `-e ` from the generated file but,
116+
for that to work you need to add the git dependencies in a specific way.
117+
118+
Instead of:
119+
```toml
120+
[tool.poetry.dependencies]
121+
bottle = {git = "git@github.com/bottlepy/bottle.git", tag = "0.12.16"}
122+
```
123+
it has to be:
124+
```toml
125+
[tool.poetry.dependencies]
126+
bottle = {git = "ssh://git@github.com/bottlepy/bottle.git", tag = "0.12.16"}
127+
```
113128

114129
## Dealing with Lambda's size limitations
115130
To help deal with potentially large dependencies (for example: `numpy`, `scipy`

0 commit comments

Comments
 (0)