Check if pyproject.toml exists before patching path deps

Local path dependencies may be setuptools projects.
This commit is contained in:
adisbladis 2020-02-28 19:27:33 +00:00
parent 29a3282aef
commit c1b21de0ba
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -1,4 +1,8 @@
remove-path-dependencies-hook() {
if ! test -f pyproject.toml; then
return
fi
# Tell poetry not to resolve the path dependencies. Any version is fine!
@yj@ -tj < pyproject.toml | @pythonInterpreter@ @pyprojectPatchScript@ > pyproject.json
@yj@ -jt < pyproject.json > pyproject.toml