Skip to content

Commit

Permalink
Update all ggt/requirements.txt entries. Update requests were faili…
Browse files Browse the repository at this point in the history
…ng after `urllib3` removal, unclear why.

Stacktrace confirmed `urllib3` was still getting installed anyway but perhaps an incompatible version alongside the ancient versions I had here?
  • Loading branch information
Wilm0r committed Nov 2, 2023
1 parent 0e86562 commit 325adf4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
22 changes: 13 additions & 9 deletions ggt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,19 @@ def git_pull(path, local_path="/tmp/giggity.git"):
porcelain.pull(local_path, path)
return local_path
except dulwich.errors.NotGitRepository:
t = tempfile.mkdtemp(prefix=local_path)
repo = porcelain.clone(path, bare=True, target=t, checkout=False)
try:
os.rename(t, local_path)
return local_path
except OSError:
# Guess there may have been a race. All we know
# is the one we just created should work.
return t
pass
# Expected first time, run stuff below instead.
# (But doing so within this block causes weird error reporting.)

t = tempfile.mkdtemp(prefix=local_path)
repo = porcelain.clone(path, bare=True, target=t, checkout=False)
try:
os.rename(t, local_path)
return local_path
except OSError:
# Guess there may have been a race. All we know
# is the one we just created should work.
return t


# json_get (shortcut to dig through json nested dicts..)
Expand Down
8 changes: 4 additions & 4 deletions ggt/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dulwich==0.19.13
Flask==2.3.2
google-cloud-storage==1.23.0
jsonschema==2.6.0
dulwich==0.21.6
Flask==2.3.3
google-cloud-storage==2.13.0
jsonschema==4.10.3

0 comments on commit 325adf4

Please sign in to comment.