Skip to content

Commit 6bbe230

Browse files
committed
roll own pip freeze
1 parent 8d1659b commit 6bbe230

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vetiver/rsconnect.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from rsconnect.actions import deploy_python_fastapi
44
import shutil
55
import os
6+
import subprocess
67

78
from .write_fastapi import write_app
89

@@ -98,6 +99,9 @@ def deploy_rsconnect(
9899
overwrite=False,
99100
)
100101

102+
with open(temp + "requirements.txt", "w") as file_:
103+
subprocess.call(["pip", "freeze"], stdout=file_)
104+
101105
deploy_python_fastapi(
102106
connect_server=connect_server,
103107
directory=temp,

0 commit comments

Comments
 (0)