Reputation: 3571
I want to install feast
python package with poetry
.
pip3 install git+https://github.com/feast-dev/feast#subdirectory=sdk/python
works okay,
but poetry add git+https://github.com/feast-dev/feast#subdirectory=sdk/python
gives an error:
CalledProcessError
Command '['git', '--git-dir', '/tmp/pypoetry-git-feas51ct2_me/.git', '--work-tree', '/tmp/pypoetry-git-feas51ct2_me', 'checkout', 'subdirectory=sdk/python']' returned non-zero exit status 1.
at /usr/lib/python3.8/subprocess.py:516 in run
512│ # We don't call process.wait() as .__exit__ does that for us.
513│ raise
514│ retcode = process.poll()
515│ if check and retcode:
→ 516│ raise CalledProcessError(retcode, process.args,
517│ output=stdout, stderr=stderr)
518│ return CompletedProcess(process.args, retcode, stdout, stderr)
519│
520│
How can I fix it?
Upvotes: 7
Views: 9346
Reputation: 20341
As of poetry 1.2 you can install VCS projects residing in remote subdirectories. Your pyproject.toml
would contain the following;
[tool.poetry.dependencies]
feast = { git = "ssh://[email protected]/feast-dev/feast.git", subdirectory = "sdk/python" }
for example.
Upvotes: 8